Fix warnings in object tests

This commit is contained in:
rinpatch 2019-04-17 12:27:29 +03:00
parent 627e5a0a49
commit dda4e0e2a8
2 changed files with 3 additions and 5 deletions

View File

@ -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,

View File

@ -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")