diff options
author | Ivan Tashkinov <ivantashkinov@gmail.com> | 2020-02-13 21:55:47 +0300 |
---|---|---|
committer | Ivan Tashkinov <ivantashkinov@gmail.com> | 2020-02-13 21:55:47 +0300 |
commit | 4f8c3462a8821ffcf83f8b65edf48e55eff7080c (patch) | |
tree | a532e6761adde4e23f2b7e980f76e4c6f5b08148 /test/web/admin_api | |
parent | 9906c6fb6fb0e2ebb36fa91fae94828bcc02ef27 (diff) | |
download | pleroma-4f8c3462a8821ffcf83f8b65edf48e55eff7080c.tar.gz |
Tweaks to `clear_config` calls in tests in order to prevent side effects on config during test suite execution.
Diffstat (limited to 'test/web/admin_api')
-rw-r--r-- | test/web/admin_api/admin_api_controller_test.exs | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/test/web/admin_api/admin_api_controller_test.exs b/test/web/admin_api/admin_api_controller_test.exs index 5fbdf96f6..ddfb9a5f5 100644 --- a/test/web/admin_api/admin_api_controller_test.exs +++ b/test/web/admin_api/admin_api_controller_test.exs @@ -1890,9 +1890,7 @@ defmodule Pleroma.Web.AdminAPI.AdminAPIControllerTest do end test "when configuration from database is off", %{conn: conn} do - initial = Pleroma.Config.get(:configurable_from_database) Pleroma.Config.put(:configurable_from_database, false) - on_exit(fn -> Pleroma.Config.put(:configurable_from_database, initial) end) conn = get(conn, "/api/pleroma/admin/config") assert json_response(conn, 400) == |