]> git.openstreetmap.org Git - nominatim.git/blobdiff - test/python/tokenizer/token_analysis/test_generic.py
replace CASE construct with plpgsql function
[nominatim.git] / test / python / tokenizer / token_analysis / test_generic.py
index 18ed109b3d1759f3661c9f47055003b187f69f0a..976bbd1b6515dc325ec4df1ea23753340e8ece3c 100644 (file)
@@ -39,7 +39,7 @@ def make_analyser(*variants, variant_only=False):
 
 def get_normalized_variants(proc, name):
     norm = Transliterator.createFromRules("test_norm", DEFAULT_NORMALIZATION)
 
 def get_normalized_variants(proc, name):
     norm = Transliterator.createFromRules("test_norm", DEFAULT_NORMALIZATION)
-    return proc.get_variants_ascii(norm.transliterate(name).strip())
+    return proc.compute_variants(norm.transliterate(name).strip())
 
 
 def test_no_variants():
 
 
 def test_no_variants():