X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/3cdbcbff8f02d7b46dde503c32bc8327e4264f6f..e929399d4dd23fa1571dd77cf489ef51d716f5cc:/test/bdd/environment.py diff --git a/test/bdd/environment.py b/test/bdd/environment.py index 2bea3180..162346de 100644 --- a/test/bdd/environment.py +++ b/test/bdd/environment.py @@ -122,6 +122,9 @@ class NominatimEnvironment(object): def setup_api_db(self, context): self.write_nominatim_config(self.api_test_db) + def setup_unknown_db(self, context): + self.write_nominatim_config('UNKNOWN_DATABASE_NAME') + def setup_db(self, context): self.setup_template_db() self.write_nominatim_config(self.test_db) @@ -261,6 +264,8 @@ def before_scenario(context, scenario): context.nominatim.setup_db(context) elif 'APIDB' in context.tags: context.nominatim.setup_api_db(context) + elif 'UNKNOWNDB' in context.tags: + context.nominatim.setup_unknown_db(context) context.scene = None def after_scenario(context, scenario):