diff options
Diffstat (limited to 'test')
| -rw-r--r-- | test/pleroma/web/activity_pub/publisher_test.exs | 26 | 
1 files changed, 11 insertions, 15 deletions
| diff --git a/test/pleroma/web/activity_pub/publisher_test.exs b/test/pleroma/web/activity_pub/publisher_test.exs index 9800144b5..bab25c8ab 100644 --- a/test/pleroma/web/activity_pub/publisher_test.exs +++ b/test/pleroma/web/activity_pub/publisher_test.exs @@ -268,7 +268,7 @@ defmodule Pleroma.Web.ActivityPub.PublisherTest do    describe "publish/2" do      test_with_mock "doesn't publish a non-public activity to quarantined instances.", -                   Pleroma.Web.Federator.Publisher, +                   Pleroma.Web.ActivityPub.Publisher,                     [:passthrough],                     [] do        Config.put([:instance, :quarantined_instances], [{"domain.com", "some reason"}]) @@ -295,7 +295,7 @@ defmodule Pleroma.Web.ActivityPub.PublisherTest do        assert res == :ok        assert not called( -               Pleroma.Web.Federator.Publisher.enqueue_one(Publisher, %{ +               Publisher.enqueue_one(%{                   inbox: "https://domain.com/users/nick1/inbox",                   actor_id: actor.id,                   id: note_activity.data["id"] @@ -304,7 +304,7 @@ defmodule Pleroma.Web.ActivityPub.PublisherTest do      end      test_with_mock "Publishes a non-public activity to non-quarantined instances.", -                   Pleroma.Web.Federator.Publisher, +                   Pleroma.Web.ActivityPub.Publisher,                     [:passthrough],                     [] do        Config.put([:instance, :quarantined_instances], [{"somedomain.com", "some reason"}]) @@ -331,8 +331,7 @@ defmodule Pleroma.Web.ActivityPub.PublisherTest do        assert res == :ok        assert called( -               Pleroma.Web.Federator.Publisher.enqueue_one( -                 Publisher, +               Publisher.enqueue_one(                   %{                     inbox: "https://domain.com/users/nick1/inbox",                     actor_id: actor.id, @@ -344,7 +343,7 @@ defmodule Pleroma.Web.ActivityPub.PublisherTest do      end      test_with_mock "Publishes to directly addressed actors with higher priority.", -                   Pleroma.Web.Federator.Publisher, +                   Pleroma.Web.ActivityPub.Publisher,                     [:passthrough],                     [] do        note_activity = insert(:direct_note_activity) @@ -356,8 +355,7 @@ defmodule Pleroma.Web.ActivityPub.PublisherTest do        assert res == :ok        assert called( -               Pleroma.Web.Federator.Publisher.enqueue_one( -                 Publisher, +               Publisher.enqueue_one(                   %{                     inbox: :_,                     actor_id: actor.id, @@ -369,7 +367,7 @@ defmodule Pleroma.Web.ActivityPub.PublisherTest do      end      test_with_mock "publishes an activity with BCC to all relevant peers.", -                   Pleroma.Web.Federator.Publisher, +                   Pleroma.Web.ActivityPub.Publisher,                     [:passthrough],                     [] do        follower = @@ -393,7 +391,7 @@ defmodule Pleroma.Web.ActivityPub.PublisherTest do        assert res == :ok        assert called( -               Pleroma.Web.Federator.Publisher.enqueue_one(Publisher, %{ +               Publisher.enqueue_one(%{                   inbox: "https://domain.com/users/nick1/inbox",                   actor_id: actor.id,                   id: note_activity.data["id"] @@ -402,7 +400,7 @@ defmodule Pleroma.Web.ActivityPub.PublisherTest do      end      test_with_mock "publishes a delete activity to peers who signed fetch requests to the create acitvity/object.", -                   Pleroma.Web.Federator.Publisher, +                   Pleroma.Web.ActivityPub.Publisher,                     [:passthrough],                     [] do        fetcher = @@ -443,8 +441,7 @@ defmodule Pleroma.Web.ActivityPub.PublisherTest do        assert res == :ok        assert called( -               Pleroma.Web.Federator.Publisher.enqueue_one( -                 Publisher, +               Publisher.enqueue_one(                   %{                     inbox: "https://domain.com/users/nick1/inbox",                     actor_id: actor.id, @@ -455,8 +452,7 @@ defmodule Pleroma.Web.ActivityPub.PublisherTest do               )        assert called( -               Pleroma.Web.Federator.Publisher.enqueue_one( -                 Publisher, +               Publisher.enqueue_one(                   %{                     inbox: "https://domain2.com/users/nick1/inbox",                     actor_id: actor.id, | 
