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
refactor: use parametrized tests to reduce test duplication
Replace 13 individual test functions with 3 parametrized test functions
that cover all four list methods (list_tools, list_resources, list_prompts,
list_resource_templates).
Changes:
- Created full_featured_server fixture with tools, resources, prompts, and templates
- test_list_methods_cursor_parameter: parametrized version of 4 cursor tests
- test_list_methods_params_parameter: parametrized version of 4 params tests
- test_list_methods_params_takes_precedence_over_cursor: parametrized precedence tests
- Kept test_list_tools_with_strict_server_validation separate (different scenario)
Result: Reduced from 600+ lines to ~240 lines while maintaining identical coverage
(13 test cases, all passing).
0 commit comments