Skip to content

Commit

Permalink
Add note about mongomock bug
Browse files Browse the repository at this point in the history
  • Loading branch information
ml-evs committed Mar 4, 2020
1 parent 9d153a2 commit 4257de4
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions tests/server/test_query_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -397,11 +397,10 @@ def test_list_length(self):
def test_list_has_only(self):
""" Test HAS ONLY query on elements.
Curiously this test fails under mongomock when $size is 1, but works with a real mongo.
This test fails with mongomock<=3.1.9 when $size is 1, but works with a real mongo.
The queries produced in each case should be:
- `{"elements": {"$all": ["Ac", "Mg"], "$size": 2}}`
- `{"elements": {"$all": ["Ac"], "$size": 1}}`
TODO: this text should be removed once mongomock>3.1.9 has been released, which should
contain the bugfix for this: https://github.com/mongomock/mongomock/pull/597.
"""

Expand Down

0 comments on commit 4257de4

Please sign in to comment.