logo

pleroma

My custom branche(s) on git.pleroma.social/pleroma/pleroma git clone https://hacktivis.me/git/pleroma.git
commit: 075222525c29dd1f62ccd15fed0a33ef3d7376d4
parent 221f18dc3377f9d87ee35e27fb6a55542b4a352e
Author: Lain Soykaf <lain@lain.com>
Date:   Sun, 10 Dec 2023 17:06:13 +0400

TransmogrifierTest: Capture the log

Diffstat:

Mtest/pleroma/web/activity_pub/transmogrifier_test.exs9+++++----
1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/test/pleroma/web/activity_pub/transmogrifier_test.exs b/test/pleroma/web/activity_pub/transmogrifier_test.exs @@ -128,10 +128,11 @@ defmodule Pleroma.Web.ActivityPub.TransmogrifierTest do message = File.read!("test/fixtures/fep-e232.json") |> Jason.decode!() - assert {:ok, activity} = Transmogrifier.handle_incoming(message) - - object = Object.normalize(activity) - assert [%{"type" => "Mention"}, %{"type" => "Link"}] = object.data["tag"] + assert capture_log(fn -> + assert {:ok, activity} = Transmogrifier.handle_incoming(message) + object = Object.normalize(activity) + assert [%{"type" => "Mention"}, %{"type" => "Link"}] = object.data["tag"] + end) =~ "Error while fetching" end test "it accepts quote posts" do