projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Change user.discoverable field to user.is_discoverable
[akkoma]
/
test
/
web
/
mastodon_api
/
controllers
/
account_controller_test.exs
diff --git
a/test/web/mastodon_api/controllers/account_controller_test.exs
b/test/web/mastodon_api/controllers/account_controller_test.exs
index 17a1e7d661f9234102c28807e54ee0fa7ea8953a..f7eb97dbb515bf9d9e62e02cf5a55062958ccab3 100644
(file)
--- a/
test/web/mastodon_api/controllers/account_controller_test.exs
+++ b/
test/web/mastodon_api/controllers/account_controller_test.exs
@@
-1278,7
+1278,7
@@
defmodule Pleroma.Web.MastodonAPI.AccountControllerTest do
"note" => "",
"pleroma" => %{
"actor_type" => "Person",
"note" => "",
"pleroma" => %{
"actor_type" => "Person",
- "discoverable" => false,
+ "
is_
discoverable" => false,
"no_rich_text" => false,
"show_role" => true
},
"no_rich_text" => false,
"show_role" => true
},
@@
-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"])
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")
Pleroma.Notification.set_read_up_to(user, notification.id)
conn = get(conn, "/api/v1/accounts/verify_credentials")