def check_http_adapter do
http_adapter = Application.get_env(:tesla, :adapter)
+
case http_adapter do
{Tesla.Adapter.Finch, _} ->
:ok
+ Tesla.Mock ->
+ # tests do be testing
+ :ok
+
_anything_else ->
Logger.error("""
!!!CONFIG ERROR!!!
Please ensure you either:
\n* do not have any custom value for `:tesla, :adapter`, or
\n* have `config :tesla, :adapter, {Tesla.Adapter.Finch, name: MyFinch}`
+ (your current value is #{inspect(http_adapter)})
""")
:error