aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrinpatch <rinpatch@sdf.org>2020-09-08 12:36:35 +0300
committerrinpatch <rinpatch@sdf.org>2020-09-08 12:36:35 +0300
commit6a567a131ec04dbeb71012f2caeebf563ed453a4 (patch)
tree5c19a26288474545dca58c8b59b157fbe5550649
parentc5434dbefc5e6a25ffb72debe8ed9e09d77bf885 (diff)
downloadpleroma-6a567a131ec04dbeb71012f2caeebf563ed453a4.tar.gz
disable favicon scraping in tests
This produced a lot of mock errors, since we don't have mocks for root pages
-rw-r--r--config/test.exs2
-rw-r--r--test/web/mastodon_api/views/account_view_test.exs4
2 files changed, 4 insertions, 2 deletions
diff --git a/config/test.exs b/config/test.exs
index f0358e384..0ee6f1b7f 100644
--- a/config/test.exs
+++ b/config/test.exs
@@ -114,8 +114,6 @@ config :pleroma, Pleroma.Plugs.RemoteIp, enabled: false
config :pleroma, Pleroma.Web.ApiSpec.CastAndValidate, strict: true
-config :pleroma, :instances_favicons, enabled: true
-
config :pleroma, Pleroma.Uploaders.S3,
bucket: nil,
streaming_enabled: true,
diff --git a/test/web/mastodon_api/views/account_view_test.exs b/test/web/mastodon_api/views/account_view_test.exs
index 8f37efa3c..c30308631 100644
--- a/test/web/mastodon_api/views/account_view_test.exs
+++ b/test/web/mastodon_api/views/account_view_test.exs
@@ -22,6 +22,8 @@ defmodule Pleroma.Web.MastodonAPI.AccountViewTest do
setup do: clear_config([:instances_favicons, :enabled])
test "Represent a user account" do
+ clear_config([:instances_favicons, :enabled], true)
+
background_image = %{
"url" => [%{"href" => "https://example.com/images/asuka_hospital.png"}]
}
@@ -133,6 +135,8 @@ defmodule Pleroma.Web.MastodonAPI.AccountViewTest do
end
test "Represent a Service(bot) account" do
+ clear_config([:instances_favicons, :enabled], true)
+
user =
insert(:user, %{
follower_count: 3,