From: FloatingGhost Date: Sun, 11 Dec 2022 23:33:58 +0000 (+0000) Subject: Allow mock in http adapter checking X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=503827a3d9ed6c63f6d26db662c3f270512b720c;p=akkoma Allow mock in http adapter checking --- diff --git a/lib/pleroma/config/deprecation_warnings.ex b/lib/pleroma/config/deprecation_warnings.ex index 33dc925bb..972d1fb96 100644 --- a/lib/pleroma/config/deprecation_warnings.ex +++ b/lib/pleroma/config/deprecation_warnings.ex @@ -217,6 +217,10 @@ defmodule Pleroma.Config.DeprecationWarnings do {Tesla.Adapter.Finch, _} -> :ok + Tesla.Mock -> + # tests do be testing + :ok + _anything_else -> Logger.error(""" !!!CONFIG ERROR!!! @@ -225,6 +229,7 @@ defmodule Pleroma.Config.DeprecationWarnings do 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