@@ -3,12 +3,11 @@ package ghmcp
33import (
44 "testing"
55
6- "github.com/github/github-mcp-server/pkg/github"
76 "github.com/stretchr/testify/assert"
87 "github.com/stretchr/testify/require"
98)
109
11- func TestTransformSpecialToolsets (t * testing.T ) {
10+ func TestCleanToolsets (t * testing.T ) {
1211 tests := []struct {
1312 name string
1413 input []string
@@ -243,26 +242,3 @@ func TestTransformSpecialToolsets(t *testing.T) {
243242 })
244243 }
245244}
246-
247- func TestTransformSpecialToolsetsWithActualDefaults (t * testing.T ) {
248- // This test verifies that the function uses the actual default toolsets from GetDefaultToolsetIDs()
249- input := []string {"default" }
250- result := cleanToolsets (input , false )
251-
252- defaultToolsets := github .GetDefaultToolsetIDs ()
253-
254- // Check that result contains all default toolsets
255- require .Len (t , result , len (defaultToolsets ), "result should contain all default toolsets" )
256-
257- resultMap := make (map [string ]bool )
258- for _ , toolset := range result {
259- resultMap [toolset ] = true
260- }
261-
262- for _ , defaultToolset := range defaultToolsets {
263- assert .True (t , resultMap [defaultToolset ], "result should contain default toolset: %s" , defaultToolset )
264- }
265-
266- // Verify "default" is not in the result
267- assert .False (t , resultMap ["default" ], "result should not contain 'default'" )
268- }
0 commit comments