diff options
author | Alexander <alex.strizhakov@gmail.com> | 2019-11-10 22:54:37 +0300 |
---|---|---|
committer | Alexander <alex.strizhakov@gmail.com> | 2019-11-10 22:54:37 +0300 |
commit | 6a4201e0b444748318845caddf0e972d0fac87d7 (patch) | |
tree | 180e163216ab50cb9b5efd940c1059a9aea8ebac /test/web/admin_api | |
parent | 7438c177d9f57e8779b979ca553c3b501726efb3 (diff) | |
download | pleroma-6a4201e0b444748318845caddf0e972d0fac87d7.tar.gz |
fix for migrate task
Diffstat (limited to 'test/web/admin_api')
-rw-r--r-- | test/web/admin_api/admin_api_controller_test.exs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/web/admin_api/admin_api_controller_test.exs b/test/web/admin_api/admin_api_controller_test.exs index 2a9e4f5a0..bc9235309 100644 --- a/test/web/admin_api/admin_api_controller_test.exs +++ b/test/web/admin_api/admin_api_controller_test.exs @@ -2269,6 +2269,10 @@ defmodule Pleroma.Web.AdminAPI.AdminAPIControllerTest do Pleroma.Config.put([:instance, :dynamic_configuration], true) end + clear_config([:feed, :post_title]) do + Pleroma.Config.put([:feed, :post_title], %{max_length: 100, omission: "…"}) + end + test "transfer settings to DB and to file", %{conn: conn, admin: admin} do assert Pleroma.Repo.all(Pleroma.Web.AdminAPI.Config) == [] conn = get(conn, "/api/pleroma/admin/config/migrate_to_db") |