This commit is contained in:
zandercymatics 2024-10-04 12:37:42 -06:00
parent cfff3322bc
commit c6f50f0af2
No known key found for this signature in database
GPG key ID: FF4636ABEC9682B7
2 changed files with 6 additions and 5 deletions

View file

@ -2788,7 +2788,8 @@ class DomainRequestTests(TestWithUser, WebTest):
def test_non_creator_access(self):
"""Tests that a user cannot edit a domain request they didn't create"""
other_user = User.objects.create_user(username="other_user", password="password")
p = "password"
other_user = User.objects.create_user(username="other_user", password=p)
domain_request = completed_domain_request(user=other_user)
edit_page = self.app.get(reverse("edit-domain-request", kwargs={"id": domain_request.pk}), expect_errors=True)