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

Function adversary

tests/conftest.py:157–169  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

155
156@pytest.fixture
157def adversary():
158 def _generate_adversary(adversary_id=None, name=None, description=None, phases=None):
159 if not adversary_id:
160 adversary_id = uuid.uuid4()
161 if not name:
162 name = ''.join(random.choice(string.ascii_uppercase) for _ in range(10))
163 if not description:
164 description = "description"
165 if not phases:
166 phases = dict()
167 return Adversary(adversary_id=adversary_id, name=name, description=description, atomic_ordering=phases)
168
169 return _generate_adversary
170
171
172@pytest.fixture

Callers 6

demo_operationFunction · 0.85
test_update_booleanMethod · 0.85
operation_adversaryFunction · 0.85
setup_contact_serviceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected