cv-buddy-backend / tests /unit /test_progress.py
Momal's picture
Deploy cv-buddy backend
366c43e
raw
history blame contribute delete
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"