From 96b929834f160119531af5b80956db3c44b0fdb3 Mon Sep 17 00:00:00 2001 From: David Kennedy Date: Fri, 26 Jan 2024 11:35:09 -0500 Subject: [PATCH 1/2] fixed broken test in test_admin --- src/registrar/tests/test_admin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/registrar/tests/test_admin.py b/src/registrar/tests/test_admin.py index 43771a260..4bc532f10 100644 --- a/src/registrar/tests/test_admin.py +++ b/src/registrar/tests/test_admin.py @@ -1766,7 +1766,7 @@ class ContactAdminTest(TestCase): f"Joined to DomainApplication: city2.gov
" f"Joined to DomainApplication: city3.gov
" f"Joined to DomainApplication: city4.gov
" - "Joined to User: staff@example.com
", + f"Joined to User: staff@example.com
", ) def test_change_view_for_joined_contact_five_or_more(self): From 39cff906a796dd5d2d8dc77fea5590470de4c65a Mon Sep 17 00:00:00 2001 From: David Kennedy Date: Fri, 26 Jan 2024 11:41:04 -0500 Subject: [PATCH 2/2] linting --- src/registrar/tests/test_admin.py | 30 ++++++++++++++++++++---------- 1 file changed, 20 insertions(+), 10 deletions(-) diff --git a/src/registrar/tests/test_admin.py b/src/registrar/tests/test_admin.py index 4bc532f10..796e22b59 100644 --- a/src/registrar/tests/test_admin.py +++ b/src/registrar/tests/test_admin.py @@ -1762,11 +1762,16 @@ class ContactAdminTest(TestCase): # Note: The 5th join will be a user. mock_warning.assert_called_once_with( response.wsgi_request, - f"Joined to DomainApplication: city1.gov
" - f"Joined to DomainApplication: city2.gov
" - f"Joined to DomainApplication: city3.gov
" - f"Joined to DomainApplication: city4.gov
" - f"Joined to User: staff@example.com
", + f"Joined to DomainApplication: " + "city1.gov
" + f"Joined to DomainApplication: " + "city2.gov
" + f"Joined to DomainApplication: " + "city3.gov
" + f"Joined to DomainApplication: " + "city4.gov
" + f"Joined to User: " + "staff@example.com
", ) def test_change_view_for_joined_contact_five_or_more(self): @@ -1794,11 +1799,16 @@ class ContactAdminTest(TestCase): # Note: The 6th join will be a user. mock_warning.assert_called_once_with( response.wsgi_request, - f"Joined to DomainApplication: city1.gov
" - f"Joined to DomainApplication: city2.gov
" - f"Joined to DomainApplication: city3.gov
" - f"Joined to DomainApplication: city4.gov
" - f"Joined to DomainApplication: city5.gov
" + f"Joined to DomainApplication: " + "city1.gov
" + f"Joined to DomainApplication: " + "city2.gov
" + f"Joined to DomainApplication: " + "city3.gov
" + f"Joined to DomainApplication: " + "city4.gov
" + f"Joined to DomainApplication: " + "city5.gov
" "And 1 more...", )