X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/b7422004421ff5f9ecf9c9f6d8fb5d23d9d0f2ec..11ced26025fc5db0b5085b9b5abb012266ea2aef:/test/bdd/environment.py?ds=sidebyside diff --git a/test/bdd/environment.py b/test/bdd/environment.py index afaa5151..460f3569 100644 --- a/test/bdd/environment.py +++ b/test/bdd/environment.py @@ -28,7 +28,7 @@ userconfig = { 'SERVER_MODULE_PATH' : None, 'TOKENIZER' : None, # Test with a custom tokenizer 'STYLE' : 'extratags', - 'API_ENGINE': 'php', + 'API_ENGINE': 'falcon', 'PHPCOV' : False, # set to output directory to enable code coverage } @@ -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()