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

Function replaced_objective_payload

tests/api/v2/handlers/test_objectives_api.py:38–44  ·  view source on GitHub ↗
(test_objective)

Source from the content-addressed store, hash-verified

36
37@pytest.fixture
38def replaced_objective_payload(test_objective):
39 objective_data = test_objective.schema.dump(test_objective)
40 test_goal = Goal(target='replaced target', value='in_progress')
41 objective_data.update(dict(name='replaced test objective',
42 description='a test objective that has been replaced',
43 goals=[test_goal.schema.dump(test_goal)]))
44 return objective_data
45
46
47@pytest.fixture

Callers

nothing calls this directly

Calls 2

GoalClass · 0.90
updateMethod · 0.80

Tested by

no test coverage detected