mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-02-15 02:47:59 +00:00
add tests for cleaning housenumbers
This commit is contained in:
@@ -39,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')
|
||||
|
||||
Reference in New Issue
Block a user