aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorIvan Tashkinov <ivantashkinov@gmail.com>2019-08-22 21:01:28 +0300
committerIvan Tashkinov <ivantashkinov@gmail.com>2019-08-22 21:01:28 +0300
commit7101ba1a21ded292ba057f9aadec1756914b45e0 (patch)
tree6ee1e10eba5b579d7e469ac8a340bb496f564411 /test
parent256ff09aa8068166a9f83e3159f060fd4598af76 (diff)
parent0e50e9e4fa5a5d33d36f4226e1d32a00bf53fc72 (diff)
downloadpleroma-7101ba1a21ded292ba057f9aadec1756914b45e0.tar.gz
Merge remote-tracking branch 'remotes/upstream/develop' into 1149-oban-job-queue
Diffstat (limited to 'test')
-rw-r--r--test/user_test.exs3
-rw-r--r--test/web/activity_pub/transmogrifier_test.exs2
-rw-r--r--test/web/mastodon_api/mastodon_api_controller/update_credentials_test.exs1
3 files changed, 6 insertions, 0 deletions
diff --git a/test/user_test.exs b/test/user_test.exs
index 3185cc1fb..733467398 100644
--- a/test/user_test.exs
+++ b/test/user_test.exs
@@ -543,6 +543,9 @@ defmodule Pleroma.UserTest do
avatar: %{some: "avatar"}
}
+ clear_config([:instance, :user_bio_length])
+ clear_config([:instance, :user_name_length])
+
test "it confirms validity" do
cs = User.remote_user_creation(@valid_remote)
assert cs.valid?
diff --git a/test/web/activity_pub/transmogrifier_test.exs b/test/web/activity_pub/transmogrifier_test.exs
index 86605c336..42f9672d0 100644
--- a/test/web/activity_pub/transmogrifier_test.exs
+++ b/test/web/activity_pub/transmogrifier_test.exs
@@ -25,6 +25,8 @@ defmodule Pleroma.Web.ActivityPub.TransmogrifierTest do
:ok
end
+ clear_config([:instance, :max_remote_account_fields])
+
describe "handle_incoming" do
test "it ignores an incoming notice if we already have it" do
activity = insert(:note_activity)
diff --git a/test/web/mastodon_api/mastodon_api_controller/update_credentials_test.exs b/test/web/mastodon_api/mastodon_api_controller/update_credentials_test.exs
index dd443495b..87ee82050 100644
--- a/test/web/mastodon_api/mastodon_api_controller/update_credentials_test.exs
+++ b/test/web/mastodon_api/mastodon_api_controller/update_credentials_test.exs
@@ -9,6 +9,7 @@ defmodule Pleroma.Web.MastodonAPI.MastodonAPIController.UpdateCredentialsTest do
use Pleroma.Web.ConnCase
import Pleroma.Factory
+ clear_config([:instance, :max_account_fields])
describe "updating credentials" do
test "sets user settings in a generic way", %{conn: conn} do