Repository navigation
Commit 58398b3
committed
fix: update FakeBackend/config test doubles for the new complete() signature
The previous commit added an optional system_prompt kwarg to
LLMBackend.complete() (and a get_prompt_addition() call on the config passed
into generate_parent_module_docs), but two test doubles didn't get updated to
match:
- FakeBackend.complete() in test_processing_order_update.py and
test_updater_orchestrator.py didn't accept system_prompt, so
generate_parent_module_docs's `backend.complete(prompt,
system_prompt=...)` call raised TypeError.
- The SimpleNamespace fake config in test_processing_order_update.py had no
get_prompt_addition(), so the AttributeError below.
CI: 3 failed (AttributeError: 'SimpleNamespace' object has no attribute
'get_prompt_addition'; TypeError: FakeBackend.complete() got an unexpected
keyword argument 'system_prompt').1 parent 98857e4 commit 58398b3
2 files changed
Lines changed: 5 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
81 | | - | |
| 81 | + | |
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
89 | | - | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
90 | 92 | | |
91 | 93 | | |
92 | 94 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
| 32 | + | |
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| |||
0 commit comments