add Printful client test coverage with Req.Test stubs
All checks were successful
deploy / deploy (push) Successful in 1m10s

Wire up Req.Test plug for the Printful HTTP client so tests can stub
responses. Adds HTTP-level tests for the client, provider integration
tests, and mockup enricher tests.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
jamey
2026-02-22 10:20:49 +00:00
parent f1b4e55cc7
commit a45e85ef4c
5 changed files with 1023 additions and 6 deletions

View File

@@ -48,3 +48,7 @@ config :berrypod, Oban, testing: :inline
# Isolate image cache so test cleanup doesn't wipe the dev cache
config :berrypod, :image_cache_dir, Path.expand("../tmp/test_image_cache", __DIR__)
# Route Printful HTTP client through Req.Test stubs
config :berrypod, Berrypod.Clients.Printful,
req_options: [plug: {Req.Test, Berrypod.Clients.Printful}, retry: false]