]> git.openstreetmap.org Git - nominatim.git/blobdiff - test/bdd/steps/nominatim_environment.py
bdd: improve assert output for API query checks
[nominatim.git] / test / bdd / steps / nominatim_environment.py
index bc59076c2bfb8ccd9198ce7073cf2df80e1a6794..e799306a845461d5719c98092f67bfa2766a8572 100644 (file)
@@ -167,8 +167,11 @@ class NominatimEnvironment:
         self.test_env['NOMINATIM_WIKIPEDIA_DATA_PATH'] = str(testdata.resolve())
 
         try:
-            self.run_setup_script('all', 'import-tiger-data',
-                                  osm_file=self.api_test_file)
+            self.run_setup_script('all', osm_file=self.api_test_file)
+            self.run_setup_script('import-tiger-data')
+
+            phrase_file = str((testdata / 'specialphrases_testdb.sql').resolve())
+            run_script(['psql', '-d', self.api_test_db, '-f', phrase_file])
         except:
             self.db_drop_database(self.api_test_db)
             raise