X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/2cdbcac353805767df011edc494f8067f9409f63..dbaf215feacb6ca82ec8c1bf3821ba5ebf218778:/test/python/cli/test_cmd_refresh.py diff --git a/test/python/cli/test_cmd_refresh.py b/test/python/cli/test_cmd_refresh.py index 18cc805a..b6281c7a 100644 --- a/test/python/cli/test_cmd_refresh.py +++ b/test/python/cli/test_cmd_refresh.py @@ -1,3 +1,9 @@ +# SPDX-License-Identifier: GPL-2.0-only +# +# This file is part of Nominatim. (https://nominatim.org) +# +# Copyright (C) 2022 by the Nominatim developer community. +# For a full list of authors see the git log. """ Tests for command line interface wrapper for refresk command. """ @@ -33,6 +39,11 @@ class TestRefresh: assert self.tokenizer_mock.update_statistics_called + def test_refresh_word_tokens(self): + assert self.call_nominatim('refresh', '--word-tokens') == 0 + assert self.tokenizer_mock.update_word_tokens_called + + def test_refresh_postcodes(self, mock_func_factory, place_table): func_mock = mock_func_factory(nominatim.tools.postcodes, 'update_postcodes') idx_mock = mock_func_factory(nominatim.indexer.indexer.Indexer, 'index_postcodes')