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

Method _create_instance

st2common/tests/unit/test_db_policy.py:173–185  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

171
172 @staticmethod
173 def _create_instance():
174 instance = PolicyDB(
175 pack=None,
176 name="local.concurrency",
177 description="TBD",
178 enabled=None,
179 ref=None,
180 resource_ref="core.local",
181 policy_type="action.concurrency",
182 parameters={"threshold": 25},
183 )
184
185 return instance
186
187 def test_crud(self):
188 instance = self._create_instance()

Callers 3

test_crudMethod · 0.95
test_refMethod · 0.95
test_unique_keyMethod · 0.95

Calls 1

PolicyDBClass · 0.90

Tested by

no test coverage detected