added subcommand to clean deleted relations for issue # 2444

This commit is contained in:
lujoh
2023-10-12 22:00:43 -04:00
parent 95c3181a35
commit e9efef9095
5 changed files with 133 additions and 0 deletions

View File

@@ -33,6 +33,12 @@ def test_admin_migrate(cli_call, mock_func_factory):
assert mock.called == 1
def test_admin_clean_deleted_relations(cli_call, mock_func_factory):
mock = mock_func_factory(nominatim.tools.admin, 'clean_deleted_relations')
assert cli_call('admin', '--clean-deleted') == 0
assert mock.called == 1
class TestCliAdminWithDb:
@pytest.fixture(autouse=True)