mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-02-16 05:18:00 +00:00
use a frozen DB for API tests
This way we also test that dropping does the right thing.
This commit is contained in:
@@ -182,6 +182,7 @@ class NominatimEnvironment:
|
||||
try:
|
||||
self.run_setup_script('all', osm_file=self.api_test_file)
|
||||
self.run_setup_script('import-tiger-data')
|
||||
self.run_setup_script('drop')
|
||||
|
||||
phrase_file = str((testdata / 'specialphrases_testdb.sql').resolve())
|
||||
run_script(['psql', '-d', self.api_test_db, '-f', phrase_file])
|
||||
|
||||
Reference in New Issue
Block a user