Spaces:
Running
Running
| 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" | |