MCPcopy Index your code
hub / github.com/apache/caldera / _generate_ability

Function _generate_ability

tests/conftest.py:182–185  ·  view source on GitHub ↗
(ability_id=None, *args, **kwargs)

Source from the content-addressed store, hash-verified

180@pytest.fixture
181def ability():
182 def _generate_ability(ability_id=None, *args, **kwargs):
183 if not ability_id:
184 ability_id = random.randint(0, 999999)
185 return Ability(*args, ability_id=ability_id, **kwargs)
186
187 return _generate_ability
188

Callers

nothing calls this directly

Calls 1

AbilityClass · 0.90

Tested by

no test coverage detected