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.Object.Containment
|
||||
alias Pleroma.Web.ActivityPub.ActivityPub
|
||||
|
||||
import Pleroma.Factory
|
||||
|
||||
@ -45,7 +44,7 @@ defmodule Pleroma.Object.ContainmentTest do
|
||||
end
|
||||
|
||||
test "users cannot be collided through fake direction spoofing attempts" do
|
||||
user =
|
||||
_user =
|
||||
insert(:user, %{
|
||||
nickname: "rye@niu.moe",
|
||||
local: false,
|
||||
|
@ -1,11 +1,10 @@
|
||||
defmodule Pleroma.Object.FetcherTest do
|
||||
use Pleroma.DataCase
|
||||
|
||||
alias Pleroma.{Activity, Object}
|
||||
alias Pleroma.Activity
|
||||
alias Pleroma.Object
|
||||
alias Pleroma.Object.Fetcher
|
||||
|
||||
import Pleroma.Factory
|
||||
|
||||
describe "actor origin containment" do
|
||||
test "it rejects objects with a bogus origin" do
|
||||
{:error, _} = Fetcher.fetch_object_from_id("https://info.pleroma.site/activity.json")
|
||||
|
Loading…
Reference in New Issue
Block a user