def test_batch_insert(self, dao: InMemoryDao): batch = [{'foo': 'bar'}, {'foo': 'baz'}] result = dao.batch_insert(batch) assert result == (4, 5) assert list(dao.filter(where('foo').exists())) == batch
def test_batch_insert(self, dao: InMemoryDao): batch = [{"foo": "bar"}, {"foo": "baz"}] result = dao.batch_insert(batch) assert result == (4, 5) assert list(dao.filter(where("foo").exists())) == batch