10 lines
350 B
Python
10 lines
350 B
Python
from pathlib import Path
|
|
|
|
|
|
def test_ingest_marks_created_assets_ready_with_size_metadata():
|
|
source = Path("apps/worker/worker_app/tasks/ingest.py").read_text(encoding="utf-8")
|
|
|
|
assert "status=AssetStatus.READY" in source
|
|
assert 'file_size=int(metadata["size_bytes"])' in source
|
|
assert 'duration=float(metadata["duration"])' in source
|