X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/b7422004421ff5f9ecf9c9f6d8fb5d23d9d0f2ec..af85ad390fcafbf6d73577b0d5d95c945d6d70b2:/test/bdd/environment.py diff --git a/test/bdd/environment.py b/test/bdd/environment.py index afaa5151..664b5ac7 100644 --- a/test/bdd/environment.py +++ b/test/bdd/environment.py @@ -46,7 +46,10 @@ def before_all(context): def before_scenario(context, scenario): - if 'DB' in context.tags: + if not 'SQLITE' in context.tags \ + and context.config.userdata['API_TEST_DB'].startswith('sqlite:'): + context.scenario.skip("Not usable with Sqlite database.") + elif 'DB' in context.tags: context.nominatim.setup_db(context) elif 'APIDB' in context.tags: context.nominatim.setup_api_db()