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

Function test_search_path

tests/test_tinydb.py:347–353  ·  view source on GitHub ↗
(db: TinyDB)

Source from the content-addressed store, hash-verified

345
346
347def test_search_path(db: TinyDB):
348 assert not db._query_cache
349 assert len(db.search(where('int').exists())) == 3
350 assert len(db._query_cache) == 1
351
352 assert len(db.search(where('asd').exists())) == 0
353 assert len(db.search(where('int').exists())) == 3 # Query result from cache
354
355
356def test_search_no_results_cache(db: TinyDB):

Callers

nothing calls this directly

Calls 3

whereFunction · 0.90
existsMethod · 0.80
searchMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…