We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 689d3c3 commit 4240fbfCopy full SHA for 4240fbf
tests/test_server_default_views.py
@@ -22,7 +22,8 @@ def task_func():
22
23
with thing_client as c:
24
response = c.get("/tasks").json
25
- assert response[0].get("id") == str(task_obj.id)
+ ids = [task.get("id") for task in response]
26
+ assert str(task_obj.id) in ids
27
28
29
def test_task_representation(thing_client):
0 commit comments