all: make tests accept OUTER_SKETCH_ANTHROPIC_API_KEY
Inner sketch already has an ANTHROPIC_API_KEY...but it is the
sketch anthropic key, not the anthropic anthropic key. Blarg!
diff --git a/ant/ant_test.go b/ant/ant_test.go
index 6556e9e..fcce0cd 100644
--- a/ant/ant_test.go
+++ b/ant/ant_test.go
@@ -1,6 +1,7 @@
package ant
import (
+ "cmp"
"context"
"math"
"net/http"
@@ -22,7 +23,8 @@
return nil
})
- convo := NewConvo(ctx, os.Getenv("ANTHROPIC_API_KEY"))
+ apiKey := cmp.Or(os.Getenv("OUTER_SKETCH_ANTHROPIC_API_KEY"), os.Getenv("ANTHROPIC_API_KEY"))
+ convo := NewConvo(ctx, apiKey)
convo.HTTPC = rr.Client()
const name = "Cornelius"