42 lines
999 B
Go
42 lines
999 B
Go
package runway_test
|
|
|
|
import (
|
|
"os"
|
|
"strings"
|
|
"testing"
|
|
|
|
"github.com/maximhq/bifrost/core/internal/llmtests"
|
|
"github.com/maximhq/bifrost/core/schemas"
|
|
)
|
|
|
|
func TestRunway(t *testing.T) {
|
|
t.Parallel()
|
|
if strings.TrimSpace(os.Getenv("RUNWAY_API_KEY")) == "" {
|
|
t.Skip("Skipping Runway tests because RUNWAY_API_KEY is not set")
|
|
}
|
|
|
|
client, ctx, cancel, err := llmtests.SetupTest()
|
|
if err != nil {
|
|
t.Fatalf("Error initializing test setup: %v", err)
|
|
}
|
|
defer cancel()
|
|
defer client.Shutdown()
|
|
|
|
testConfig := llmtests.ComprehensiveTestConfig{
|
|
Provider: schemas.Runway,
|
|
VideoGenerationModel: "gen4.5",
|
|
Scenarios: llmtests.TestScenarios{
|
|
VideoGeneration: false, // disabled for now because of long running operations
|
|
VideoRetrieve: false,
|
|
VideoRemix: false,
|
|
VideoDownload: false,
|
|
VideoList: false,
|
|
VideoDelete: false,
|
|
},
|
|
}
|
|
|
|
t.Run("RunwayTests", func(t *testing.T) {
|
|
llmtests.RunAllComprehensiveTests(t, client, ctx, testConfig)
|
|
})
|
|
}
|