MCPcopy
hub / github.com/msiemens/tinydb / test_or

Function test_or

tests/test_queries.py:109–118  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

107
108
109def test_or():
110 query = (
111 (Query().val1 == 1) |
112 (Query().val2 == 2)
113 )
114 assert query({'val1': 1})
115 assert query({'val2': 2})
116 assert query({'val1': 1, 'val2': 2})
117 assert not query({'val1': '', 'val2': ''})
118 assert hash(query)
119
120
121def test_and():

Callers

nothing calls this directly

Calls 1

QueryClass · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…