Update test_admin.py

This commit is contained in:
zandercymatics 2024-01-03 13:11:12 -07:00
parent 3ffad88b5d
commit 8febb199ea
No known key found for this signature in database
GPG key ID: FF4636ABEC9682B7

View file

@ -59,7 +59,8 @@ class TestDomainAdmin(MockEppLib):
"""
self.client.force_login(self.superuser)
application = completed_application(status=DomainApplication.ApplicationStatus.IN_REVIEW)
with boto3_mocking.clients.handler_for("sesv2", self.mock_client):
mock_client = MockSESClient()
with boto3_mocking.clients.handler_for("sesv2", mock_client):
with less_console_noise():
application.approve()