small-hackathon-trainer / tests /fixtures /parser_acceptance.py
Lucas
Build training coach MVP
f1b0176
Raw
History Blame Contribute Delete
3.51 kB
PARSER_ACCEPTANCE_FIXTURES = [
{
"name": "short_time_poor_sleep_low_energy",
"raw_text": "I only have 45 minutes today, slept terribly, and energy is low.",
"expected": {
"check_in": {
"raw_text": "I only have 45 minutes today, slept terribly, and energy is low.",
"time_available_minutes": 45,
"energy_level": "low",
"sleep_quality": "poor",
"sleep_hours": None,
"pain_or_injury": "unsure",
},
"missing_fields": ["sleep_hours"],
"follow_up_questions": ["How many hours did you sleep?"],
},
},
{
"name": "high_energy_long_session",
"raw_text": "I have 90 minutes and feel ready. Slept well, no pain.",
"expected": {
"check_in": {
"raw_text": "I have 90 minutes and feel ready. Slept well, no pain.",
"time_available_minutes": 90,
"energy_level": "high",
"sleep_quality": "good",
"pain_or_injury": "no",
"mood_stress": "ready",
},
},
},
{
"name": "specific_pain_issue",
"raw_text": "My right tricep hurts today, probably moderate. I have about an hour.",
"expected": {
"check_in": {
"raw_text": (
"My right tricep hurts today, probably moderate. "
"I have about an hour."
),
"time_available_minutes": 60,
"pain_or_injury": "yes",
"pain_issues": [
{
"affected_muscle": "triceps_brachii",
"severity": "moderate",
"notes": "Right tricep hurts today.",
}
],
},
},
},
{
"name": "ambiguous_pain_issue",
"raw_text": "My arm feels weird, not sure if it is soreness or pain.",
"expected": {
"check_in": {
"raw_text": "My arm feels weird, not sure if it is soreness or pain.",
"pain_or_injury": "unsure",
"pain_issues": [
{
"affected_muscle": None,
"severity": "unsure",
"notes": "Arm feels weird; exact muscle and pain status unclear.",
}
],
},
"follow_up_questions": [
"Where exactly do you feel it, and is it pain or normal soreness?"
],
},
},
{
"name": "recent_10k_context_signal",
"raw_text": "Yesterday I ran a 10k. Today I have 60 minutes.",
"expected": {
"check_in": {
"raw_text": "Yesterday I ran a 10k. Today I have 60 minutes.",
"time_available_minutes": 60,
"pain_or_injury": "unsure",
},
"context_signals": [
{
"label": "recent_endurance_run",
"evidence": "Yesterday I ran a 10k.",
"follow_up_question": (
"How are your legs and energy after yesterday's run?"
),
}
],
"follow_up_questions": [
"How are your legs and energy after yesterday's run?"
],
},
},
]