mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-02-16 15:47:58 +00:00
avoid calling OSM servers during bdd tests
This commit is contained in:
@@ -184,7 +184,8 @@ class NominatimEnvironment:
|
||||
fd.flush()
|
||||
self.run_nominatim('import', '--osm-file', fd.name,
|
||||
'--osm2pgsql-cache', '1',
|
||||
'--ignore-errors')
|
||||
'--ignore-errors',
|
||||
'--offline', '--index-noanalyse')
|
||||
except:
|
||||
self.db_drop_database(self.template_db)
|
||||
raise
|
||||
|
||||
@@ -95,7 +95,8 @@ def import_and_index_data_from_place_table(context):
|
||||
"""
|
||||
context.nominatim.run_nominatim('refresh', '--functions')
|
||||
context.nominatim.run_nominatim('import', '--continue', 'load-data',
|
||||
'--index-noanalyse', '-q')
|
||||
'--index-noanalyse', '-q',
|
||||
'--offline')
|
||||
|
||||
check_database_integrity(context)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user