update
This commit is contained in:
@@ -9,3 +9,17 @@ def test_parse():
|
||||
{'attr': 'payment_date', 'op': '>=', 'value': '2025-07-01'},
|
||||
{'attr': 'status', 'op': '=', 'value': 'PAID'},
|
||||
]
|
||||
|
||||
assert meili.parse('cnpj%20EXISTS') == [
|
||||
{'attr': 'cnpj', 'op': 'EXISTS', 'value': ''}
|
||||
]
|
||||
|
||||
|
||||
def test_encode():
|
||||
r = meili.encode(
|
||||
[
|
||||
{'attr': 'tenant', 'op': '=', 'value': '*'},
|
||||
{'attr': 'cnpj', 'op': 'EXISTS', 'value': ''},
|
||||
]
|
||||
)
|
||||
assert r == 'tenant = * AND cnpj EXISTS'
|
||||
|
||||
Reference in New Issue
Block a user