Spaces:
Sleeping
Sleeping
File size: 702 Bytes
a9cbee1 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | from planner import generate_plan
from env.models import Difficulty
def test_generate_plan_from_transcript_returns_assignments():
transcript = (
"We need to fix the checkout bug today because it blocks the release. "
"Also build the analytics dashboard by day 5 after auth is done. "
"Please write regression tests for billing this week."
)
result = generate_plan(
difficulty=Difficulty.MEDIUM,
transcript=transcript,
strategy="heuristic",
)
assert result.transcript
assert len(result.extracted_items) >= 2
assert len(result.jira_tickets) >= 2
assert len(result.assignments) >= 1
assert 0.0 <= result.score <= 1.0
|