diff options
author | Maksim Pechnikov <parallel588@gmail.com> | 2020-09-15 15:32:49 +0300 |
---|---|---|
committer | Maksim Pechnikov <parallel588@gmail.com> | 2020-09-15 15:32:49 +0300 |
commit | f879d07fa1a046b5aa33de8e445b1ca803fa1d04 (patch) | |
tree | 9db929e9744f54040bc3892082bd67ee27a6de3b /test/web/mastodon_api/controllers/account_controller_test.exs | |
parent | 3e53ab4e98e6294f593f2185998f555ccd6fee73 (diff) | |
download | pleroma-f879d07fa1a046b5aa33de8e445b1ca803fa1d04.tar.gz pleroma-f879d07fa1a046b5aa33de8e445b1ca803fa1d04.zip |
fixed tests
Diffstat (limited to 'test/web/mastodon_api/controllers/account_controller_test.exs')
-rw-r--r-- | test/web/mastodon_api/controllers/account_controller_test.exs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/test/web/mastodon_api/controllers/account_controller_test.exs b/test/web/mastodon_api/controllers/account_controller_test.exs index 17a1e7d66..f7f1369e4 100644 --- a/test/web/mastodon_api/controllers/account_controller_test.exs +++ b/test/web/mastodon_api/controllers/account_controller_test.exs @@ -1442,7 +1442,10 @@ defmodule Pleroma.Web.MastodonAPI.AccountControllerTest do describe "verify_credentials" do test "verify_credentials" do %{user: user, conn: conn} = oauth_access(["read:accounts"]) - [notification | _] = insert_list(7, :notification, user: user) + + [notification | _] = + insert_list(7, :notification, user: user, activity: insert(:note_activity)) + Pleroma.Notification.set_read_up_to(user, notification.id) conn = get(conn, "/api/v1/accounts/verify_credentials") |