diff --git a/backend/tests/controllers/artefacts/test_artefacts.py b/backend/tests/controllers/artefacts/test_artefacts.py index bb0b3aec..16ec2aa9 100644 --- a/backend/tests/controllers/artefacts/test_artefacts.py +++ b/backend/tests/controllers/artefacts/test_artefacts.py @@ -183,7 +183,7 @@ def test_correct_test_execution_status( # The type checker cannot recognize that the testresult_set is an alias # to the test_results field, we ignore the call-arg error because of this - report = Report(id=237670, failed_test_count=0, testresult_set=[]) # type: ignore + report = Report(id=237670, failed_test_count=0, testresult_set=[]) # type: ignore monkeypatch.setattr(c3api_mock, "get_reports", lambda *_: {report.id: report}) app.dependency_overrides[C3Api] = c3api_mock diff --git a/backend/tests/external_apis/test_c3.py b/backend/tests/external_apis/test_c3.py index fede515c..e6a0c63a 100644 --- a/backend/tests/external_apis/test_c3.py +++ b/backend/tests/external_apis/test_c3.py @@ -191,7 +191,7 @@ def test_get_reports_with_test_results( reports = c3.get_reports([c3_api_response["id"]]) assert len(reports[237670].test_results) == 2 - + count_pass = 0 count_fail = 0 for test_result in reports[237670].test_results: @@ -206,4 +206,4 @@ def test_get_reports_with_test_results( # to the test_results field, we ignore the call-arg error because of this expected_report = Report(**c3_api_response) # type: ignore - assert reports == {expected_report.id: expected_report} \ No newline at end of file + assert reports == {expected_report.id: expected_report}