Skip to content

Commit

Permalink
Do not use mongomock internals in test if possible.
Browse files Browse the repository at this point in the history
  • Loading branch information
pcorpet committed Feb 6, 2022
1 parent b852024 commit 2826cac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test__mongomock.py
Original file line number Diff line number Diff line change
Expand Up @@ -2007,7 +2007,7 @@ def test__list_indexes(self):
self.cmp.compare_ignore_order.sort_by(lambda i: i['name']).list_indexes()

def test__empty_logical_operators(self):
for operator in mongomock.filtering.LOGICAL_OPERATOR_MAP:
for operator in ('$or', '$and', '$nor'):
self.cmp.compare_exceptions.find({operator: []})

def test__rename(self):
Expand Down

0 comments on commit 2826cac

Please sign in to comment.