mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-31 15:06:32 +02:00
Linter mc linterton
This commit is contained in:
parent
9a9c814269
commit
b7a5e0e763
3 changed files with 9 additions and 7 deletions
|
@ -653,8 +653,7 @@ class Domain(TimeStampedModel, DomainHelper):
|
||||||
"""This domain should be deleted from the registry
|
"""This domain should be deleted from the registry
|
||||||
may raises RegistryError, should be caught or handled correctly by caller"""
|
may raises RegistryError, should be caught or handled correctly by caller"""
|
||||||
request = commands.DeleteDomain(name=self.name)
|
request = commands.DeleteDomain(name=self.name)
|
||||||
response = registry.send(request, cleaned=True)
|
registry.send(request, cleaned=True)
|
||||||
return response
|
|
||||||
|
|
||||||
def __str__(self) -> str:
|
def __str__(self) -> str:
|
||||||
return self.name
|
return self.name
|
||||||
|
|
|
@ -98,7 +98,8 @@ class TestDomainAdmin(MockEppLib):
|
||||||
domain = create_ready_domain()
|
domain = create_ready_domain()
|
||||||
# Put in client hold
|
# Put in client hold
|
||||||
domain.place_client_hold()
|
domain.place_client_hold()
|
||||||
self.client.login(username="staffuser", password="userpass")
|
p = "userpass"
|
||||||
|
self.client.login(username="staffuser", password=p)
|
||||||
|
|
||||||
# Ensure everything is displaying correctly
|
# Ensure everything is displaying correctly
|
||||||
response = self.client.get(
|
response = self.client.get(
|
||||||
|
@ -137,7 +138,8 @@ class TestDomainAdmin(MockEppLib):
|
||||||
And `state` is not set to `DELETED`
|
And `state` is not set to `DELETED`
|
||||||
"""
|
"""
|
||||||
domain = create_ready_domain()
|
domain = create_ready_domain()
|
||||||
self.client.login(username="staffuser", password="userpass")
|
p = "userpass"
|
||||||
|
self.client.login(username="staffuser", password=p)
|
||||||
|
|
||||||
# Ensure everything is displaying correctly
|
# Ensure everything is displaying correctly
|
||||||
response = self.client.get(
|
response = self.client.get(
|
||||||
|
@ -180,7 +182,8 @@ class TestDomainAdmin(MockEppLib):
|
||||||
domain = create_ready_domain()
|
domain = create_ready_domain()
|
||||||
# Put in client hold
|
# Put in client hold
|
||||||
domain.place_client_hold()
|
domain.place_client_hold()
|
||||||
self.client.login(username="staffuser", password="userpass")
|
p = "userpass"
|
||||||
|
self.client.login(username="staffuser", password=p)
|
||||||
|
|
||||||
# Ensure everything is displaying correctly
|
# Ensure everything is displaying correctly
|
||||||
response = self.client.get(
|
response = self.client.get(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue