diff options
author | Lain Soykaf <lain@lain.com> | 2023-12-10 17:06:13 +0400 |
---|---|---|
committer | Lain Soykaf <lain@lain.com> | 2023-12-10 17:06:13 +0400 |
commit | 075222525c29dd1f62ccd15fed0a33ef3d7376d4 (patch) | |
tree | a7fb1681dbef5b83bd43f98ff0754b44ab28ba85 | |
parent | 221f18dc3377f9d87ee35e27fb6a55542b4a352e (diff) | |
download | pleroma-075222525c29dd1f62ccd15fed0a33ef3d7376d4.tar.gz pleroma-075222525c29dd1f62ccd15fed0a33ef3d7376d4.zip |
TransmogrifierTest: Capture the log
-rw-r--r-- | test/pleroma/web/activity_pub/transmogrifier_test.exs | 9 |
1 files 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 index 5e58d75db..9c5983347 100644 --- 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 |