X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/40cb17d2995baaba6bec299d4e6dc65b25dbdc28..5e435b41baea139bf64a385f334f85c721503893:/test/bdd/environment.py diff --git a/test/bdd/environment.py b/test/bdd/environment.py index f179c8f1..2c277165 100644 --- a/test/bdd/environment.py +++ b/test/bdd/environment.py @@ -49,3 +49,9 @@ def before_scenario(context, scenario): def after_scenario(context, scenario): if 'DB' in context.tags: context.nominatim.teardown_db(context) + + +def before_tag(context, tag): + if tag == 'fail-legacy': + if context.config.userdata['TOKENIZER'] in (None, 'legacy'): + context.scenario.skip("Not implemented in legacy tokenizer")