MCPcopy Index your code
hub / github.com/MongoEngine/mongoengine / tearDown

Method tearDown

tests/document/test_instance.py:68–70  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

66 self.Job = Job
67
68 def tearDown(self):
69 for collection in list_collection_names(self.db):
70 self.db.drop_collection(collection)
71
72 def _assert_db_equal(self, docs):
73 assert list(self.Person._get_collection().find().sort("id")) == sorted(

Callers

nothing calls this directly

Calls 2

list_collection_namesFunction · 0.90
drop_collectionMethod · 0.80

Tested by

no test coverage detected