From 011267ca51fdfcad7e809600cf72057c09f67821 Mon Sep 17 00:00:00 2001 From: Artur Shiriev Date: Sat, 9 Nov 2024 12:43:13 +0300 Subject: [PATCH] fix test --- tests/test_cards.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_cards.py b/tests/test_cards.py index 5800743..c40ba68 100644 --- a/tests/test_cards.py +++ b/tests/test_cards.py @@ -13,7 +13,7 @@ async def test_get_cards_empty(client: AsyncClient, db_session: AsyncSession) -> assert response.status_code == status.HTTP_200_OK assert len(response.json()["items"]) == 0 - response = await client.get(f"/api/decks/{deck.id}/cards/0/") + response = await client.get("/api/cards/0/") assert response.status_code == status.HTTP_404_NOT_FOUND