Skip to content

Commit 48fe593

Browse files
Update Wave 5 tests
1 parent 4ab686c commit 48fe593

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

tests/test_wave_05.py

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -99,12 +99,9 @@ def test_get_goal(client, one_goal):
9999

100100
# Assert
101101
assert response.status_code == 200
102-
assert "goal" in response_body
103102
assert response_body == {
104-
"goal": {
105-
"id": 1,
106-
"title": "Build a habit of going outside daily"
107-
}
103+
"id": 1,
104+
"title": "Build a habit of going outside daily"
108105
}
109106

110107

@@ -135,10 +132,8 @@ def test_create_goal(client):
135132
assert response.status_code == 201
136133
assert "goal" in response_body
137134
assert response_body == {
138-
"goal": {
139-
"id": 1,
140-
"title": "My New Goal"
141-
}
135+
"id": 1,
136+
"title": "My New Goal"
142137
}
143138

144139

0 commit comments

Comments
 (0)