20 lines
729 B
Python
20 lines
729 B
Python
"""Shared test data. DOC_EXAMPLE_TASKS reproduces the worked example in docs/."""
|
|
from estimator.domain.enums import Role
|
|
from estimator.domain.models import TaskEstimate
|
|
|
|
|
|
def task(title: str, role: Role, o: float, m: float, p: float) -> TaskEstimate:
|
|
return TaskEstimate(title=title, role=role, optimistic=o, likely=m, pessimistic=p)
|
|
|
|
|
|
DOC_EXAMPLE_TASKS = [
|
|
task("analysis", Role.ANALYST, 8, 12, 20),
|
|
task("core", Role.BACKEND, 16, 24, 40),
|
|
task("rag", Role.BACKEND, 20, 32, 56),
|
|
task("amocrm", Role.BACKEND, 8, 16, 32),
|
|
task("max adapter", Role.BACKEND, 8, 12, 20),
|
|
task("vk adapter", Role.BACKEND, 8, 12, 20),
|
|
task("testing", Role.QA, 12, 20, 36),
|
|
task("deploy", Role.DEVOPS, 4, 8, 16),
|
|
]
|