- Update app.py to include video IDs - Add video section to index.html - Add CSS for vertical video aspect ratio - Add basic integration test Co-authored-by: abustosp <63634574+abustosp@users.noreply.github.com>
19 lines
510 B
Python
19 lines
510 B
Python
|
|
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
|