fix broken test

This commit is contained in:
matthewswspence 2024-12-31 11:11:24 -06:00
parent 887a9dfc33
commit 7fd5bacb03
No known key found for this signature in database
GPG key ID: FB458202A7852BA4
2 changed files with 3 additions and 3 deletions

View file

@ -1812,7 +1812,7 @@ class TestDomainRequestAdmin(MockEppLib):
"Cannot edit a domain request with a restricted creator.",
)
# @less_console_noise_decorator
@less_console_noise_decorator
def test_approved_domain_request_with_ready_domain_has_warning_message(self):
"""Tests if the domain request has a warning message when the approved domain is in Ready state"""
# Create an instance of the model
@ -1840,7 +1840,7 @@ class TestDomainRequestAdmin(MockEppLib):
# Assert that the error message was called with the correct argument
mock_warning.assert_called_once_with(
ANY, # don't care about the request argument
f"<li>The status of this domain request cannot be changed because it has been joined to a domain in Ready status: <a href='/admin/registrar/domain/{domain_request.approved_domain.id}/change/'>{domain_request.approved_domain.name}</a></li>", # noqa
f"The status of this domain request cannot be changed because it has been joined to a domain in Ready status: <a href='/admin/registrar/domain/{domain_request.approved_domain.id}/change/'>{domain_request.approved_domain.name}</a>", # noqa
)
def trigger_saving_approved_to_another_state(self, domain_is_active, another_state, rejection_reason=None):