Skip to content

Commit

Permalink
Merge pull request #2369 from bcgov/chore/sonarcloud-reliability-fix
Browse files Browse the repository at this point in the history
test: fix comparison in test to address sonarcloud reliability rating
  • Loading branch information
dleard authored Oct 15, 2024
2 parents d75051f + 9d59106 commit 18b6cb0
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 18b6cb0

Please sign in to comment.