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

Function setup_empty_operation

tests/conftest.py:604–609  ·  view source on GitHub ↗
(event_loop, test_operation)

Source from the content-addressed store, hash-verified

602
603@pytest.fixture
604def setup_empty_operation(event_loop, test_operation):
605 test_operation = OperationSchema().load(test_operation)
606 test_operation.set_start_details()
607 test_objective = Objective(id='123', name='test objective', description='test', goals=[])
608 test_operation.objective = test_objective
609 event_loop.run_until_complete(BaseService.get_service('data_svc').store(test_operation))
610
611
612@pytest.fixture()

Callers

nothing calls this directly

Calls 6

OperationSchemaClass · 0.90
ObjectiveClass · 0.90
set_start_detailsMethod · 0.80
get_serviceMethod · 0.80
loadMethod · 0.45
storeMethod · 0.45

Tested by

no test coverage detected