Skip to content

Commit d907c52

Browse files
committed
update tests for list
1 parent 01c9462 commit d907c52

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

tests/test_api/test_model_wo_id.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
Check cases when model is w/o `id` field
55
"""
66

7-
from typing import Any
8-
97
from fastapi import FastAPI
108
from httpx import AsyncClient
119
from starlette import status
@@ -45,10 +43,6 @@ async def test_get_age_rating_list(
4543
"jsonapi": {"version": "1.0"},
4644
}
4745
assert response_data == expected_data
48-
# checks that all the ids are the names
49-
entities: list[dict[str, Any]] = response_data["data"]
50-
for entity in entities:
51-
assert entity["id"] == entity["attributes"]["name"]
5246

5347

5448
async def test_create_with_related_age_rating(

0 commit comments

Comments
 (0)