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

Function test_get_ids

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

Source from the content-addressed store, hash-verified

366
367
368def test_get_ids(db: TinyDB):
369 el = db.all()[0]
370 assert db.get(doc_id=el.doc_id) == el
371 assert db.get(doc_id=float('NaN')) is None # type: ignore
372
373
374def test_get_multiple_ids(db: TinyDB):

Callers

nothing calls this directly

Calls 2

allMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…