index postcodes after refreshing

This commit is contained in:
Sarah Hoffmann
2021-05-13 00:14:52 +02:00
parent 4abaf71234
commit bf864b2c54
3 changed files with 9 additions and 1 deletions

View File

@@ -278,6 +278,7 @@ def test_refresh_command(mock_func_factory, temp_db, command, func, tokenizer_mo
def test_refresh_postcodes(mock_func_factory, temp_db, tokenizer_mock):
func_mock = mock_func_factory(nominatim.tools.postcodes, 'update_postcodes')
idx_mock = mock_func_factory(nominatim.indexer.indexer.Indexer, 'index_postcodes')
assert 0 == call_nominatim('refresh', '--postcodes')
assert func_mock.called == 1