From e7bba51bb8bb41c462873c613bc6d4cf402a58d1 Mon Sep 17 00:00:00 2001 From: Sam Anthony Date: Wed, 29 Jul 2026 16:45:00 -0230 Subject: sandbox and production client constructors Previously this was a package-level configuration with Sandbox() and Production() controlling the global ApiUrl variable. Now it's controlled per-client. --- interior_test.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'interior_test.go') diff --git a/interior_test.go b/interior_test.go index f32d16e..eb87924 100644 --- a/interior_test.go +++ b/interior_test.go @@ -52,7 +52,7 @@ func TestUnmarshalInteriorValidation(t *testing.T) { } func TestStartInteriorValidation(t *testing.T) { - c := newClient(t) + c := tNewClient(t) mfg := PkgId{UsTrade, Mono, Standard, Perfect, P60UncoatedWhite, Gloss, NoLinen, NoFoil} id, err := c.StartInteriorValidation(interiorUrl, mfg) require.NoError(t, err) @@ -60,14 +60,14 @@ func TestStartInteriorValidation(t *testing.T) { } func TestStartInteriorValidationBasic(t *testing.T) { - c := newClient(t) + c := tNewClient(t) id, err := c.StartInteriorValidationBasic(interiorUrl) require.NoError(t, err) require.NotZero(t, id) } func TestGetInteriorValidation(t *testing.T) { - c := newClient(t) + c := tNewClient(t) mfg := PkgId{UsTrade, Mono, Standard, Perfect, P60UncoatedWhite, Gloss, NoLinen, NoFoil} id, err := c.StartInteriorValidation(interiorUrl, mfg) require.NoError(t, err) @@ -84,7 +84,7 @@ func TestGetInteriorValidation(t *testing.T) { } func TestValidateInterior(t *testing.T) { - c := newClient(t) + c := tNewClient(t) ctx, cancel := context.WithTimeout(t.Context(), timeout) defer cancel() mfg := PkgId{UsTrade, Mono, Standard, Perfect, P60UncoatedWhite, Gloss, NoLinen, NoFoil} @@ -94,7 +94,7 @@ func TestValidateInterior(t *testing.T) { } func TestValidateInteriorBasic(t *testing.T) { - c := newClient(t) + c := tNewClient(t) ctx, cancel := context.WithTimeout(t.Context(), timeout) defer cancel() val, err := c.ValidateInteriorBasic(ctx, interiorUrl) -- cgit v1.2.3