X-Git-Url: http://git.squeep.com/?a=blobdiff_plain;ds=sidebyside;f=test%2Fformatter_test.exs;h=d5c74a321eeb165341975b944fb20ef819af4adf;hb=5c6d47614dfd72566a91ac58223902e71ebdf1d3;hp=13084baa79bb65cd9d1823d0c929f9f5d08f623f;hpb=ad3181895c2ce14191ca4ada0d86346947428610;p=akkoma diff --git a/test/formatter_test.exs b/test/formatter_test.exs index 13084baa7..d5c74a321 100644 --- a/test/formatter_test.exs +++ b/test/formatter_test.exs @@ -4,6 +4,10 @@ defmodule Pleroma.FormatterTest do use Pleroma.DataCase import Pleroma.Factory + setup_all do + Tesla.Mock.mock_global(fn env -> apply(HttpRequestMock, :request, [env]) end) + :ok + end describe ".add_hashtag_links" do test "turns hashtags into links" do @@ -110,7 +114,7 @@ defmodule Pleroma.FormatterTest do archaeme = insert(:user, %{ nickname: "archaeme", - info: %{"source_data" => %{"url" => "https://archeme/@archaeme"}} + info: %Pleroma.User.Info{source_data: %{"url" => "https://archeme/@archaeme"}} }) archaeme_remote = insert(:user, %{nickname: "archaeme@archae.me"})