tests: fix up tesla test

This commit is contained in:
Ariadne Conill 2019-08-20 21:32:21 +00:00
parent 79a0c3204a
commit 125ba1dc3d

View File

@ -5,6 +5,13 @@
defmodule Pleroma.ReverseProxy.Client.TeslaTest do
use Pleroma.ReverseProxyClientCase, client: Pleroma.ReverseProxy.Client.Tesla
setup_all do
Pleroma.Config.put([Pleroma.Gun.API], Pleroma.Gun.API.Gun)
on_exit(fn ->
Pleroma.Config.put([Pleroma.Gun.API], Pleroma.Gun.API.Mock)
end)
end
defp check_ref(%{pid: pid, stream: stream} = ref) do
assert is_pid(pid)
assert is_reference(stream)