Skip to content

Commit a98c4f7

Browse files
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).
1 parent b779c12 commit a98c4f7

File tree

1 file changed

+108
-457
lines changed

1 file changed

+108
-457
lines changed

0 commit comments

Comments
 (0)