try dropping collection

This commit is contained in:
Stefan Wojcik 2016-12-03 23:32:52 -05:00
parent 890e58bfcd
commit c1a8b468c5

View File

@ -339,7 +339,6 @@ class QuerySetTest(unittest.TestCase):
def test_update_write_concern(self): def test_update_write_concern(self):
"""Test that passing write_concern works""" """Test that passing write_concern works"""
self.Person.drop_collection() self.Person.drop_collection()
write_concern = {"fsync": True} write_concern = {"fsync": True}
@ -2201,6 +2200,8 @@ class QuerySetTest(unittest.TestCase):
def test_comment(self): def test_comment(self):
"""Make sure adding a comment to the query works.""" """Make sure adding a comment to the query works."""
self.Person.drop_collection()
with db_ops_tracker() as q: with db_ops_tracker() as q:
adult = (self.Person.objects.filter(age__gte=18) adult = (self.Person.objects.filter(age__gte=18)
.comment('looking for an adult') .comment('looking for an adult')