X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/c3788d765ed4e7ddf00794085af757714bc102cf..2eca9fc8aff8fc7bc3ab4b7e4bf262686a5a6a5c:/test/bdd/environment.py diff --git a/test/bdd/environment.py b/test/bdd/environment.py index 0acc73b4..c11a2c8c 100644 --- a/test/bdd/environment.py +++ b/test/bdd/environment.py @@ -50,7 +50,6 @@ def before_scenario(context, scenario): context.nominatim.setup_api_db() elif 'UNKNOWNDB' in context.tags: context.nominatim.setup_unknown_db() - context.scene = None def after_scenario(context, scenario): if 'DB' in context.tags: @@ -59,5 +58,5 @@ def after_scenario(context, scenario): def before_tag(context, tag): if tag == 'fail-legacy': - if context.config.userdata['TOKENIZER'] in (None, 'legacy'): + if context.config.userdata['TOKENIZER'] == 'legacy': context.scenario.skip("Not implemented in legacy tokenizer")