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

Same pattern as the Printful work: wire up base_options/0 so tests can
inject a Req.Test plug, fix unreachable 204 clause in delete, add
HTTP-level client tests and provider integration tests.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
jamey
2026-02-22 10:35:24 +00:00
parent a45e85ef4c
commit b0aed4c1d6
4 changed files with 697 additions and 8 deletions

View File

@@ -49,6 +49,9 @@ 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
# Route HTTP clients through Req.Test stubs
config :berrypod, Berrypod.Clients.Printful,
req_options: [plug: {Req.Test, Berrypod.Clients.Printful}, retry: false]
config :berrypod, Berrypod.Clients.Printify,
req_options: [plug: {Req.Test, Berrypod.Clients.Printify}, retry: false]