diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/support/httpoison_mock.ex | 4 | ||||
-rw-r--r-- | test/web/mastodon_api/status_view_test.exs | 3 |
2 files changed, 7 insertions, 0 deletions
diff --git a/test/support/httpoison_mock.ex b/test/support/httpoison_mock.ex index a8b1a60c0..a45eaf170 100644 --- a/test/support/httpoison_mock.ex +++ b/test/support/httpoison_mock.ex @@ -450,4 +450,8 @@ defmodule HTTPoisonMock do def post(url, body, headers) do {:error, "Not implemented the mock response for post #{inspect(url)}"} end + + def post(url, body, headers, options) do + {:error, "Not implemented the mock response for post #{inspect(url)}"} + end end diff --git a/test/web/mastodon_api/status_view_test.exs b/test/web/mastodon_api/status_view_test.exs index 0d396f3b8..9e2bc3c18 100644 --- a/test/web/mastodon_api/status_view_test.exs +++ b/test/web/mastodon_api/status_view_test.exs @@ -60,6 +60,9 @@ defmodule Pleroma.Web.MastodonAPI.StatusViewTest do recipient = "https://pleroma.soykaf.com/users/lain" user = User.get_cached_by_ap_id(recipient) || insert(:user, %{ap_id: recipient}) + # invalidate the cache + User.invalidate_cache(user) + {:ok, [activity]} = OStatus.handle_incoming(incoming) status = StatusView.render("status.json", %{activity: activity}) |