Skip to content
Snippets Groups Projects
Commit dda4e0e2 authored by rinpatch's avatar rinpatch
Browse files

Fix warnings in object tests

parent 627e5a0a
No related branches found
No related tags found
No related merge requests found
......@@ -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,
......
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")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment