(test_objective)
| 36 | |
| 37 | @pytest.fixture |
| 38 | def 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 |