Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
jedie committed Nov 21, 2021
1 parent d290827 commit efa4715
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion django_tools/model_version_protect/tests/test_admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,13 @@ class ModelVersionProtectAdminTestCase(HtmlAssertionMixin, TestCase):
@classmethod
def setUpTestData(cls):
super().setUpTestData()
cls.super_user = baker.make(get_user_model(), username='TestUser', is_staff=True, is_superuser=True)
cls.super_user = baker.make(
get_user_model(),
id=1,
username='TestUser',
is_staff=True,
is_superuser=True
)

def reset_client(self):
self.client = self.client_class()
Expand Down

0 comments on commit efa4715

Please sign in to comment.