X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/0c65289a80fb376b9d7e53653e16cef6a8fa781e..7b27c04b8392d0babe33cf53e2838b05ffbcbacf:/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()