improve deprecated pymongo call
This commit is contained in:
parent
8c3058d99b
commit
48357640c6
@ -3846,9 +3846,7 @@ class DBFieldMappingTest(MongoDBTestCase):
|
||||
self.DynDoc = DynDoc
|
||||
|
||||
def tearDown(self):
|
||||
for collection in self.db.collection_names():
|
||||
if "system." in collection:
|
||||
continue
|
||||
for collection in list_collection_names(self.db):
|
||||
self.db.drop_collection(collection)
|
||||
|
||||
def test_setting_fields_in_constructor_of_strict_doc_uses_model_names(self):
|
||||
|
Loading…
x
Reference in New Issue
Block a user