You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
test: expand test coverage — only utils tested, server and client have zero tests #72
Test coverage is minimal. Only utils.py has tests. The two most critical modules — server.py (all tool functions) and client.py (API communication) — have zero test coverage.
Current test coverage
tests/
├── conftest.py # 3 fixtures
└── test_utils.py # 6 tests for utils.py only
Untested modules
Module
Lines
Tests
Risk
server.py
800+
0
HIGH — all user-facing tools
client.py
80
0
HIGH — API auth, error handling
const.py
30
0
LOW — just constants
exceptions.py
20
0
LOW — just class definitions
__main__.py
80
0
MEDIUM — config generation
Proposed solution
Priority 1: client.py tests
# tests/test_client.pydeftest_client_auth_header():
"""Verify Authorization header is set correctly."""deftest_client_handles_api_error_codes():
"""Verify status_code != 0 raises appropriate exceptions."""deftest_client_handles_auth_error_1004():
"""Verify 1004 raises MinimaxAuthError."""deftest_client_handles_network_error():
"""Verify RequestException is wrapped in MinimaxRequestError."""
Activity
test: add comprehensive tests for MinimaxAPIClient (0% -> 100% coverage)