]> git.openstreetmap.org Git - nominatim.git/blobdiff - test/bdd/environment.py
Merge pull request #3273 from lonvia/search-with-sqlite
[nominatim.git] / test / bdd / environment.py
index afaa51512a7c1041e659725e2bc6ca9bfaaae77e..664b5ac79e7d2013182ebff5036f04889870f586 100644 (file)
@@ -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()