avoid calling OSM servers during bdd tests

This commit is contained in:
Sarah Hoffmann
2022-05-11 15:33:01 +02:00
parent dc6c4bf22e
commit aa0ae610c6
2 changed files with 4 additions and 2 deletions

View File

@@ -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