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

Method setUpClass

st2common/tests/unit/test_reference.py:43–47  ·  view source on GitHub ↗
(cls)

Source from the content-addressed store, hash-verified

41 @classmethod
42 @mock.patch.object(PoolPublisher, "publish", mock.MagicMock())
43 def setUpClass(cls):
44 super(ReferenceTest, cls).setUpClass()
45 trigger = TriggerDB(pack="dummy_pack_1", name="trigger-1")
46 cls.__model = Trigger.add_or_update(trigger)
47 cls.__ref = {"id": str(cls.__model.id), "name": cls.__model.name}
48
49 @classmethod
50 @mock.patch.object(PoolPublisher, "publish", mock.MagicMock())

Callers

nothing calls this directly

Calls 2

TriggerDBClass · 0.90
add_or_updateMethod · 0.45

Tested by

no test coverage detected