Add additional patch for testing purposes

This commit is contained in:
zandercymatics 2023-12-28 10:46:53 -07:00
parent f1a5b4abea
commit 3e9b8e9c82
No known key found for this signature in database
GPG key ID: FF4636ABEC9682B7

View file

@ -712,6 +712,10 @@ class TestMigrations(TestCase):
with patch(
"registrar.management.commands.utility.terminal_helper.TerminalHelper.query_yes_no_exit", # noqa
return_value=True,
):
with patch(
"registrar.utility.email.send_templated_email",
return_value=None
):
call_command(
"master_domain_migrations",
@ -720,6 +724,7 @@ class TestMigrations(TestCase):
migrationJSON=self.migration_json_filename,
disablePrompts=True,
)
print(f"here: {mock_client.EMAILS_SENT}")
def compare_tables(
self,