]> git.openstreetmap.org Git - nominatim.git/commitdiff
avoid calling OSM servers during bdd tests
authorSarah Hoffmann <lonvia@denofr.de>
Wed, 11 May 2022 13:33:01 +0000 (15:33 +0200)
committerSarah Hoffmann <lonvia@denofr.de>
Wed, 11 May 2022 13:33:01 +0000 (15:33 +0200)
test/bdd/steps/nominatim_environment.py
test/bdd/steps/steps_db_ops.py

index 70a03e6ec31e37a148f1ea0255c3b283913704b5..9bf182bc1fe408f866441f776560b6288d7f8bbb 100644 (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
index 4c711b725b34588599fa01fe27cbbf16698fde6a..5ce416b013678a741f064cbbe2b19d30040e4b42 100644 (file)
@@ -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)