]> git.openstreetmap.org Git - nominatim.git/blobdiff - test/python/api/query_processing/test_regex_replace.py
Remove unnecessary assert statement, Fix regex_replace docstring and simplify regex_r...
[nominatim.git] / test / python / api / query_processing / test_regex_replace.py
index 288ac23e0e3cc373b9456fe1f58cd5a104c52a22..ef759ba142751d4a5e0439e753a49268de493f8d 100644 (file)
@@ -46,6 +46,4 @@ def test_split_phrases(inp, outp):
     query = [qmod.Phrase(qmod.PHRASE_ANY, text) for text in inp]
 
     out = run_preprocessor_on(query)
-    expected_out = [qmod.Phrase(qmod.PHRASE_ANY, text) for text in outp]
-
-    assert out == expected_out, f"Expected {expected_out}, but got {out}"
+    assert out == [qmod.Phrase(qmod.PHRASE_ANY, text) for text in outp]