Files
xiaoxia-saas/tests/unit/test_worker_ingest_status.py
T
2026-06-23 13:12:17 +08:00

10 lines
354 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