Skip to content

Commit

Permalink
Apply black formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
andrejvelichkovski committed Nov 28, 2023
1 parent a464e16 commit fa2e104
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion backend/tests/controllers/artefacts/test_artefacts.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 2 additions & 2 deletions backend/tests/external_apis/test_c3.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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}
assert reports == {expected_report.id: expected_report}

0 comments on commit fa2e104

Please sign in to comment.