summaryrefslogtreecommitdiff
path: root/test/web/mastodon_api/views
diff options
context:
space:
mode:
authorAriadne Conill <ariadne@dereferenced.org>2019-10-17 23:37:21 +0000
committerAriadne Conill <ariadne@dereferenced.org>2019-10-18 14:50:09 +0000
commitd379b4876927701f0fa9e4886f9fd552fe71d9c9 (patch)
treef09b568a33d200f55b6c92d9b67424b2a3d145e1 /test/web/mastodon_api/views
parent6a1f4c5145c05efdfa1b0d56ba25bf87e51c7f82 (diff)
downloadpleroma-d379b4876927701f0fa9e4886f9fd552fe71d9c9.tar.gz
pleroma-d379b4876927701f0fa9e4886f9fd552fe71d9c9.zip
kill almost all of the OStatus module
Diffstat (limited to 'test/web/mastodon_api/views')
-rw-r--r--test/web/mastodon_api/views/status_view_test.exs28
1 files changed, 14 insertions, 14 deletions
diff --git a/test/web/mastodon_api/views/status_view_test.exs b/test/web/mastodon_api/views/status_view_test.exs
index 1d5a6e956..9375c5030 100644
--- a/test/web/mastodon_api/views/status_view_test.exs
+++ b/test/web/mastodon_api/views/status_view_test.exs
@@ -14,7 +14,6 @@ defmodule Pleroma.Web.MastodonAPI.StatusViewTest do
alias Pleroma.Web.CommonAPI.Utils
alias Pleroma.Web.MastodonAPI.AccountView
alias Pleroma.Web.MastodonAPI.StatusView
- alias Pleroma.Web.OStatus
import Pleroma.Factory
import Tesla.Mock
@@ -229,19 +228,20 @@ defmodule Pleroma.Web.MastodonAPI.StatusViewTest do
assert status.in_reply_to_id == to_string(note.id)
end
- test "contains mentions" do
- incoming = File.read!("test/fixtures/incoming_reply_mastodon.xml")
- # a user with this ap id might be in the cache.
- recipient = "https://pleroma.soykaf.com/users/lain"
- user = insert(:user, %{ap_id: recipient})
-
- {:ok, [activity]} = OStatus.handle_incoming(incoming)
-
- status = StatusView.render("show.json", %{activity: activity})
-
- assert status.mentions ==
- Enum.map([user], fn u -> AccountView.render("mention.json", %{user: u}) end)
- end
+ # XXX: fix this test
+ # test "contains mentions" do
+ # incoming = File.read!("test/fixtures/incoming_reply_mastodon.xml")
+ # # a user with this ap id might be in the cache.
+ # recipient = "https://pleroma.soykaf.com/users/lain"
+ # user = insert(:user, %{ap_id: recipient})
+ #
+ # {:ok, [activity]} = OStatus.handle_incoming(incoming)
+ #
+ # status = StatusView.render("show.json", %{activity: activity})
+ #
+ # assert status.mentions ==
+ # Enum.map([user], fn u -> AccountView.render("mention.json", %{user: u}) end)
+ # end
test "create mentions from the 'to' field" do
%User{ap_id: recipient_ap_id} = insert(:user)