MCPcopy
hub / github.com/apache/caldera / test_ability

Function test_ability

tests/conftest.py:517–526  ·  view source on GitHub ↗
(test_executor, event_loop)

Source from the content-addressed store, hash-verified

515
516@pytest.fixture
517def test_ability(test_executor, event_loop):
518 ability = AbilitySchema().load(dict(ability_id='123',
519 tactic='discovery',
520 technique_id='auto-generated',
521 technique_name='auto-generated',
522 name='Manual Command',
523 description='test ability',
524 executors=[ExecutorSchema().dump(test_executor)]))
525 event_loop.run_until_complete(BaseService.get_service('data_svc').store(ability))
526 return ability
527
528
529@pytest.fixture

Callers

nothing calls this directly

Calls 5

AbilitySchemaClass · 0.90
ExecutorSchemaClass · 0.90
get_serviceMethod · 0.80
loadMethod · 0.45
storeMethod · 0.45

Tested by

no test coverage detected