mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-05-15 09:07:02 +02:00
Update test_admin.py
This commit is contained in:
parent
ea1e8aa510
commit
4aa816cfdf
1 changed files with 2 additions and 0 deletions
|
@ -2449,6 +2449,8 @@ class TestDomainRequestAdmin(MockEppLib):
|
||||||
request = self.factory.post("/admin/registrar/domainrequest/{}/change/".format(domain_request.pk))
|
request = self.factory.post("/admin/registrar/domainrequest/{}/change/".format(domain_request.pk))
|
||||||
request.user = self.superuser
|
request.user = self.superuser
|
||||||
|
|
||||||
|
request.session = {}
|
||||||
|
|
||||||
# Define a custom implementation for is_active
|
# Define a custom implementation for is_active
|
||||||
def custom_is_active(self):
|
def custom_is_active(self):
|
||||||
return domain_is_active # Override to return True
|
return domain_is_active # Override to return True
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue