]> git.openstreetmap.org Git - nominatim.git/blobdiff - test/python/cli/test_cmd_admin.py
enable flake for Python tests
[nominatim.git] / test / python / cli / test_cmd_admin.py
index 7b0b9cd466fd6cfa27dd947af8752312f5656f4f..9732d73405b3f1bcb6cfd4995406047fed92d9c1 100644 (file)
@@ -2,7 +2,7 @@
 #
 # This file is part of Nominatim. (https://nominatim.org)
 #
-# Copyright (C) 2024 by the Nominatim developer community.
+# Copyright (C) 2025 by the Nominatim developer community.
 # For a full list of authors see the git log.
 """
 Test for the command line interface wrapper admin subcommand.
@@ -39,11 +39,13 @@ def test_admin_clean_deleted_relations(cli_call, mock_func_factory):
     assert cli_call('admin', '--clean-deleted', '1 month') == 0
     assert mock.called == 1
 
+
 def test_admin_clean_deleted_relations_no_age(cli_call, mock_func_factory):
-    mock = mock_func_factory(nominatim_db.tools.admin, 'clean_deleted_relations')
+    mock_func_factory(nominatim_db.tools.admin, 'clean_deleted_relations')
 
     assert cli_call('admin', '--clean-deleted') == 1
 
+
 class TestCliAdminWithDb:
 
     @pytest.fixture(autouse=True)
@@ -51,7 +53,6 @@ class TestCliAdminWithDb:
         self.call_nominatim = cli_call
         self.tokenizer_mock = cli_tokenizer_mock
 
-
     @pytest.mark.parametrize("func, params", [('analyse_indexing', ('--analyse-indexing', ))])
     def test_analyse_indexing(self, mock_func_factory, func, params):
         mock = mock_func_factory(nominatim_db.tools.admin, func)