From 4d85658a64a76569d1c43f15c54f272adb2bf2e5 Mon Sep 17 00:00:00 2001 From: Blulupo Date: Sat, 4 Jan 2025 17:30:10 +0100 Subject: [PATCH] update WorkFlow --- tests/test_app.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/test_app.py b/tests/test_app.py index fdef7d8..33904d7 100644 --- a/tests/test_app.py +++ b/tests/test_app.py @@ -11,12 +11,13 @@ BASE_URL = "http://127.0.0.1:5000" @pytest.mark.asyncio async def test_home_route(): """ - Testa la route principale del Blueprint `route_home`. + Testa la rotta principale del Blueprint `route_home` che rende il template `index.html`. """ async with httpx.AsyncClient(base_url=BASE_URL) as client: response = await client.get("/") assert response.status_code == 200 - assert "Welcome" in response.text + # Verifica che il contenuto restituito contenga il testo che ci aspettiamo dal template + assert "Hersel Giannella - PortFolio" in response.text @pytest.mark.asyncio async def test_404_route():