Skip to content

Commit

Permalink
Fix data_importer tests
Browse files Browse the repository at this point in the history
  • Loading branch information
hipek8 committed May 6, 2024
1 parent dcfcb53 commit 63f897b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/ralph/data_importer/tests/test_fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ def test_through_field_only_add(self):

self.assertEqual(self.licence.base_objects.all().count(), 4)
self.assertCountEqual(
self.licence.base_objects.values_list('pk', flat=True), ids
[bo.pk for bo in self.licence.base_objects.all()], ids
)
# Make sure it doesn't touch other licences
self.assertEqual(self.licence2.base_objects.all().count(), 2)
Expand All @@ -151,7 +151,7 @@ def test_through_field_only_remove(self):

self.assertEqual(self.licence.base_objects.all().count(), 1)
self.assertCountEqual(
self.licence.base_objects.values_list('pk', flat=True), ids
[bo.pk for bo in self.licence.base_objects.all()], ids
)
# Make sure it doesn't touch other licences
self.assertEqual(self.licence2.base_objects.all().count(), 2)
Expand All @@ -172,7 +172,7 @@ def test_through_field_add_and_remove(self):
)
self.assertEqual(self.licence.base_objects.all().count(), 3)
self.assertCountEqual(
self.licence.base_objects.values_list('pk', flat=True), ids
[bo.pk for bo in self.licence.base_objects.all()], ids
)
# Make sure it doesn't touch other licences
self.assertEqual(self.licence2.base_objects.all().count(), 2)

0 comments on commit 63f897b

Please sign in to comment.