GeezerVison is showing github.com — test(coderd/x/chatd/chattool): give the new read_skill_file subtests … · coder/coder@bf11ba9
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: coderd/x/chatd/chattool/skill_test.go +3-1Lines changed: 3 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -948,7 +948,8 @@ func TestReadSkillFileTool(t *testing.T) { |
948 | 948 | GetWorkspaceConn: func(context.Context) (workspacesdk.AgentConn, error) { |
949 | 949 | return conn, nil |
950 | 950 | }, |
951 | | - GetSkills: func() []chattool.SkillMeta { return skills }, |
| 951 | + GetSkills: func() []chattool.SkillMeta { return skills }, |
| 952 | + ResolveAlias: lookupSkills(skillSource(skillspkg.SourceWorkspace, "my-skill")), |
952 | 953 | }) |
953 | 954 |
|
954 | 955 | resp, err := tool.Run(context.Background(), fantasy.ToolCall{ |
@@ -989,6 +990,7 @@ func TestReadSkillFileTool(t *testing.T) { |
989 | 990 | tool := chattool.ReadSkillFile(chattool.ReadSkillOptions{ |
990 | 991 | GetWorkspaceConn: func(context.Context) (workspacesdk.AgentConn, error) { return conn, nil }, |
991 | 992 | GetSkills: func() []chattool.SkillMeta { return skills }, |
| 993 | + ResolveAlias: lookupSkills(skillSource(skillspkg.SourceWorkspace, "my-skill")), |
992 | 994 | }) |
993 | 995 |
|
994 | 996 | resp, err := tool.Run(context.Background(), fantasy.ToolCall{ |
|