diff options
| author | Sam Anthony <sam@samanthony.xyz> | 2026-07-29 16:45:00 -0230 |
|---|---|---|
| committer | Sam Anthony <sam@samanthony.xyz> | 2026-07-29 16:45:00 -0230 |
| commit | e7bba51bb8bb41c462873c613bc6d4cf402a58d1 (patch) | |
| tree | a94f91656e52aaf5c8edb5aed02679bae8efab11 /interior_test.go | |
| parent | 95acc996fdcc6221741a3072633c5753e88d0f07 (diff) | |
| download | lulu-e7bba51bb8bb41c462873c613bc6d4cf402a58d1.zip | |
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.
Diffstat (limited to 'interior_test.go')
| -rw-r--r-- | interior_test.go | 10 |
1 files changed, 5 insertions, 5 deletions
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) |