Fix notification controller test
authorEgor Kislitsyn <egor@kislitsyn.com>
Wed, 15 Jan 2020 12:51:09 +0000 (16:51 +0400)
committerEgor Kislitsyn <egor@kislitsyn.com>
Wed, 15 Jan 2020 12:51:09 +0000 (16:51 +0400)
test/web/mastodon_api/controllers/notification_controller_test.exs

index 38161982a7b4ed5932980aed3bafed3cb325fae1..6f06062500598e98b0cbedbff16389260a9c8398 100644 (file)
@@ -458,8 +458,9 @@ defmodule Pleroma.Web.MastodonAPI.NotificationControllerTest do
   end
 
   describe "from specified user" do
-    test "account_id", %{conn: conn} do
-      user = insert(:user)
+    test "account_id" do
+      %{user: user, conn: conn} = oauth_access(["read:notifications"])
+
       %{id: account_id} = other_user1 = insert(:user)
       other_user2 = insert(:user)