projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Test both ingestion of post in the status controller and the correct response during...
[akkoma]
/
test
/
pleroma
/
web
/
mastodon_api
/
views
/
account_view_test.exs
diff --git
a/test/pleroma/web/mastodon_api/views/account_view_test.exs
b/test/pleroma/web/mastodon_api/views/account_view_test.exs
index 6de5dc859c55acf5fbe7331fcfce25ef71ba02b0..5373a17c38f84a0db34a20ef213e0812daadd7b3 100644
(file)
--- a/
test/pleroma/web/mastodon_api/views/account_view_test.exs
+++ b/
test/pleroma/web/mastodon_api/views/account_view_test.exs
@@
-5,7
+5,6
@@
defmodule Pleroma.Web.MastodonAPI.AccountViewTest do
use Pleroma.DataCase
defmodule Pleroma.Web.MastodonAPI.AccountViewTest do
use Pleroma.DataCase
- alias Pleroma.Config
alias Pleroma.User
alias Pleroma.UserRelationship
alias Pleroma.Web.CommonAPI
alias Pleroma.User
alias Pleroma.UserRelationship
alias Pleroma.Web.CommonAPI
@@
-74,6
+73,7
@@
defmodule Pleroma.Web.MastodonAPI.AccountViewTest do
},
fields: []
},
},
fields: []
},
+ fqn: "shp@shitposter.club",
pleroma: %{
ap_id: user.ap_id,
also_known_as: ["https://shitposter.zone/users/shp"],
pleroma: %{
ap_id: user.ap_id,
also_known_as: ["https://shitposter.zone/users/shp"],
@@
-173,6
+173,7
@@
defmodule Pleroma.Web.MastodonAPI.AccountViewTest do
},
fields: []
},
},
fields: []
},
+ fqn: "shp@shitposter.club",
pleroma: %{
ap_id: user.ap_id,
also_known_as: [],
pleroma: %{
ap_id: user.ap_id,
also_known_as: [],
@@
-556,7
+557,7
@@
defmodule Pleroma.Web.MastodonAPI.AccountViewTest do
)
with media_preview_enabled <- [false, true] do
)
with media_preview_enabled <- [false, true] do
-
Config.put
([:media_preview_proxy, :enabled], media_preview_enabled)
+
clear_config
([:media_preview_proxy, :enabled], media_preview_enabled)
AccountView.render("show.json", %{user: user, skip_visibility_check: true})
|> Enum.all?(fn
AccountView.render("show.json", %{user: user, skip_visibility_check: true})
|> Enum.all?(fn