Support dans l'API et le MCP de l'opérateur startswith, utile pour les codes CPV

This commit is contained in:
Colin Maudry
2026-07-14 21:16:08 +02:00
parent ca320bdc1f
commit d920e1ca8e
8 changed files with 42 additions and 6 deletions
+6
View File
@@ -39,6 +39,12 @@ def test_notcontains_filter():
assert params == ["%x%"]
def test_startswith_filter_uses_prefix_wildcard():
where, params, _ = build_where([("objet__startswith", "72")], SCHEMA)
assert where == '"objet" LIKE ?'
assert params == ["72%"]
def test_comparison_operators_on_int():
where, params, _ = build_where([("annee__strictly_greater", "2023")], SCHEMA)
assert where == '"annee" > ?'