unraid-mcp/tests/property
Jacob Magar 8573a0f6c7 fix: patch make_graphql_request at core.client to prevent tests hitting live server
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.
2026-03-28 01:31:05 -04:00
..
__init__.py fix(subscriptions): use x-api-key connectionParams format for WebSocket auth 2026-03-15 22:56:58 -04:00
test_input_validation.py fix: patch make_graphql_request at core.client to prevent tests hitting live server 2026-03-28 01:31:05 -04:00