Skip to content

Commit 830a940

Browse files
authored
Merge pull request #77 from AdaGold/ay_update_wave6_test
Update test for POST req for goal with tasks to clarify intent of the route.
2 parents a3585de + 7e0a380 commit 830a940

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_wave_06.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def test_post_task_ids_to_goal(client, one_goal, three_tasks):
2929
def test_post_task_ids_to_goal_already_with_goals(client, one_task_belongs_to_one_goal, three_tasks):
3030
# Act
3131
response = client.post("/goals/1/tasks", json={
32-
"task_ids": [1, 4]
32+
"task_ids": [2, 4]
3333
})
3434
response_body = response.get_json()
3535

@@ -39,7 +39,7 @@ def test_post_task_ids_to_goal_already_with_goals(client, one_task_belongs_to_on
3939
assert "task_ids" in response_body
4040
assert response_body == {
4141
"id": 1,
42-
"task_ids": [1, 4]
42+
"task_ids": [2, 4]
4343
}
4444
query = db.select(Goal).where(Goal.id == 1)
4545
assert len(db.session.scalar(query).tasks) == 2

0 commit comments

Comments
 (0)