stavro / arc

:paperclip: Flexible file upload and attachment library for Elixir
1.16k stars 210 forks source link

Test configuration, how to prevent HTTP requests? #279

Open hourliert opened 5 years ago

hourliert commented 5 years ago

Hi,

I am planing to use this library and I have one last standing question before being able to start the migration.

I am using arc to store images that I download from a source online.

How does one prevent arc to perform HTTP requests in test environnement? Would that be possible to pass a in_memory client to the config?

I guess I can use exvcr to record request and replay them during test but that's not ideal.

How are you doing to test file upload with arc?

Thanks in advance.