X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/b7422004421ff5f9ecf9c9f6d8fb5d23d9d0f2ec..38369ca3cfe6e52bb6f7589c714a04294497520e:/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()