]> git.openstreetmap.org Git - nominatim.git/blobdiff - test/python/api/query_processing/test_split_japanese_phrases.py
replace PhraseType enum with simple int constants
[nominatim.git] / test / python / api / query_processing / test_split_japanese_phrases.py
index 6055f9db570c174d18fd2d1de6021ac96b370388..51d592e3a724ca55c57c623ad5687123a254658e 100644 (file)
@@ -27,8 +27,8 @@ def run_preprocessor_on(query):
                                       ('大阪府大阪', '大阪府:大阪'),
                                       ('大阪市大阪', '大阪市:大阪')])
 def test_split_phrases(inp, outp):
                                       ('大阪府大阪', '大阪府:大阪'),
                                       ('大阪市大阪', '大阪市:大阪')])
 def test_split_phrases(inp, outp):
-    query = [qmod.Phrase(qmod.PhraseType.NONE, inp)]
+    query = [qmod.Phrase(qmod.PHRASE_ANY, inp)]
 
     out = run_preprocessor_on(query)
 
 
     out = run_preprocessor_on(query)
 
-    assert out == [qmod.Phrase(qmod.PhraseType.NONE, outp)]
+    assert out == [qmod.Phrase(qmod.PHRASE_ANY, outp)]