mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-08-19 16:04:38 +02:00
Fix unit test
This commit is contained in:
parent
084d56d32a
commit
77bd49c661
1 changed files with 2 additions and 2 deletions
|
@ -944,7 +944,7 @@ class TestDomainRequestAdminForm(TestCase):
|
||||||
self.assertIn("rejection_reason", form.errors)
|
self.assertIn("rejection_reason", form.errors)
|
||||||
|
|
||||||
rejection_reason = form.errors.get("rejection_reason")
|
rejection_reason = form.errors.get("rejection_reason")
|
||||||
self.assertEqual(rejection_reason, ["A rejection reason is required."])
|
self.assertEqual(rejection_reason, ["A reason is required for this status."])
|
||||||
|
|
||||||
def test_form_choices_when_no_instance(self):
|
def test_form_choices_when_no_instance(self):
|
||||||
with less_console_noise():
|
with less_console_noise():
|
||||||
|
@ -1911,7 +1911,7 @@ class TestDomainRequestAdmin(MockEppLib):
|
||||||
|
|
||||||
messages.error.assert_called_once_with(
|
messages.error.assert_called_once_with(
|
||||||
request,
|
request,
|
||||||
"A rejection reason is required.",
|
"A reason is required for this status.",
|
||||||
)
|
)
|
||||||
|
|
||||||
domain_request.refresh_from_db()
|
domain_request.refresh_from_db()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue