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

Function test_objective

tests/api/v2/handlers/test_objectives_api.py:53–56  ·  view source on GitHub ↗
(event_loop, test_goal)

Source from the content-addressed store, hash-verified

51
52@pytest.fixture
53def test_objective(event_loop, test_goal):
54 objective = Objective(id='123', name='test objective', description='a test objective', goals=[test_goal])
55 event_loop.run_until_complete(BaseService.get_service('data_svc').store(objective))
56 return objective
57
58
59@pytest.fixture

Callers

nothing calls this directly

Calls 3

ObjectiveClass · 0.90
get_serviceMethod · 0.80
storeMethod · 0.45

Tested by

no test coverage detected