Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
368
def
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
374
def
test_get_multiple_ids(db: TinyDB):
Callers
nothing calls this directly
Calls
2
all
Method · 0.45
get
Method · 0.45
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…