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

Function test_one_table

tests/test_tables.py:23–29  ·  view source on GitHub ↗
(db)

Source from the content-addressed store, hash-verified

21
22
23def test_one_table(db):
24 table1 = db.table('table1')
25
26 table1.insert_multiple({'int': 1, 'char': c} for c in 'abc')
27
28 assert table1.get(where('int') == 1)['char'] == 'a'
29 assert table1.get(where('char') == 'b')['char'] == 'b'
30
31
32def test_multiple_tables(db):

Callers

nothing calls this directly

Calls 4

whereFunction · 0.90
tableMethod · 0.80
insert_multipleMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…