Skip to content

Commit 3c150d3

Browse files
committed
Update test for POST req for goal with tasks to clarify intent of the route
1 parent 4bc7b8d commit 3c150d3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/test_wave_06.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@ def test_post_task_ids_to_goal(client, one_goal, three_tasks):
2323
assert len(Goal.query.get(1).tasks) == 3
2424

2525

26-
@pytest.mark.skip(reason="No way to test this feature yet")
26+
# @pytest.mark.skip(reason="No way to test this feature yet")
2727
def test_post_task_ids_to_goal_already_with_goals(client, one_task_belongs_to_one_goal, three_tasks):
2828
# Act
2929
response = client.post("/goals/1/tasks", json={
30-
"task_ids": [1, 4]
30+
"task_ids": [2, 4]
3131
})
3232
response_body = response.get_json()
3333

@@ -37,7 +37,7 @@ def test_post_task_ids_to_goal_already_with_goals(client, one_task_belongs_to_on
3737
assert "task_ids" in response_body
3838
assert response_body == {
3939
"id": 1,
40-
"task_ids": [1, 4]
40+
"task_ids": [2, 4]
4141
}
4242
assert len(Goal.query.get(1).tasks) == 2
4343

0 commit comments

Comments
 (0)