fix for migrate task

This commit is contained in:
Alexander 2019-11-10 22:54:37 +03:00
commit 6a4201e0b4
No known key found for this signature in database
GPG key ID: 7AE1AD696BA41708
3 changed files with 6 additions and 2 deletions

View file

@ -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")