Skip to content

Commit

Permalink
Disconnect the post_save signal handler to avoid test leakage
Browse files Browse the repository at this point in the history
  • Loading branch information
tim-schilling committed Oct 18, 2024
1 parent 9d638c1 commit 8de749c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/test_authentication.py
Original file line number Diff line number Diff line change
Expand Up @@ -348,6 +348,7 @@ def create_profile(sender, instance, created, **kwargs):
self.assertEqual(user.last_name, "Doe")
self.assertEqual(user.email, "john.doe@example.com")
self.assertEqual(user.profile.employee_id, 182)
post_save.disconnect(create_profile, sender=User)

@mock_adfs("2016")
def test_authentication(self):
Expand Down

0 comments on commit 8de749c

Please sign in to comment.