aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/object/containment_test.exs3
-rw-r--r--test/object/fetcher_test.exs5
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")