From 7a84577613e23dbb80f23f67500757e09977ae0a Mon Sep 17 00:00:00 2001 From: collerek Date: Mon, 31 May 2021 19:09:29 +0200 Subject: [PATCH] remove manual ids from get_pydantic tests --- tests/test_fastapi/test_excludes_with_get_pydantic.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/test_fastapi/test_excludes_with_get_pydantic.py b/tests/test_fastapi/test_excludes_with_get_pydantic.py index c2ef2e4..d9e9de4 100644 --- a/tests/test_fastapi/test_excludes_with_get_pydantic.py +++ b/tests/test_fastapi/test_excludes_with_get_pydantic.py @@ -80,9 +80,9 @@ def test_read_main(): assert cat.id == 1 assert cat.items == [] - test_selfref = dict(id=1, name="test") - test_selfref2 = dict(id=2, name="test2", parent={"id": 1}) - test_selfref3 = dict(id=3, name="test3", children=[{"id": 4, "name": "aaa"}]) + test_selfref = dict(name="test") + test_selfref2 = dict(name="test2", parent={"id": 1}) + test_selfref3 = dict(name="test3", children=[{"name": "aaa"}]) response = client.post("/selfrefs/", json=test_selfref) assert response.status_code == 200