linter fixes

This commit is contained in:
matthewswspence 2025-02-10 10:30:50 -06:00
parent 0f50fd62e9
commit f08c2ff4ad
No known key found for this signature in database
GPG key ID: FB458202A7852BA4
2 changed files with 11 additions and 13 deletions

View file

@ -1034,7 +1034,7 @@ class Domain(TimeStampedModel, DomainHelper):
logger.error(f"registry error removing client hold: {err}")
raise (err)
def _delete_domain(self):
def _delete_domain(self): # noqa
"""This domain should be deleted from the registry
may raises RegistryError, should be caught or handled correctly by caller"""
@ -1058,7 +1058,9 @@ class Domain(TimeStampedModel, DomainHelper):
) = self.getNameserverChanges(hosts=[])
# update the hosts
_ = self._update_host_values(updated_values, oldNameservers) # returns nothing, just need to be run and errors
_ = self._update_host_values(
updated_values, oldNameservers
) # returns nothing, just need to be run and errors
addToDomainList, _ = self.createNewHostList(new_values)
deleteHostList, _ = self.createDeleteHostList(deleted_values)
responseCode = self.addAndRemoveHostsFromDomain(hostsToAdd=addToDomainList, hostsToDelete=deleteHostList)

View file

@ -2887,16 +2887,13 @@ class TestAnalystDelete(MockEppLib):
# Check that dsdata is None
self.assertEqual(domain.dnssecdata, None)
# Print out all calls from the mockedSendFunction
print("\nAll calls to mockedSendFunction:")
for call in self.mockedSendFunction.call_args_list:
print(f"- {call}")
# Check that the UpdateDomain command was sent to the registry with the correct extension
self.mockedSendFunction.assert_has_calls(
[
call(
commands.UpdateDomain(name="dsdomain.gov", add=[], rem=[], nsset=None, keyset=None, registrant=None, auth_info=None),
commands.UpdateDomain(
name="dsdomain.gov", add=[], rem=[], nsset=None, keyset=None, registrant=None, auth_info=None
),
cleaned=True,
),
]
@ -2905,7 +2902,6 @@ class TestAnalystDelete(MockEppLib):
# Check that the domain was deleted
self.assertEqual(domain.state, Domain.State.DELETED)
@less_console_noise_decorator
def test_deletion_ready_fsm_failure(self):
"""