remove manual ids from get_pydantic tests

This commit is contained in:
collerek
2021-05-31 19:09:29 +02:00
parent 64e4288358
commit 7a84577613

View File

@ -80,9 +80,9 @@ def test_read_main():
assert cat.id == 1 assert cat.id == 1
assert cat.items == [] assert cat.items == []
test_selfref = dict(id=1, name="test") test_selfref = dict(name="test")
test_selfref2 = dict(id=2, name="test2", parent={"id": 1}) test_selfref2 = dict(name="test2", parent={"id": 1})
test_selfref3 = dict(id=3, name="test3", children=[{"id": 4, "name": "aaa"}]) test_selfref3 = dict(name="test3", children=[{"name": "aaa"}])
response = client.post("/selfrefs/", json=test_selfref) response = client.post("/selfrefs/", json=test_selfref)
assert response.status_code == 200 assert response.status_code == 200