Skip to content

Commit

Permalink
add insert bytes test
Browse files Browse the repository at this point in the history
  • Loading branch information
davidlatwe committed Jun 7, 2021
1 parent 5a5f643 commit a788e8b
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/test_engine/test_insert.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,15 @@ def test_insert_invalid_doc_2(monty_find, mongo_find):

with pytest.raises(errors.InvalidDocument):
monty_find(docs, spec)


def test_insert_bytes(monty_find, mongo_find):
docs = [
{"data": b"some bytes"},
]
spec = {}

monty_c = monty_find(docs, spec)
mongo_c = mongo_find(docs, spec)

assert next(monty_c) == next(mongo_c)

0 comments on commit a788e8b

Please sign in to comment.