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 /cover_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 'cover_test.go')
| -rw-r--r-- | cover_test.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/cover_test.go b/cover_test.go index fe40b69..4659f38 100644 --- a/cover_test.go +++ b/cover_test.go @@ -41,7 +41,7 @@ func TestUnmarshalCoverDimensions(t *testing.T) { } func TestCoverDimensions(t *testing.T) { - c := newClient(t) + c := tNewClient(t) mfg := PkgId{ UsTrade, Mono, @@ -101,7 +101,7 @@ func TestUnmarshalCoverValidation(t *testing.T) { } func TestStartCoverValidation(t *testing.T) { - c := newClient(t) + c := tNewClient(t) mfg := PkgId{ UsTrade, Mono, @@ -118,7 +118,7 @@ func TestStartCoverValidation(t *testing.T) { } func TestGetCoverValidation(t *testing.T) { - c := newClient(t) + c := tNewClient(t) mfg := PkgId{UsTrade, Mono, Standard, Perfect, P60UncoatedWhite, Gloss, NoLinen, NoFoil} id, err := c.StartCoverValidation(coverUrl, mfg, 210) require.NoError(t, err) @@ -135,7 +135,7 @@ func TestGetCoverValidation(t *testing.T) { } func TestValidateCover(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} |