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

Method test_crud

st2common/tests/unit/test_db_policy.py:187–200  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

185 return instance
186
187 def test_crud(self):
188 instance = self._create_instance()
189
190 defaults = {
191 "pack": pack_constants.DEFAULT_PACK_NAME,
192 "ref": "%s.local.concurrency" % pack_constants.DEFAULT_PACK_NAME,
193 "enabled": True,
194 }
195
196 updates = {
197 "description": 'Limits the concurrent executions for the action "core.local".'
198 }
199
200 self._assert_crud(instance, defaults=defaults, updates=updates)
201
202 def test_ref(self):
203 instance = self._create_instance()

Callers

nothing calls this directly

Calls 2

_create_instanceMethod · 0.95
_assert_crudMethod · 0.80

Tested by

no test coverage detected