import pytest from app import app @pytest.fixture def client(): app.config['TESTING'] = True with app.test_client() as client: yield client def test_home_page(client): """Test that the home page loads successfully.""" response = client.get('/') assert response.status_code == 200 assert b"Vive la naturaleza" in response.data # Check for presence of video IDs (checking the first two) assert b"656GdIPFvjE" in response.data assert b"5OpuBwlszB0" in response.data