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

Function test_path_and

tests/test_queries.py:31–37  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

29
30
31def test_path_and():
32 query = Query()['value'].exists() & (Query()['value'] == 5)
33 assert query({'value': 5})
34 assert not query({'value': 10})
35 assert not query({'something': 1})
36 assert hash(query)
37 assert hash(query) != hash(where('value'))
38
39
40def test_callable_in_path_with_map():

Callers

nothing calls this directly

Calls 3

QueryClass · 0.90
whereFunction · 0.90
existsMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…