Update tests for postcodes

This commit is contained in:
AntoJvlt
2021-06-07 15:02:53 +02:00
committed by root
parent a4733eed90
commit e879814e43
2 changed files with 56 additions and 39 deletions

View File

@@ -320,7 +320,7 @@ class TestCliWithDb:
assert func_mock.called == 1
def test_refresh_postcodes(self, mock_func_factory):
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')