X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/837d44391c00348c4bc2a39d155d1d1473676285..513504140512d17ddbe0769b2ec3887ee16f7e31:/test/python/tokenizer/token_analysis/test_generic_mutation.py diff --git a/test/python/tokenizer/token_analysis/test_generic_mutation.py b/test/python/tokenizer/token_analysis/test_generic_mutation.py index abe31f6d..ff4c3a74 100644 --- a/test/python/tokenizer/token_analysis/test_generic_mutation.py +++ b/test/python/tokenizer/token_analysis/test_generic_mutation.py @@ -31,16 +31,16 @@ class TestMutationNoVariants: 'mutations': [ {'pattern': m[0], 'replacements': m[1]} for m in mutations] } - config = module.configure(rules, DEFAULT_NORMALIZATION) trans = Transliterator.createFromRules("test_trans", DEFAULT_TRANSLITERATION) norm = Transliterator.createFromRules("test_norm", DEFAULT_NORMALIZATION) + config = module.configure(rules, norm, trans) self.analysis = module.create(norm, trans, config) def variants(self, name): norm = Transliterator.createFromRules("test_norm", DEFAULT_NORMALIZATION) - return set(self.analysis.get_variants_ascii(norm.transliterate(name).strip())) + return set(self.analysis.compute_variants(norm.transliterate(name).strip())) @pytest.mark.parametrize('pattern', ('(capture)', ['a list']))