Skip to content

Commit 06ee23e

Browse files
authored
new: cover edge case in import_bulk test
1 parent 917f699 commit 06ee23e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/test_document.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1842,6 +1842,10 @@ def test_document_import_bulk(col, bad_col, docs):
18421842
assert type(result) is list
18431843
assert len(result) == 1
18441844
empty_collection(col)
1845+
1846+
# Test import bulk with overwrite and batch_size
1847+
with pytest.raises(ValueError):
1848+
col.import_bulk(docs, overwrite=True, batch_size=1)
18451849

18461850
# Test import bulk on_duplicate actions
18471851
doc = docs[0]

0 commit comments

Comments
 (0)