Skip to content

Commit 21573bc

Browse files
committed
linter fixes
1 parent b740134 commit 21573bc

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

unittests/test_adminsite.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,9 @@ class AdminAccessGate(DojoTestCase):
3535

3636
def test_staff_non_superuser_blocked_from_admin(self):
3737
User = get_user_model()
38+
password = "testTEST1234!@#$"
3839
staff = User.objects.create_user(
39-
username="staff-no-root", password="x", is_staff=True,
40+
username="staff-no-root", password=password, is_staff=True,
4041
)
4142
self.client.force_login(staff)
4243

@@ -52,8 +53,9 @@ def test_staff_non_superuser_blocked_from_admin(self):
5253

5354
def test_superuser_can_reach_admin(self):
5455
User = get_user_model()
56+
password = "testTEST1234!@#$"
5557
root = User.objects.create_superuser(
56-
username="root-test", email="r@example.com", password="x",
58+
username="root-test", email="r@example.com", password=password,
5759
)
5860
self.client.force_login(root)
5961

0 commit comments

Comments
 (0)