30 lines
795 B
Python
30 lines
795 B
Python
"""Phase 2 tests: Video upload endpoint.
|
|
|
|
Covers:
|
|
- POST /api/v1/upload-video with size validation (<300MB)
|
|
- Format validation (MP4 and common formats)
|
|
- Static file serving
|
|
- Error handling for oversized/invalid files
|
|
"""
|
|
import pytest
|
|
|
|
|
|
class TestVideoUpload:
|
|
"""Video upload endpoint tests."""
|
|
|
|
def test_upload_mp4_success(self):
|
|
"""Should accept valid MP4 under 300MB."""
|
|
pass # TODO: implement
|
|
|
|
def test_upload_size_limit(self):
|
|
"""Should reject files over 300MB."""
|
|
pass # TODO: implement
|
|
|
|
def test_upload_invalid_format(self):
|
|
"""Should reject non-video formats."""
|
|
pass # TODO: implement
|
|
|
|
def test_static_file_serving(self):
|
|
"""Should serve uploaded video via static URL."""
|
|
pass # TODO: implement
|