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

Function test_all

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

Source from the content-addressed store, hash-verified

19
20
21def test_all(db: TinyDB):
22 db.drop_tables()
23
24 for i in range(10):
25 db.insert({})
26
27 assert len(db.all()) == 10
28
29
30def test_insert(db: TinyDB):

Callers

nothing calls this directly

Calls 3

drop_tablesMethod · 0.80
insertMethod · 0.80
allMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…