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

Function test_callable_in_path_with_map

tests/test_queries.py:40–44  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

38
39
40def test_callable_in_path_with_map():
41 double = lambda x: x + x
42 query = Query().value.map(double) == 10
43 assert query({'value': 5})
44 assert not query({'value': 10})
45
46
47def test_callable_in_path_with_chain():

Callers

nothing calls this directly

Calls 2

QueryClass · 0.90
mapMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…