Files
xiaoxia-saas/tests/unit/test_worker_ingest_status.py
T
2026-06-24 19:54:36 +08:00

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