summaryrefslogtreecommitdiff
path: root/test/web/mastodon_api/views/account_view_test.exs
diff options
context:
space:
mode:
authorlain <lain@soykaf.club>2020-05-13 09:34:30 +0000
committerlain <lain@soykaf.club>2020-05-13 09:34:30 +0000
commit156c8a508846bd6d4e55f666c4ecc6f0129ac5fc (patch)
tree971b1b30e5faec06b9971d1f08df20bc95ce8051 /test/web/mastodon_api/views/account_view_test.exs
parent1307d6ca3ca4ebe1ad49ef5c018fb28c2eb44fee (diff)
parent79ad12064dfd31f135763bae1523a94c493b6aed (diff)
downloadpleroma-156c8a508846bd6d4e55f666c4ecc6f0129ac5fc.tar.gz
pleroma-156c8a508846bd6d4e55f666c4ecc6f0129ac5fc.zip
Merge branch 'openapi/statuses' into 'develop'
Add OpenAPI spec for StatusController See merge request pleroma/pleroma!2521
Diffstat (limited to 'test/web/mastodon_api/views/account_view_test.exs')
-rw-r--r--test/web/mastodon_api/views/account_view_test.exs13
1 files changed, 10 insertions, 3 deletions
diff --git a/test/web/mastodon_api/views/account_view_test.exs b/test/web/mastodon_api/views/account_view_test.exs
index 375f0103a..69ddbb5d4 100644
--- a/test/web/mastodon_api/views/account_view_test.exs
+++ b/test/web/mastodon_api/views/account_view_test.exs
@@ -93,7 +93,14 @@ defmodule Pleroma.Web.MastodonAPI.AccountViewTest do
test "Represent the user account for the account owner" do
user = insert(:user)
- notification_settings = %Pleroma.User.NotificationSetting{}
+ notification_settings = %{
+ followers: true,
+ follows: true,
+ non_followers: true,
+ non_follows: true,
+ privacy_option: false
+ }
+
privacy = user.default_scope
assert %{
@@ -452,8 +459,8 @@ defmodule Pleroma.Web.MastodonAPI.AccountViewTest do
{:ok, _activity} =
CommonAPI.post(other_user, %{
- "status" => "Hey @#{user.nickname}.",
- "visibility" => "direct"
+ status: "Hey @#{user.nickname}.",
+ visibility: "direct"
})
user = User.get_cached_by_ap_id(user.ap_id)