MCPcopy Create free account
hub / github.com/MongoEngine/mongoengine / tearDown

Method tearDown

tests/document/test_inheritance.py:22–24  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

20
21class TestInheritance(MongoDBTestCase):
22 def tearDown(self):
23 for collection in list_collection_names(self.db):
24 self.db.drop_collection(collection)
25
26 def test_constructor_cls(self):
27 # Ensures _cls is properly set during construction

Callers

nothing calls this directly

Calls 2

list_collection_namesFunction · 0.90
drop_collectionMethod · 0.80

Tested by

no test coverage detected