mirror of
https://github.com/coder/coder.git
synced 2026-10-16 06:37:58 +08:00
test(coderd/x/chatd): drop a mock fetch case the turn tests already cover
This commit is contained in:
@@ -2089,18 +2089,12 @@ func TestFetchPersonalSkillMetadata(t *testing.T) {
|
||||
Description: "Personal review process",
|
||||
Enabled: true,
|
||||
ModelInvocable: true,
|
||||
}, {
|
||||
UserID: uuid.NullUUID{UUID: userID, Valid: true},
|
||||
Name: "personal-manual",
|
||||
Description: "Only users invoke this",
|
||||
Enabled: true,
|
||||
}}, nil
|
||||
},
|
||||
)
|
||||
|
||||
got, err := server.fetchPersonalSkillMetadata(context.Background(), userID)
|
||||
require.NoError(t, err)
|
||||
// Skills that are not model-invocable stay out of the agent's index.
|
||||
require.Equal(t, []skillspkg.Skill{{
|
||||
Name: "personal-review",
|
||||
Description: "Personal review process",
|
||||
|
||||
Reference in New Issue
Block a user