MCPcopy Create free account
hub / github.com/StackStorm/st2 / setUp

Method setUp

st2common/tests/unit/test_db.py:102–105  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

100
101class DbConnectionTestCase(DbTestCase):
102 def setUp(self):
103 # NOTE: It's important we re-establish a connection on each setUp
104 self.setUpClass()
105 cfg.CONF.reset()
106
107 def tearDown(self):
108 # NOTE: It's important we disconnect here otherwise tests will fail

Callers

nothing calls this directly

Calls 2

resetMethod · 0.80
setUpClassMethod · 0.45

Tested by

no test coverage detected