bdd tests: make import style configurable

The switch is for development. Tests are not guaranteed to still
work when run with anything but the 'extratags' style.
This commit is contained in:
Sarah Hoffmann
2022-10-04 17:01:25 +02:00
parent 981e9700be
commit de2a3bd5f8
3 changed files with 5 additions and 1 deletions

View File

@@ -17,7 +17,7 @@ def get_osm2pgsql_options(nominatim_env, fname, append):
return dict(import_file=fname,
osm2pgsql=str(nominatim_env.build_dir / 'osm2pgsql' / 'osm2pgsql'),
osm2pgsql_cache=50,
osm2pgsql_style=str(nominatim_env.src_dir / 'settings' / 'import-extratags.style'),
osm2pgsql_style=str(nominatim_env.get_test_config().get_import_style_file()),
threads=1,
dsn=nominatim_env.get_libpq_dsn(),
flatnode_file='',