]> git.giacomolli.uk - onechat/blobdiff - daemon_children_test.go
Send stored images to WhatsApp chats
[onechat] / daemon_children_test.go
index 16f326fa6ac87168087819272544e2284b483ae5..b9e212f8646646473ee08512d4c54593c7e89632 100644 (file)
@@ -335,6 +335,8 @@ func TestChildToolsExcludeCreationAndWhatsApp(t *testing.T) {
 
        names := promptToolNames(child.agent.Tools())
        require.NotContains(t, names, "agent_create")
 
        names := promptToolNames(child.agent.Tools())
        require.NotContains(t, names, "agent_create")
+       require.NotContains(t, names, "image_show")
+       require.Equal(t, `error: unknown tool "image_show"`, child.tools.run(t.Context(), "image_show", `{"image":"unknown","caption":""}`))
        require.NotContains(t, names, "whatsapp_send")
        require.NotContains(t, names, "whatsapp_find")
        require.Contains(t, names, "spawn")
        require.NotContains(t, names, "whatsapp_send")
        require.NotContains(t, names, "whatsapp_find")
        require.Contains(t, names, "spawn")