X-Git-Url: http://git.squeep.com/?a=blobdiff_plain;f=test%2Flist_test.exs;h=1909c0cd9e664771e7e425eab8542c5e7d8e8a2a;hb=2272934a5e5d5f2d0319381bd2f4dc322da78e18;hp=19eef8f6b8d64f838ce203c7ce60aa0b6a87ee3c;hpb=5e9a0e2460a1f58aaa1213c5b4e9ccdf4d9b6a78;p=akkoma diff --git a/test/list_test.exs b/test/list_test.exs index 19eef8f6b..1909c0cd9 100644 --- a/test/list_test.exs +++ b/test/list_test.exs @@ -1,9 +1,12 @@ +# Pleroma: A lightweight social networking server +# Copyright © 2017-2018 Pleroma Authors +# SPDX-License-Identifier: AGPL-3.0-only + defmodule Pleroma.ListTest do - alias Pleroma.{User, Repo} + alias Pleroma.Repo use Pleroma.DataCase import Pleroma.Factory - import Ecto.Query test "creating a list" do user = insert(:user) @@ -32,7 +35,7 @@ defmodule Pleroma.ListTest do user = insert(:user) other_user = insert(:user) {:ok, list} = Pleroma.List.create("title", user) - {:ok, %{following: following}} = Pleroma.List.follow(list, other_user) + {:ok, %{following: _following}} = Pleroma.List.follow(list, other_user) {:ok, %{following: following}} = Pleroma.List.unfollow(list, other_user) assert [] == following end