Commit d6798b6
committed
Add comprehensive tests for Phase 3 features and fix risk assessment
Tests:
- 13 new tests for executive summary, risk assessment, action items
- All 36 reporting tests passing (23 existing + 13 new)
Fix:
- Adjusted risk assessment sensitivity
- Moved 'anomaly' keyword from CRITICAL to MEDIUM severity
- More granular keyword classification (critical/high/medium)
Test coverage:
- Executive summary with top insights and priority actions
- Risk level assessment for all severity levels
- Action item extraction from insights and recommendations
- Metadata includes risk_level and action_items1 parent 1c3d94d commit d6798b6
2 files changed
Lines changed: 389 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
508 | 508 | | |
509 | 509 | | |
510 | 510 | | |
511 | | - | |
512 | | - | |
513 | | - | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
514 | 515 | | |
515 | 516 | | |
516 | 517 | | |
| 518 | + | |
517 | 519 | | |
518 | 520 | | |
519 | 521 | | |
520 | 522 | | |
| 523 | + | |
521 | 524 | | |
522 | 525 | | |
523 | 526 | | |
524 | 527 | | |
| 528 | + | |
| 529 | + | |
525 | 530 | | |
526 | 531 | | |
527 | 532 | | |
528 | 533 | | |
529 | 534 | | |
530 | 535 | | |
531 | | - | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
532 | 539 | | |
533 | 540 | | |
534 | 541 | | |
| |||
0 commit comments