projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'bugfix/oauth-token-padding' into 'develop'
[akkoma]
/
test
/
web
/
ostatus
/
activity_representer_test.exs
diff --git
a/test/web/ostatus/activity_representer_test.exs
b/test/web/ostatus/activity_representer_test.exs
index 8bf3bc775b9d8175fad8654df5c9b081016996b2..eebc5c040057036de50385267ac64e93f59dafde 100644
(file)
--- a/
test/web/ostatus/activity_representer_test.exs
+++ b/
test/web/ostatus/activity_representer_test.exs
@@
-1,12
+1,24
@@
+# Pleroma: A lightweight social networking server
+# Copyright © 2017-2018 Pleroma Authors <https://pleroma.social/>
+# SPDX-License-Identifier: AGPL-3.0-only
+
defmodule Pleroma.Web.OStatus.ActivityRepresenterTest do
use Pleroma.DataCase
alias Pleroma.Web.OStatus.ActivityRepresenter
defmodule Pleroma.Web.OStatus.ActivityRepresenterTest do
use Pleroma.DataCase
alias Pleroma.Web.OStatus.ActivityRepresenter
- alias Pleroma.{User, Activity, Object}
+ alias Pleroma.Activity
+ alias Pleroma.User
+ alias Pleroma.Object
alias Pleroma.Web.ActivityPub.ActivityPub
alias Pleroma.Web.OStatus
import Pleroma.Factory
alias Pleroma.Web.ActivityPub.ActivityPub
alias Pleroma.Web.OStatus
import Pleroma.Factory
+ import Tesla.Mock
+
+ setup do
+ mock(fn env -> apply(HttpRequestMock, :request, [env]) end)
+ :ok
+ end
test "an external note activity" do
incoming = File.read!("test/fixtures/mastodon-note-cw.xml")
test "an external note activity" do
incoming = File.read!("test/fixtures/mastodon-note-cw.xml")