mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-29 05:56:30 +02:00
fix broken test
This commit is contained in:
parent
887a9dfc33
commit
7fd5bacb03
2 changed files with 3 additions and 3 deletions
|
@ -2632,7 +2632,7 @@ class DomainRequestAdmin(ListHeaderAdmin, ImportExportModelAdmin):
|
||||||
change_url = reverse("admin:%s_%s_change" % (app_label, model_name), args=[obj_id])
|
change_url = reverse("admin:%s_%s_change" % (app_label, model_name), args=[obj_id])
|
||||||
|
|
||||||
message = format_html(
|
message = format_html(
|
||||||
"The status of this domain request cannot be changed because it has been joined to a domain in Ready status:" # noqa: E501
|
"The status of this domain request cannot be changed because it has been joined to a domain in Ready status: " # noqa: E501
|
||||||
"<a href='{}'>{}</a>",
|
"<a href='{}'>{}</a>",
|
||||||
mark_safe(change_url), # nosec
|
mark_safe(change_url), # nosec
|
||||||
escape(str(domain)),
|
escape(str(domain)),
|
||||||
|
|
|
@ -1812,7 +1812,7 @@ class TestDomainRequestAdmin(MockEppLib):
|
||||||
"Cannot edit a domain request with a restricted creator.",
|
"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):
|
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"""
|
"""Tests if the domain request has a warning message when the approved domain is in Ready state"""
|
||||||
# Create an instance of the model
|
# Create an instance of the model
|
||||||
|
@ -1840,7 +1840,7 @@ class TestDomainRequestAdmin(MockEppLib):
|
||||||
# Assert that the error message was called with the correct argument
|
# Assert that the error message was called with the correct argument
|
||||||
mock_warning.assert_called_once_with(
|
mock_warning.assert_called_once_with(
|
||||||
ANY, # don't care about the request argument
|
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):
|
def trigger_saving_approved_to_another_state(self, domain_is_active, another_state, rejection_reason=None):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue