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

Method setUpClass

tests/utils.py:20–24  ·  view source on GitHub ↗
(cls)

Source from the content-addressed store, hash-verified

18
19 @classmethod
20 def setUpClass(cls):
21 disconnect_all()
22 cls._connection = connect(db=MONGO_TEST_DB)
23 cls._connection.drop_database(MONGO_TEST_DB)
24 cls.db = get_db()
25
26 @classmethod
27 def tearDownClass(cls):

Callers

nothing calls this directly

Calls 3

disconnect_allFunction · 0.90
connectFunction · 0.90
get_dbFunction · 0.90

Tested by

no test coverage detected