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

Method tearDown

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

Source from the content-addressed store, hash-verified

3858 self.DynDoc = DynDoc
3859
3860 def tearDown(self):
3861 for collection in list_collection_names(self.db):
3862 self.db.drop_collection(collection)
3863
3864 def test_setting_fields_in_constructor_of_strict_doc_uses_model_names(self):
3865 doc = self.Doc(z1=True, z2=False)

Callers

nothing calls this directly

Calls 2

list_collection_namesFunction · 0.90
drop_collectionMethod · 0.80

Tested by

no test coverage detected