Commit 52d56ed7 authored by kaniini's avatar kaniini

tests: add test verifying the relay user is invisible

parent c9280b97
......@@ -7,6 +7,7 @@ defmodule Pleroma.Web.ActivityPub.RelayTest do
alias Pleroma.Activity
alias Pleroma.Object
alias Pleroma.User
alias Pleroma.Web.ActivityPub.ActivityPub
alias Pleroma.Web.ActivityPub.Relay
......@@ -19,6 +20,11 @@ test "gets an actor for the relay" do
assert user.ap_id == "#{Pleroma.Web.Endpoint.url()}/relay"
test "relay actor is invisible" do
user = Relay.get_actor()
assert User.invisible?(user)
describe "follow/1" do
test "returns errors when user not found" do
assert capture_log(fn ->
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment