Add video gallery section with YouTube Shorts
- 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>
This commit is contained in:
18
test_app.py
Normal file
18
test_app.py
Normal file
@@ -0,0 +1,18 @@
|
||||
|
||||
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
|
||||
Reference in New Issue
Block a user