This commit is contained in:
rachidatecs 2023-08-25 14:26:50 -04:00
parent 6c308332b0
commit a676da486a
No known key found for this signature in database
GPG key ID: 3CEBBFA7325E5525
2 changed files with 4 additions and 2 deletions

View file

@ -367,7 +367,8 @@ class DomainApplicationAdmin(ListHeaderAdmin):
if obj and obj.creator.status == "ineligible": if obj and obj.creator.status == "ineligible":
messages.warning( messages.warning(
request, request,
"Cannot edit an application when its creator has a status of ineligible.", "Cannot edit an application when its creator "
+ "has a status of ineligible.",
) )
def change_view(self, request, object_id, form_url="", extra_context=None): def change_view(self, request, object_id, form_url="", extra_context=None):

View file

@ -409,7 +409,8 @@ class TestDomainApplicationAdmin(TestCase):
# 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(
request, request,
"Cannot edit an application when its creator has a status of ineligible.", "Cannot edit an application when its creator "
+ "has a status of ineligible.",
) )
def tearDown(self): def tearDown(self):