mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-08-04 00:42:16 +02:00
fixed test_management_scripts for import_tables script
This commit is contained in:
parent
6361369953
commit
7c1b3ee698
1 changed files with 0 additions and 5 deletions
|
@ -1077,11 +1077,6 @@ class TestImportTables(TestCase):
|
|||
for table_name in table_names:
|
||||
mock_path_exists.assert_any_call(f"{table_name}_1.csv")
|
||||
|
||||
# Check that clean_tables is called for Contact
|
||||
mock_get_model.assert_any_call("registrar", "Contact")
|
||||
model_mock = mock_get_model.return_value
|
||||
model_mock.objects.all().delete.assert_called()
|
||||
|
||||
# Check that logger.info was called for each successful import
|
||||
for table_name in table_names:
|
||||
mock_logger.info.assert_any_call(f"Successfully imported {table_name}_1.csv into {table_name}")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue