Commit 71040ed
authored
fix: add missing logger.warning mock and correct executeSql test assertions (#44)
Fixed 16 test failures caused by two issues:
1. Missing logger.warning() method in test mock - production code uses logger.warning()
but test setup only mocked logger.warn()
2. Incorrect test assertions in executeSql registration test - test expected 'dangerous'
property but code uses 'destructiveHint', and 'requiresAuth' is in _meta not annotations
All 290 tests now passing.
Signed-off-by: Devansh-Kumar <[email protected]>1 parent 424082f commit 71040ed
File tree
2 files changed
+4
-1
lines changed- server/tests
- mcp-server/tools/executeSql
2 files changed
+4
-1
lines changedLines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
| 107 | + | |
107 | 108 | | |
108 | | - | |
| 109 | + | |
| 110 | + | |
109 | 111 | | |
110 | 112 | | |
111 | 113 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
| |||
0 commit comments