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

Function test_search

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

Source from the content-addressed store, hash-verified

337
338
339def test_search(db: TinyDB):
340 assert not db._query_cache
341 assert len(db.search(where('int') == 1)) == 3
342
343 assert len(db._query_cache) == 1
344 assert len(db.search(where('int') == 1)) == 3 # Query result from cache
345
346
347def test_search_path(db: TinyDB):

Callers

nothing calls this directly

Calls 2

whereFunction · 0.90
searchMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…