Commit 56d237a
committed
test: cover get_prompt context=None fallback; revert no branch pragma
- pragma: no branch only exempts branch coverage, not line coverage.
The return on line 97 is never executed, so no cover is correct.
- get_prompt fallback at server.py:1089 was never hit since all tests
use Client (E2E). Added a direct-call test.1 parent 95d5b32 commit 56d237a
File tree
2 files changed
+14
-1
lines changed- src/mcp/server/mcpserver
- tests/server/mcpserver
2 files changed
+14
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
96 | | - | |
| 96 | + | |
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1231 | 1231 | | |
1232 | 1232 | | |
1233 | 1233 | | |
| 1234 | + | |
| 1235 | + | |
| 1236 | + | |
| 1237 | + | |
| 1238 | + | |
| 1239 | + | |
| 1240 | + | |
| 1241 | + | |
| 1242 | + | |
| 1243 | + | |
| 1244 | + | |
| 1245 | + | |
| 1246 | + | |
1234 | 1247 | | |
1235 | 1248 | | |
1236 | 1249 | | |
| |||
0 commit comments