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

Method tearDown

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

Source from the content-addressed store, hash-verified

22 self.Person = Person
23
24 def tearDown(self):
25 for collection in list_collection_names(self.db):
26 self.db.drop_collection(collection)
27
28 def test_definition(self):
29 """Ensure that document may be defined using fields."""

Callers

nothing calls this directly

Calls 2

list_collection_namesFunction · 0.90
drop_collectionMethod · 0.80

Tested by

no test coverage detected