mirror of
https://github.com/jmagar/unraid-mcp
synced 2026-04-21 13:37:53 +00:00
All test _mock_graphql fixtures previously patched unraid_mcp.tools.unraid.make_graphql_request (a local name binding). After a domain split, new module files bind their own local names, making the tool-level patch ineffective — test mutations reached the real Unraid server and stopped the array twice. Fix: switch unraid.py to use module-attribute access (_client.make_graphql_request) via `from ..core import client as _client`. Update all test patch targets to unraid_mcp.core.client.make_graphql_request, which intercepts calls regardless of how many modules import from that namespace. 835 tests passing. Integration test failures are pre-existing and unrelated. |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| test_input_validation.py | ||