mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-12-23 17:54:22 +00:00
Allow mock in http adapter checking
This commit is contained in:
parent
f752126427
commit
503827a3d9
|
@ -217,6 +217,10 @@ defmodule Pleroma.Config.DeprecationWarnings do
|
||||||
{Tesla.Adapter.Finch, _} ->
|
{Tesla.Adapter.Finch, _} ->
|
||||||
:ok
|
:ok
|
||||||
|
|
||||||
|
Tesla.Mock ->
|
||||||
|
# tests do be testing
|
||||||
|
:ok
|
||||||
|
|
||||||
_anything_else ->
|
_anything_else ->
|
||||||
Logger.error("""
|
Logger.error("""
|
||||||
!!!CONFIG ERROR!!!
|
!!!CONFIG ERROR!!!
|
||||||
|
@ -225,6 +229,7 @@ defmodule Pleroma.Config.DeprecationWarnings do
|
||||||
Please ensure you either:
|
Please ensure you either:
|
||||||
\n* do not have any custom value for `:tesla, :adapter`, or
|
\n* do not have any custom value for `:tesla, :adapter`, or
|
||||||
\n* have `config :tesla, :adapter, {Tesla.Adapter.Finch, name: MyFinch}`
|
\n* have `config :tesla, :adapter, {Tesla.Adapter.Finch, name: MyFinch}`
|
||||||
|
(your current value is #{inspect(http_adapter)})
|
||||||
""")
|
""")
|
||||||
|
|
||||||
:error
|
:error
|
||||||
|
|
Loading…
Reference in a new issue