Skip to content

Commit 12aeeb0

Browse files
committed
test: query_condition with ops but no aliases #39
1 parent 902e313 commit 12aeeb0

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

tests/test_query.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -403,6 +403,13 @@ def test_set_parameter_alias_advanced():
403403
)
404404
).build()
405405
assert len(query.find_ids()) == 0
406+
407+
# Test & and | without alias
408+
query = box.query(
409+
str_prop.equals("applE")
410+
| str_prop.equals("orange", case_sensitive=False) & bool_prop.equals(False)
411+
).build()
412+
assert len(query.find_ids()) == 2
406413

407414
# Test using & and | ops
408415
query = box.query(

0 commit comments

Comments
 (0)