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

Function test_insert_multiple_with_ids

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

Source from the content-addressed store, hash-verified

100
101
102def test_insert_multiple_with_ids(db: TinyDB):
103 db.drop_tables()
104
105 # Insert multiple from list
106 assert db.insert_multiple([{'int': 1, 'char': 'a'},
107 {'int': 1, 'char': 'b'},
108 {'int': 1, 'char': 'c'}]) == [1, 2, 3]
109
110
111def test_insert_multiple_with_doc_ids(db: TinyDB):

Callers

nothing calls this directly

Calls 2

drop_tablesMethod · 0.80
insert_multipleMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…