mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-08-15 22:14:15 +02:00
fixed linter
This commit is contained in:
parent
9ecb9f3556
commit
f60fcc658e
1 changed files with 4 additions and 4 deletions
|
@ -789,7 +789,7 @@ class TestCleanTables(TestCase):
|
||||||
"""Test that the handle method does not process in production"""
|
"""Test that the handle method does not process in production"""
|
||||||
with less_console_noise():
|
with less_console_noise():
|
||||||
with patch(
|
with patch(
|
||||||
"registrar.management.commands.utility.terminal_helper.TerminalHelper.query_yes_no_exit", # noqa
|
"registrar.management.commands.utility.terminal_helper.TerminalHelper.query_yes_no_exit", # noqa
|
||||||
return_value=True,
|
return_value=True,
|
||||||
):
|
):
|
||||||
call_command("clean_tables")
|
call_command("clean_tables")
|
||||||
|
@ -804,7 +804,7 @@ class TestCleanTables(TestCase):
|
||||||
get_model_mock.return_value = model_mock
|
get_model_mock.return_value = model_mock
|
||||||
|
|
||||||
with patch(
|
with patch(
|
||||||
"registrar.management.commands.utility.terminal_helper.TerminalHelper.query_yes_no_exit", # noqa
|
"registrar.management.commands.utility.terminal_helper.TerminalHelper.query_yes_no_exit", # noqa
|
||||||
return_value=True,
|
return_value=True,
|
||||||
):
|
):
|
||||||
call_command("clean_tables")
|
call_command("clean_tables")
|
||||||
|
@ -836,7 +836,7 @@ class TestCleanTables(TestCase):
|
||||||
with patch("django.apps.apps.get_model", side_effect=LookupError):
|
with patch("django.apps.apps.get_model", side_effect=LookupError):
|
||||||
with patch(
|
with patch(
|
||||||
"registrar.management.commands.utility.terminal_helper.TerminalHelper.query_yes_no_exit", # noqa
|
"registrar.management.commands.utility.terminal_helper.TerminalHelper.query_yes_no_exit", # noqa
|
||||||
return_value=True,
|
return_value=True,
|
||||||
):
|
):
|
||||||
call_command("clean_tables")
|
call_command("clean_tables")
|
||||||
# Assert that the error message was logged for any of the table names
|
# Assert that the error message was logged for any of the table names
|
||||||
|
@ -861,7 +861,7 @@ class TestCleanTables(TestCase):
|
||||||
model_mock.objects.all().delete.side_effect = Exception("Some error")
|
model_mock.objects.all().delete.side_effect = Exception("Some error")
|
||||||
|
|
||||||
with patch(
|
with patch(
|
||||||
"registrar.management.commands.utility.terminal_helper.TerminalHelper.query_yes_no_exit", # noqa
|
"registrar.management.commands.utility.terminal_helper.TerminalHelper.query_yes_no_exit", # noqa
|
||||||
return_value=True,
|
return_value=True,
|
||||||
):
|
):
|
||||||
call_command("clean_tables")
|
call_command("clean_tables")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue