Commit b096cf8
test: add end-to-end integration tests for cognitive pipeline (NLU→KR→Inference→NLG)
Add 14 integration tests in tests/integration/test_cognitive_pipeline.py
covering:
- Single-query round-trip (NLU → KR write/read → NLG)
- Knowledge persistence within session (add/retract/query patterns)
- Context switching (discourse manager across multiple utterances)
- Inference chain (Socrates syllogism, two-hop reasoning via resolution)
- Full pipeline round-trip (NLU → KR → Inference → NLG)
All tests mock spaCy at the LexicalAnalyzerParser level so they run in CI
without optional native packages. Add `standalone` marker to opt out of
the `requires_backend` auto-skip for in-process tests.
Co-authored-by: Steake <530040+Steake@users.noreply.github.com>1 parent 9bcc711 commit b096cf8
File tree
4 files changed
+663
-1
lines changed- tests
- integration
4 files changed
+663
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| 36 | + | |
36 | 37 | | |
37 | 38 | | |
38 | 39 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
87 | 90 | | |
88 | 91 | | |
89 | 92 | | |
| |||
136 | 139 | | |
137 | 140 | | |
138 | 141 | | |
139 | | - | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
140 | 145 | | |
141 | 146 | | |
142 | 147 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
0 commit comments