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

Function test_operation

tests/conftest.py:487–501  ·  view source on GitHub ↗
(test_adversary, test_planner, test_source)

Source from the content-addressed store, hash-verified

485
486@pytest.fixture
487def test_operation(test_adversary, test_planner, test_source):
488 expected_operation = {'name': '123',
489 'adversary': AdversarySchema().dump(test_adversary),
490 'state': 'paused',
491 'id': '123',
492 'group': 'red',
493 'autonomous': 0,
494 'planner': PlannerSchema().dump(test_planner),
495 'source': SourceSchema().dump(test_source),
496 'jitter': '2/8',
497 'visibility': 50,
498 'auto_close': False,
499 'obfuscator': 'plain-text',
500 'use_learning_parsers': False}
501 return expected_operation
502
503
504@pytest.fixture

Callers

nothing calls this directly

Calls 3

AdversarySchemaClass · 0.90
PlannerSchemaClass · 0.90
SourceSchemaClass · 0.90

Tested by

no test coverage detected