Skip to content

Commit

Permalink
fix integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
djbrown committed Jul 21, 2024
1 parent cb3d063 commit 00ee8a8
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/clubs/tests/integration/test_import_clubs.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,25 +21,25 @@ def test_single_association(self):
self.assert_objects(Association)

self.assert_command("import_clubs")
self.assert_objects(Club, count=17)
self.assert_objects(Club, count=14)

def test_single_association_filtered(self):
self.assert_command("import_associations", "-a", 79, 4)
self.assert_objects(Association, count=2)

self.assert_command("import_clubs", "-a", 79)
self.assert_objects(Club, count=17)
self.assert_objects(Club, count=14)

def test_single_club_filtered(self):
self.assert_command("import_associations", "-a", 95)
association = self.assert_objects(Association)

self.assert_command("import_clubs", "-a", 95, "-c", 9702)
self.assert_command("import_clubs", "-a", 95, "-c", 290002)
club = self.assert_objects(Club)

self.assertEqual(club.name, "Lettland")
self.assertEqual(club.name, "HC Berchem")
self.assertTrue(club.associations.get(), association)
self.assertEqual(club.bhv_id, 9702)
self.assertEqual(club.bhv_id, 290002)

def test_update_team(self):
self.assert_command("import_associations", "-a", 80)
Expand Down

0 comments on commit 00ee8a8

Please sign in to comment.