Fix warnings in object tests
This commit is contained in:
parent
627e5a0a49
commit
dda4e0e2a8
@ -3,7 +3,6 @@ defmodule Pleroma.Object.ContainmentTest do
|
|||||||
|
|
||||||
alias Pleroma.User
|
alias Pleroma.User
|
||||||
alias Pleroma.Object.Containment
|
alias Pleroma.Object.Containment
|
||||||
alias Pleroma.Web.ActivityPub.ActivityPub
|
|
||||||
|
|
||||||
import Pleroma.Factory
|
import Pleroma.Factory
|
||||||
|
|
||||||
@ -45,7 +44,7 @@ test "contain_origin_from_id() allows matching IDs" do
|
|||||||
end
|
end
|
||||||
|
|
||||||
test "users cannot be collided through fake direction spoofing attempts" do
|
test "users cannot be collided through fake direction spoofing attempts" do
|
||||||
user =
|
_user =
|
||||||
insert(:user, %{
|
insert(:user, %{
|
||||||
nickname: "rye@niu.moe",
|
nickname: "rye@niu.moe",
|
||||||
local: false,
|
local: false,
|
||||||
|
@ -1,11 +1,10 @@
|
|||||||
defmodule Pleroma.Object.FetcherTest do
|
defmodule Pleroma.Object.FetcherTest do
|
||||||
use Pleroma.DataCase
|
use Pleroma.DataCase
|
||||||
|
|
||||||
alias Pleroma.{Activity, Object}
|
alias Pleroma.Activity
|
||||||
|
alias Pleroma.Object
|
||||||
alias Pleroma.Object.Fetcher
|
alias Pleroma.Object.Fetcher
|
||||||
|
|
||||||
import Pleroma.Factory
|
|
||||||
|
|
||||||
describe "actor origin containment" do
|
describe "actor origin containment" do
|
||||||
test "it rejects objects with a bogus origin" do
|
test "it rejects objects with a bogus origin" do
|
||||||
{:error, _} = Fetcher.fetch_object_from_id("https://info.pleroma.site/activity.json")
|
{:error, _} = Fetcher.fetch_object_from_id("https://info.pleroma.site/activity.json")
|
||||||
|
Loading…
Reference in New Issue
Block a user