Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
matyldv committed Jun 14, 2024
1 parent 53ff617 commit b75d633
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ralph/data_center/tests/test_admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ def test_if_host_update_is_published_to_hermes_when_dca_is_updated_through_gui(
publish_data = publish_mock.call_args[0][1]
publish_data.pop('modified')
publish_data.pop('created')
self.assertEqual(publish_data, {
self.assertCountEqual(publish_data, {
'__str__': 'data center asset: ' + str(self.dca),
'configuration_path': None,
'configuration_variables': {
Expand Down Expand Up @@ -187,6 +187,7 @@ def test_if_host_update_is_published_to_hermes_when_dca_is_updated_through_gui(
'_previous_state': {
'hostname': 'ralph1.allegro.pl'
},
'ui_url': ''
})
# Despite `save` is called twice, publish update data is called only
# once
Expand Down

0 comments on commit b75d633

Please sign in to comment.