Files
codeocean/lib/py_unit_and_py_lint_adapter.rb
2021-05-14 22:03:06 +02:00

20 lines
438 B
Ruby

# frozen_string_literal: true
class PyUnitAndPyLintAdapter < TestingFrameworkAdapter
def self.framework_name
'PyUnit and PyLint'
end
def parse_output(output)
if output[:file_role] == 'teacher_defined_linter'
PyLintAdapter.new.parse_output(output)
else
PyUnitAdapter.new.parse_output(output)
end
end
def translate_linter(result, locale)
PyLintAdapter.translate_linter(result, locale)
end
end