From: William Pitcock Date: Sun, 23 Dec 2018 13:55:08 +0000 (+0000) Subject: tests: twitter api: activity view test: enable tesla mock X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=873938d223949f647a196b7f2a4140d323fbab1c;p=akkoma tests: twitter api: activity view test: enable tesla mock --- diff --git a/test/web/twitter_api/views/activity_view_test.exs b/test/web/twitter_api/views/activity_view_test.exs index 8aa9e3130..09d7a18d4 100644 --- a/test/web/twitter_api/views/activity_view_test.exs +++ b/test/web/twitter_api/views/activity_view_test.exs @@ -12,6 +12,13 @@ defmodule Pleroma.Web.TwitterAPI.ActivityViewTest do alias Pleroma.Web.ActivityPub.ActivityPub import Pleroma.Factory + import Tesla.Mock + + setup do + mock(fn env -> apply(HttpRequestMock, :request, [env]) end) + :ok + end + import Mock test "a create activity with a html status" do