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

Function test_insert_ids

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

Source from the content-addressed store, hash-verified

44
45
46def test_insert_ids(db: TinyDB):
47 db.drop_tables()
48 assert db.insert({'int': 1, 'char': 'a'}) == 1
49 assert db.insert({'int': 1, 'char': 'a'}) == 2
50
51
52def test_insert_with_doc_id(db: TinyDB):

Callers

nothing calls this directly

Calls 2

drop_tablesMethod · 0.80
insertMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…