Skip to content

Commit 034378d

Browse files
Update Wave 1 tests
1 parent 8236edc commit 034378d

File tree

1 file changed

+8
-14
lines changed

1 file changed

+8
-14
lines changed

tests/test_wave_01.py

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -132,14 +132,11 @@ def test_get_task(client, one_task):
132132

133133
# Assert
134134
assert response.status_code == 200
135-
assert "task" in response_body
136135
assert response_body == {
137-
"task": {
138-
"id": 1,
139-
"title": "Go on my daily walk 🏞",
140-
"description": "Notice something new every day",
141-
"is_complete": False
142-
}
136+
"id": 1,
137+
"title": "Go on my daily walk 🏞",
138+
"description": "Notice something new every day",
139+
"is_complete": False
143140
}
144141

145142

@@ -169,14 +166,11 @@ def test_create_task(client):
169166

170167
# Assert
171168
assert response.status_code == 201
172-
assert "task" in response_body
173169
assert response_body == {
174-
"task": {
175-
"id": 1,
176-
"title": "A Brand New Task",
177-
"description": "Test Description",
178-
"is_complete": False
179-
}
170+
"id": 1,
171+
"title": "A Brand New Task",
172+
"description": "Test Description",
173+
"is_complete": False
180174
}
181175

182176
query = db.select(Task).where(Task.id == 1)

0 commit comments

Comments
 (0)