Tests: Capture logs to clean up the test output.

This commit is contained in:
Lain Soykaf 2023-01-03 15:39:14 -05:00
parent 72b3ec35f8
commit b3a1cfaa7a
2 changed files with 3 additions and 0 deletions

View File

@ -104,6 +104,7 @@ test "it does not fetch reply-to activities beyond max replies depth limit" 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 @@ test "the standalone note uses its own ID when context is missing" 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")

View File

@ -316,6 +316,7 @@ test "create new config setting in db", %{conn: conn} 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)