forked from hans/Nominatim
added subcommand to clean deleted relations for issue # 2444
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user