Tests: Capture logs to clean up the test output.
This commit is contained in:
parent
72b3ec35f8
commit
b3a1cfaa7a
@ -104,6 +104,7 @@ defmodule Pleroma.Web.ActivityPub.Transmogrifier.NoteHandlingTest do
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@tag capture_log: true
|
||||||
test "it does not crash if the object in inReplyTo can't be fetched" do
|
test "it does not crash if the object in inReplyTo can't be fetched" do
|
||||||
data =
|
data =
|
||||||
File.read!("test/fixtures/mastodon-post-activity.json")
|
File.read!("test/fixtures/mastodon-post-activity.json")
|
||||||
@ -723,6 +724,7 @@ defmodule Pleroma.Web.ActivityPub.Transmogrifier.NoteHandlingTest do
|
|||||||
assert modified.data["context"] == object.data["id"]
|
assert modified.data["context"] == object.data["id"]
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@tag capture_log: true
|
||||||
test "the reply note uses its parent's ID when context is missing and reply is unreachable" do
|
test "the reply note uses its parent's ID when context is missing and reply is unreachable" do
|
||||||
insert(:user, ap_id: "https://mk.absturztau.be/users/8ozbzjs3o8")
|
insert(:user, ap_id: "https://mk.absturztau.be/users/8ozbzjs3o8")
|
||||||
|
|
||||||
|
@ -316,6 +316,7 @@ defmodule Pleroma.Web.AdminAPI.ConfigControllerTest do
|
|||||||
assert Application.get_env(:idna, :key5) == {"string", Pleroma.Captcha.NotReal, []}
|
assert Application.get_env(:idna, :key5) == {"string", Pleroma.Captcha.NotReal, []}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@tag capture_log: true
|
||||||
test "save configs setting without explicit key", %{conn: conn} do
|
test "save configs setting without explicit key", %{conn: conn} do
|
||||||
adapter = Application.get_env(:http, :adapter)
|
adapter = Application.get_env(:http, :adapter)
|
||||||
send_user_agent = Application.get_env(:http, :send_user_agent)
|
send_user_agent = Application.get_env(:http, :send_user_agent)
|
||||||
|
Loading…
Reference in New Issue
Block a user