We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ff3436b commit b120c2dCopy full SHA for b120c2d
flask_pymongo/tests/test_wrappers.py
@@ -6,7 +6,7 @@
6
class CollectionTest(FlaskPyMongoTest):
7
8
def test_find_one_or_404(self):
9
- self.mongo.db.things.remove()
+ self.mongo.db.things.delete_many({})
10
11
try:
12
self.mongo.db.things.find_one_or_404({"_id": "thing"})
@@ -20,7 +20,7 @@ def test_find_one_or_404(self):
20
assert thing["val"] == "foo", "got wrong thing"
21
22
# also test with dotted-named collections
23
- self.mongo.db.things.morethings.remove()
+ self.mongo.db.things.morethings.delete_many({})
24
25
self.mongo.db.things.morethings.find_one_or_404({"_id": "thing"})
26
except HTTPException as notfound:
0 commit comments