tests: add integration tests

This commit is contained in:
Stevan Freeborn
2026-03-26 16:59:49 -05:00
parent 6c5b225d97
commit d1f57f77a5
15 changed files with 2290 additions and 12 deletions
+22
View File
@@ -0,0 +1,22 @@
//go:build integration
package onspring_test
import (
"context"
"testing"
)
func TestPingIntegration(t *testing.T) {
loadEnvFile(t)
t.Run("Get should be able to connect to the API", func(t *testing.T) {
client := createClient(t)
err := client.Ping.Get(context.Background())
if err != nil {
t.Errorf("Expected no error, got %v", err)
}
})
}