Skip to content

Allow to configure a HTTP client module #225

@michallepicki

Description

@michallepicki

Hello!

For testing interactions with Braintree, we would like to use Mox in concurrent tests. Right now we can mock interactions with this whole library, but this library is also an important part of our system that we would like to keep testing on the integration level.

Would it be possible to make e.g. a smaller part of https://github.com/sorentwo/braintree-elixir/blob/main/lib/http.ex a separate module, have a behaviour interface for it, and go through configuration wherever it's being called?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions