projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Apply Upload.base_url for S3
[akkoma]
/
test
/
pleroma
/
bbs
/
handler_test.exs
diff --git
a/test/pleroma/bbs/handler_test.exs
b/test/pleroma/bbs/handler_test.exs
index eb716486ece45594e44571d81f71f9c8e0c3155b..8033828f082b4a0bacc659c74ff9ea7c84de0900 100644
(file)
--- a/
test/pleroma/bbs/handler_test.exs
+++ b/
test/pleroma/bbs/handler_test.exs
@@
-3,7
+3,7
@@
# SPDX-License-Identifier: AGPL-3.0-only
defmodule Pleroma.BBS.HandlerTest do
# SPDX-License-Identifier: AGPL-3.0-only
defmodule Pleroma.BBS.HandlerTest do
- use Pleroma.DataCase
+ use Pleroma.DataCase
, async: true
alias Pleroma.Activity
alias Pleroma.BBS.Handler
alias Pleroma.Object
alias Pleroma.Activity
alias Pleroma.BBS.Handler
alias Pleroma.Object
@@
-19,7
+19,7
@@
defmodule Pleroma.BBS.HandlerTest do
user = insert(:user)
followed = insert(:user)
user = insert(:user)
followed = insert(:user)
- {:ok, user} = User.follow(user, followed)
+ {:ok, user
, followed
} = User.follow(user, followed)
{:ok, _first} = CommonAPI.post(user, %{status: "hey"})
{:ok, _second} = CommonAPI.post(followed, %{status: "hello"})
{:ok, _first} = CommonAPI.post(user, %{status: "hey"})
{:ok, _second} = CommonAPI.post(followed, %{status: "hello"})
@@
-54,7
+54,7
@@
defmodule Pleroma.BBS.HandlerTest do
)
assert activity.actor == user.ap_id
)
assert activity.actor == user.ap_id
- object = Object.normalize(activity)
+ object = Object.normalize(activity
, fetch: false
)
assert object.data["content"] == "this is a test post"
end
assert object.data["content"] == "this is a test post"
end
@@
-63,7
+63,7
@@
defmodule Pleroma.BBS.HandlerTest do
another_user = insert(:user)
{:ok, activity} = CommonAPI.post(another_user, %{status: "this is a test post"})
another_user = insert(:user)
{:ok, activity} = CommonAPI.post(another_user, %{status: "this is a test post"})
- activity_object = Object.normalize(activity)
+ activity_object = Object.normalize(activity
, fetch: false
)
output =
capture_io(fn ->
output =
capture_io(fn ->
@@
-82,7
+82,7
@@
defmodule Pleroma.BBS.HandlerTest do
assert reply.actor == user.ap_id
assert reply.actor == user.ap_id
- reply_object_data = Object.normalize(reply).data
+ reply_object_data = Object.normalize(reply
, fetch: false
).data
assert reply_object_data["content"] == "this is a reply"
assert reply_object_data["inReplyTo"] == activity_object.data["id"]
end
assert reply_object_data["content"] == "this is a reply"
assert reply_object_data["inReplyTo"] == activity_object.data["id"]
end