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

Function updated_objective_payload

tests/api/v2/handlers/test_objectives_api.py:28–34  ·  view source on GitHub ↗
(test_objective, test_goal)

Source from the content-addressed store, hash-verified

26
27@pytest.fixture
28def updated_objective_payload(test_objective, test_goal):
29 objective_data = test_objective.schema.dump(test_objective)
30 updated_goal = Goal(target='updated target', value='complete')
31 objective_data.update(dict(name='an updated test objective',
32 description='a test objective that has been updated',
33 goals=[updated_goal.schema.dump(updated_goal)]))
34 return objective_data
35
36
37@pytest.fixture

Callers

nothing calls this directly

Calls 2

GoalClass · 0.90
updateMethod · 0.80

Tested by

no test coverage detected