summaryrefslogtreecommitdiff
path: root/test/user_test.exs
diff options
context:
space:
mode:
authorMaxim Filippov <colixer@gmail.com>2019-08-14 22:45:32 +0000
committerMaxim Filippov <colixer@gmail.com>2019-08-14 22:45:32 +0000
commitec969eec5149c5fe2a3e676ea07384b4597487f1 (patch)
treeb725022b93c7f354116e50d54009e0dc5dc19eaf /test/user_test.exs
parentb27fafe161241c954b713281bebd6ffe1e990884 (diff)
parent27b747546a7796de57e88f454b2c2810c7523f97 (diff)
downloadpleroma-ec969eec5149c5fe2a3e676ea07384b4597487f1.tar.gz
pleroma-ec969eec5149c5fe2a3e676ea07384b4597487f1.zip
Merge branch 'develop' into 'fix/admin-api-user-deletion'
# Conflicts: # CHANGELOG.md
Diffstat (limited to 'test/user_test.exs')
-rw-r--r--test/user_test.exs5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/user_test.exs b/test/user_test.exs
index 755c6005d..77e9f6fc7 100644
--- a/test/user_test.exs
+++ b/test/user_test.exs
@@ -525,7 +525,10 @@ defmodule Pleroma.UserTest do
end
test "it restricts some sizes" do
- [bio: 5000, name: 100]
+ bio_limit = Pleroma.Config.get([:instance, :user_bio_length], 5000)
+ name_limit = Pleroma.Config.get([:instance, :user_name_length], 100)
+
+ [bio: bio_limit, name: name_limit]
|> Enum.each(fn {field, size} ->
string = String.pad_leading(".", size)
cs = User.remote_user_creation(Map.put(@valid_remote, field, string))