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():