add Printify client test coverage with Req.Test stubs
All checks were successful
deploy / deploy (push) Successful in 1m15s
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:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user