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

Function test_adversary

tests/conftest.py:440–449  ·  view source on GitHub ↗
(event_loop)

Source from the content-addressed store, hash-verified

438
439@pytest.fixture
440def test_adversary(event_loop):
441 expected_adversary = {'name': 'ad-hoc',
442 'description': 'an empty adversary profile',
443 'adversary_id': 'ad-hoc',
444 'objective': '495a9828-cab1-44dd-a0ca-66e58177d8cc',
445 'tags': [],
446 'has_repeatable_abilities': False}
447 test_adversary = AdversarySchema().load(expected_adversary)
448 event_loop.run_until_complete(BaseService.get_service('data_svc').store(test_adversary))
449 return test_adversary
450
451
452@pytest.fixture

Callers

nothing calls this directly

Calls 4

AdversarySchemaClass · 0.90
get_serviceMethod · 0.80
loadMethod · 0.45
storeMethod · 0.45

Tested by

no test coverage detected