Files
codeocean/lib/py_unit_and_py_lint_adapter.rb
2020-10-15 00:43:57 +02:00

15 lines
311 B
Ruby

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
end