Commit 420ce20
committed
fix: CoPilot review round-3 pass on PR #45
- harness/prompt_management.py: fix misleading comment on
FixtureExpectedRaises.carries (secondary_backend_call_count is
a sibling field on FixtureExpectedPerCall, not inside carries).
- manager.py: replace 'assert causes' with an explicit
'if not causes: raise RuntimeError(...)' guard so the
invariant holds under 'python -O' (asserts stripped) and
surfaces as a clear RuntimeError rather than an opaque
IndexError if a future change ever silently swallows an
exception in the fallback loop.
- test_prompts.py: rewrite the active-prompt-in-nested-async-function
test to spawn via asyncio.create_task so it actually exercises
context-copy across the task boundary, matching the function
name's implied claim. The previous form's await ran in the same
context where ContextVar propagation is trivially expected.1 parent bcf63a2 commit 420ce20
3 files changed
Lines changed: 21 additions & 6 deletions
File tree
- src/openarmature/prompts
- tests
- conformance/harness
- unit
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
84 | | - | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
85 | 97 | | |
86 | 98 | | |
87 | 99 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
79 | 81 | | |
80 | 82 | | |
81 | 83 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
354 | 354 | | |
355 | 355 | | |
356 | 356 | | |
357 | | - | |
| 357 | + | |
| 358 | + | |
358 | 359 | | |
359 | 360 | | |
360 | 361 | | |
| |||
0 commit comments