Exemplo n.º 1
0
 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
Exemplo n.º 2
0
 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
Exemplo n.º 3
0
 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