Spaces:
Running
Running
File size: 423 Bytes
366c43e | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 | 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"
|