Merge remote-tracking branch 'remotes/origin/develop' into 1560-non-federating-instan...
[akkoma] / test / web / mastodon_api / controllers / notification_controller_test.exs
index 38161982a7b4ed5932980aed3bafed3cb325fae1..d452ddbdd5d45d4479ed261dedb20bef6d4c54a5 100644 (file)
@@ -1,5 +1,5 @@
 # Pleroma: A lightweight social networking server
-# Copyright © 2017-2019 Pleroma Authors <https://pleroma.social/>
+# Copyright © 2017-2020 Pleroma Authors <https://pleroma.social/>
 # SPDX-License-Identifier: AGPL-3.0-only
 
 defmodule Pleroma.Web.MastodonAPI.NotificationControllerTest do
@@ -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)