Skip to content

Commit 4240fbf

Browse files
author
Joel Collins
committed
Fixed test_tasks_list
1 parent 689d3c3 commit 4240fbf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/test_server_default_views.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ def task_func():
2222

2323
with thing_client as c:
2424
response = c.get("/tasks").json
25-
assert response[0].get("id") == str(task_obj.id)
25+
ids = [task.get("id") for task in response]
26+
assert str(task_obj.id) in ids
2627

2728

2829
def test_task_representation(thing_client):

0 commit comments

Comments
 (0)