diff options
| author | rinpatch <rinpatch@sdf.org> | 2019-06-14 16:49:28 +0000 |
|---|---|---|
| committer | rinpatch <rinpatch@sdf.org> | 2019-06-14 16:49:28 +0000 |
| commit | 62ffc00a5d5975a75c905bc728feb71cd15a34d3 (patch) | |
| tree | 8f71fe152d00b272774aeeeeb65f302f667f7a91 /test/web/mastodon_api/account_view_test.exs | |
| parent | 270f09dbc2cb145e5a06b72189bd1b91dd3d3a02 (diff) | |
| parent | 774637a2f4505d62a2afb243b04ba283030047dc (diff) | |
| download | pleroma-62ffc00a5d5975a75c905bc728feb71cd15a34d3.tar.gz pleroma-62ffc00a5d5975a75c905bc728feb71cd15a34d3.zip | |
Merge branch 'feature/add-background-image-to-mastoapi' into 'develop'
AccountView: Add user background.
See merge request pleroma/pleroma!1280
Diffstat (limited to 'test/web/mastodon_api/account_view_test.exs')
| -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, |
