diff options
author | Mark Felder <feld@FreeBSD.org> | 2020-09-23 11:56:22 -0500 |
---|---|---|
committer | Mark Felder <feld@FreeBSD.org> | 2020-09-23 11:56:22 -0500 |
commit | f3a1f9c3bbb7321876a09b3846b5e10ecf4af94f (patch) | |
tree | bcfd29188a841470cdeca478b1c5a3bbd4cc930a /test/web/mastodon_api/controllers/account_controller_test.exs | |
parent | 34d7e864db8f9cc7fb73ce2fef8466ce8e09ed85 (diff) | |
parent | e02101e15c425416975f756aca7f3b058006668d (diff) | |
download | pleroma-f3a1f9c3bbb7321876a09b3846b5e10ecf4af94f.tar.gz pleroma-f3a1f9c3bbb7321876a09b3846b5e10ecf4af94f.zip |
Merge branch 'develop' into feature/bulk-confirmation
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") |