File tree Expand file tree Collapse file tree 1 file changed +8
-14
lines changed
Expand file tree Collapse file tree 1 file changed +8
-14
lines changed Original file line number Diff line number Diff 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 )
You can’t perform that action at this time.
0 commit comments