(db: TinyDB)
| 58 | |
| 59 | |
| 60 | def test_insert_with_duplicate_doc_id(db: TinyDB): |
| 61 | db.drop_tables() |
| 62 | assert db.insert({'int': 1, 'char': 'a'}) == 1 |
| 63 | |
| 64 | with pytest.raises(ValueError): |
| 65 | db.insert(Document({'int': 1, 'char': 'a'}, 1)) |
| 66 | |
| 67 | |
| 68 | def test_insert_multiple(db: TinyDB): |
nothing calls this directly
no test coverage detected
searching dependent graphs…