Skip to content

Commit

Permalink
test: fix comparison in test to address sonarcloud reliability rating
Browse files Browse the repository at this point in the history
  • Loading branch information
dleard committed Oct 15, 2024
1 parent d75051f commit 9d59106
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def test_save_activity_update(self, mock_save_source_type: MagicMock):
service_under_test.save(updated_activity_data)
report_activity.refresh_from_db()

assert report_activity == report_activity
assert report_activity.id == updated_activity_data["id"]
assert report_activity.activity_base_schema == test_infrastructure.activity_json_schema
assert report_activity.facility_report == test_infrastructure.facility_report
assert report_activity.json_data == {"stuff": "testing updated", "number": 123456, "extra_boolean": True}
Expand Down

0 comments on commit 9d59106

Please sign in to comment.