X-Git-Url: http://git.squeep.com/?a=blobdiff_plain;f=test%2Fformatter_test.exs;h=5d745510f083b2d2b2a1103d0caeebebfcb8e1af;hb=76d6b1c6ab2813b1fb8f4473e4d722cc32fb2fed;hp=13084baa79bb65cd9d1823d0c929f9f5d08f623f;hpb=6098070234f7d84a32cc918d709efd07520e0b99;p=akkoma diff --git a/test/formatter_test.exs b/test/formatter_test.exs index 13084baa7..5d745510f 100644 --- a/test/formatter_test.exs +++ b/test/formatter_test.exs @@ -5,6 +5,11 @@ defmodule Pleroma.FormatterTest do 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 text = "I love #cofe and #2hu" @@ -110,7 +115,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"})