forked from hans/Nominatim
Integrated OSM views into importance computation
This commit is contained in:
committed by
Sarah Hoffmann
parent
ac467c7a2d
commit
0ab0f0ea44
@@ -69,7 +69,7 @@ class TestCliImportWithDb:
|
||||
assert cf_mock.called > 1
|
||||
|
||||
for mock in mocks:
|
||||
assert mock.called > 0, "Mock '{}' not called".format(mock.func_name)
|
||||
assert mock.called == 1, "Mock '{}' not called".format(mock.func_name)
|
||||
|
||||
|
||||
def test_import_continue_load_data(self, mock_func_factory):
|
||||
|
||||
@@ -32,7 +32,7 @@ class TestRefresh:
|
||||
func_mock = mock_func_factory(nominatim.tools.refresh, func)
|
||||
|
||||
assert self.call_nominatim('refresh', '--' + command) == 0
|
||||
assert func_mock.called > 0
|
||||
assert func_mock.called == 1
|
||||
|
||||
|
||||
def test_refresh_word_count(self):
|
||||
|
||||
Reference in New Issue
Block a user