Move account_lists test to MastodonAPI.AccountControllerTest
authorEgor Kislitsyn <egor@kislitsyn.com>
Mon, 30 Sep 2019 07:43:54 +0000 (14:43 +0700)
committerEgor Kislitsyn <egor@kislitsyn.com>
Mon, 30 Sep 2019 12:10:55 +0000 (19:10 +0700)
test/web/mastodon_api/mastodon_api_controller_test.exs

index 671f9f25420b75501b43ba005413f1219dd062d2..0acc5d067f45b7d697106b016b435058608bf9ac 100644 (file)
@@ -1082,23 +1082,6 @@ defmodule Pleroma.Web.MastodonAPI.MastodonAPIControllerTest do
     end
   end
 
-  describe "GET /api/v1/accounts/:id/lists - account_lists" do
-    test "returns lists to which the account belongs", %{conn: conn} do
-      user = insert(:user)
-      other_user = insert(:user)
-      assert {:ok, %Pleroma.List{} = list} = Pleroma.List.create("Test List", user)
-      {:ok, %{following: _following}} = Pleroma.List.follow(list, other_user)
-
-      res =
-        conn
-        |> assign(:user, user)
-        |> get("/api/v1/accounts/#{other_user.id}/lists")
-        |> json_response(200)
-
-      assert res == [%{"id" => to_string(list.id), "title" => "Test List"}]
-    end
-  end
-
   describe "empty_array, stubs for mastodon api" do
     test "GET /api/v1/accounts/:id/identity_proofs", %{conn: conn} do
       user = insert(:user)