X-Git-Url: http://git.squeep.com/?a=blobdiff_plain;f=test%2Fuser_test.exs;h=b363b322c28590daac9a09375a9d11c7ed66d72c;hb=83a3de8cc4edc6992bbc334cda57de13caa971b0;hp=8440d456df40ace3079378a7e6ff719ab82393df;hpb=47c20ab79635257f4a8dcd9886821d10276516a3;p=akkoma diff --git a/test/user_test.exs b/test/user_test.exs index 8440d456d..b363b322c 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))