diff options
author | rinpatch <rinpatch@sdf.org> | 2019-04-17 12:27:29 +0300 |
---|---|---|
committer | rinpatch <rinpatch@sdf.org> | 2019-04-17 12:27:29 +0300 |
commit | dda4e0e2a8826e400cab0d9f34a699e4248e5e18 (patch) | |
tree | 7cd2e98fe3b940e7ec217b4c3c296fd7129cce5c | |
parent | 627e5a0a4992cc19fc65a7e93a09c470c8e2bf33 (diff) | |
download | pleroma-dda4e0e2a8826e400cab0d9f34a699e4248e5e18.tar.gz |
Fix warnings in object tests
-rw-r--r-- | test/object/containment_test.exs | 3 | ||||
-rw-r--r-- | test/object/fetcher_test.exs | 5 |
2 files changed, 3 insertions, 5 deletions
diff --git a/test/object/containment_test.exs b/test/object/containment_test.exs index 268675c86..cb74c9f4f 100644 --- a/test/object/containment_test.exs +++ b/test/object/containment_test.exs @@ -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, diff --git a/test/object/fetcher_test.exs b/test/object/fetcher_test.exs index 3bbade9d1..568c5cc4c 100644 --- a/test/object/fetcher_test.exs +++ b/test/object/fetcher_test.exs @@ -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") |