forked from HomeLab/unraid-mcp
Add comprehensive test coverage beyond unit tests: - Schema validation (93 tests): Validate all GraphQL queries/mutations against extracted Unraid API schema - HTTP layer (88 tests): Test request construction, timeouts, and error handling at httpx level - Subscriptions (55 tests): WebSocket lifecycle, reconnection, and protocol validation - Safety audit (39 tests): Enforce destructive action confirmation requirements Total test count increased from 210 to 485 (130% increase), all passing in 5.91s. New dependencies: - graphql-core>=3.2.0 for schema validation - respx>=0.22.0 for HTTP layer mocking Files created: - docs/unraid-schema.graphql (150-type GraphQL schema) - tests/schema/test_query_validation.py - tests/http_layer/test_request_construction.py - tests/integration/test_subscriptions.py - tests/safety/test_destructive_guards.py Co-authored-by: Claude <claude@anthropic.com>
48 KiB
48 KiB