From 4d947c5826c5bf7955bd03295bb1a704df89bf34 Mon Sep 17 00:00:00 2001 From: Jakub Miazek Date: Mon, 24 Jul 2023 15:13:18 +0200 Subject: [PATCH] fix tests --- tests/api/test_stuff.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/api/test_stuff.py b/tests/api/test_stuff.py index 1743fba..02f3eed 100644 --- a/tests/api/test_stuff.py +++ b/tests/api/test_stuff.py @@ -26,7 +26,7 @@ async def test_add_stuff(client: AsyncClient, payload: dict, status_code: int): "payload, status_code", ( ( - {"name": "motorhead", "description": "we play rock and roll"}, + {"name": "motorhead-0", "description": "we play rock and roll"}, status.HTTP_200_OK, ), ), @@ -44,13 +44,14 @@ async def test_get_stuff(client: AsyncClient, payload: dict, status_code: int): "payload, status_code", ( ( - {"name": "motorhead", "description": "we play rock and roll"}, + {"name": "motorhead-1", "description": "we play rock and roll"}, status.HTTP_200_OK, ), ), ) async def test_delete_stuff(client: AsyncClient, payload: dict, status_code: int): response = await client.post("/stuff", json=payload) + print(response.json()) name = response.json()["name"] response = await client.delete(f"/stuff/{name}") assert response.status_code == status_code