Spaces:
Sleeping
Sleeping
Download tests/unit/test_progress.py from Momal/cv-buddy-backend: direct link, hf CLI and curl.
- Browser
- Download file 423 Bytes
-
https://huggingface.co/spaces/Momal/cv-buddy-backend/resolve/main/tests/unit/test_progress.py
- Command line
-
hf download hf://spaces/Momal/cv-buddy-backend/tests/unit/test_progress.py
-
curl -L -o test_progress.py https://huggingface.co/spaces/Momal/cv-buddy-backend/resolve/main/tests/unit/test_progress.py
423 Bytes
| import pytest | |
| from app.services.progress import ProgressStep, STEP_PROGRESS | |
| def test_progress_steps_have_percentages(): | |
| assert STEP_PROGRESS[ProgressStep.PARSING_RESUME] == 15 | |
| assert STEP_PROGRESS[ProgressStep.COMPLETE] == 100 | |
| def test_progress_steps_are_sequential(): | |
| steps = list(STEP_PROGRESS.values()) | |
| for i in range(1, len(steps)): | |
| assert steps[i] >= steps[i-1], "Progress should increase" | |