diff options
author | lain <lain@soykaf.club> | 2019-06-13 19:08:05 +0200 |
---|---|---|
committer | lain <lain@soykaf.club> | 2019-06-13 19:08:05 +0200 |
commit | 5965efb216bc2df7af9ab01129f5bcadd3f23d59 (patch) | |
tree | 50ab2b7e9fdc913e134cddf9f0c8a246cf32ebf9 /test | |
parent | 6f5a0cc14e99cb26ef009cf8cf16f38902d5e11b (diff) | |
download | pleroma-5965efb216bc2df7af9ab01129f5bcadd3f23d59.tar.gz pleroma-5965efb216bc2df7af9ab01129f5bcadd3f23d59.zip |
AccountView: Add user background.
Diffstat (limited to 'test')
-rw-r--r-- | test/web/mastodon_api/account_view_test.exs | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/test/web/mastodon_api/account_view_test.exs b/test/web/mastodon_api/account_view_test.exs index e2244dcb7..2ba7c0505 100644 --- a/test/web/mastodon_api/account_view_test.exs +++ b/test/web/mastodon_api/account_view_test.exs @@ -19,9 +19,18 @@ defmodule Pleroma.Web.MastodonAPI.AccountViewTest do ] } + background_image = %{ + "url" => [%{"href" => "https://example.com/images/asuka_hospital.png"}] + } + user = insert(:user, %{ - info: %{note_count: 5, follower_count: 3, source_data: source_data}, + info: %{ + note_count: 5, + follower_count: 3, + source_data: source_data, + background: background_image + }, nickname: "shp@shitposter.club", name: ":karjalanpiirakka: shp", bio: "<script src=\"invalid-html\"></script><span>valid html</span>", @@ -60,6 +69,7 @@ defmodule Pleroma.Web.MastodonAPI.AccountViewTest do pleroma: %{} }, pleroma: %{ + background_image: "https://example.com/images/asuka_hospital.png", confirmation_pending: false, tags: [], is_admin: false, @@ -126,6 +136,7 @@ defmodule Pleroma.Web.MastodonAPI.AccountViewTest do pleroma: %{} }, pleroma: %{ + background_image: nil, confirmation_pending: false, tags: [], is_admin: false, @@ -216,6 +227,7 @@ defmodule Pleroma.Web.MastodonAPI.AccountViewTest do pleroma: %{} }, pleroma: %{ + background_image: nil, confirmation_pending: false, tags: [], is_admin: false, |