Patch withdrawn email

This commit is contained in:
zandercymatics 2024-01-03 13:30:20 -07:00
parent c29b886dbd
commit 6eaed35b3e
No known key found for this signature in database
GPG key ID: FF4636ABEC9682B7

View file

@ -2527,9 +2527,12 @@ class TestApplicationStatus(TestWithUser, WebTest):
self.assertContains(detail_page, "Admin Tester") self.assertContains(detail_page, "Admin Tester")
self.assertContains(detail_page, "Status:") self.assertContains(detail_page, "Status:")
# click the "Withdraw request" button # click the "Withdraw request" button
withdraw_page = detail_page.click("Withdraw request") mock_client = MockSESClient()
self.assertContains(withdraw_page, "Withdraw request for") with boto3_mocking.clients.handler_for("sesv2", mock_client):
home_page = withdraw_page.click("Withdraw request") with less_console_noise():
withdraw_page = detail_page.click("Withdraw request")
self.assertContains(withdraw_page, "Withdraw request for")
home_page = withdraw_page.click("Withdraw request")
# confirm that it has redirected, and the status has been updated to withdrawn # confirm that it has redirected, and the status has been updated to withdrawn
self.assertRedirects( self.assertRedirects(
home_page, home_page,