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

Function setup_paused_operation

tests/services/test_app_svc.py:21–24  ·  view source on GitHub ↗
(setup_operations_api_test, test_agent, test_operation)

Source from the content-addressed store, hash-verified

19
20@pytest.fixture
21async def setup_paused_operation(setup_operations_api_test, test_agent, test_operation):
22 operation = (await BaseService.get_service('data_svc').locate('operations', {'id': test_operation['id']}))[0]
23 operation.agents.append(test_agent)
24 operation.state = operation.States.PAUSED.value
25
26
27@pytest.fixture

Callers

nothing calls this directly

Calls 2

get_serviceMethod · 0.80
locateMethod · 0.45

Tested by

no test coverage detected