Skip to content

Commit b195649

Browse files
committed
chore: remove workspace test because that API in GPTScript is changing
Signed-off-by: Donnie Adams <donnie@acorn.io>
1 parent ebdec80 commit b195649

File tree

2 files changed

+0
-21
lines changed

2 files changed

+0
-21
lines changed

.gitignore

-1
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,3 @@ go.work
2626

2727
workspace/
2828
bin/
29-
workspace/

client_test.go

-20
Original file line numberDiff line numberDiff line change
@@ -567,26 +567,6 @@ func TestFileChat(t *testing.T) {
567567
}
568568
}
569569

570-
func TestWorkspace(t *testing.T) {
571-
tool := &ToolDef{
572-
Tools: []string{"sys.workspace.ls", "sys.workspace.write"},
573-
Instructions: "Write a file named 'hello.txt' in the workspace with contents 'Hello!' then list the files in the workspace.",
574-
}
575-
run, err := client.Evaluate(context.Background(), Opts{Workspace: "./workspace"}, tool)
576-
if err != nil {
577-
t.Errorf("Error getting workspace: %v", err)
578-
}
579-
580-
output, err := run.Text()
581-
if err != nil {
582-
t.Errorf("Error reading output: %v", err)
583-
}
584-
585-
if !strings.Contains(output, "hello.txt") {
586-
t.Errorf("Unexpected output from listing workspace: %s", output)
587-
}
588-
}
589-
590570
func TestGetCommand(t *testing.T) {
591571
currentEnvVar := os.Getenv("GPTSCRIPT_BIN")
592572
t.Cleanup(func() {

0 commit comments

Comments
 (0)