Files
xiaoxia-saas/tests/unit/test_worker_ingest_status.py
T
Xiaoxia AI e1b9ddaa1e
Deploy / Build Production Runtime Images (push) Has been skipped
Deploy / Deploy Production (push) Has been skipped
Deploy / Production Browser E2E (push) Has been skipped
CI/CD Pipeline / Validate Code Quality And Tests (push) Failing after 14s
Deploy / Deploy Staging (push) Successful in 1s
style: format Python files for CI
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