diff options
author | Lain Soykaf <lain@lain.com> | 2025-02-25 17:18:49 +0400 |
---|---|---|
committer | Lain Soykaf <lain@lain.com> | 2025-02-25 17:18:49 +0400 |
commit | fd128ec7c2d73842a168a25c1a9e67c6c23504e6 (patch) | |
tree | cc627db5aa0d563f5a9a54772aab849ee1eed5a7 | |
parent | c31fabdebddbd434a9fcff57cb36613f52ebc6a2 (diff) | |
download | pleroma-fd128ec7c2d73842a168a25c1a9e67c6c23504e6.tar.gz pleroma-fd128ec7c2d73842a168a25c1a9e67c6c23504e6.zip |
ConfigControllerTest: Fix it!
-rw-r--r-- | test/pleroma/web/admin_api/controllers/config_controller_test.exs | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/test/pleroma/web/admin_api/controllers/config_controller_test.exs b/test/pleroma/web/admin_api/controllers/config_controller_test.exs index dc12155f5..e12115ea1 100644 --- a/test/pleroma/web/admin_api/controllers/config_controller_test.exs +++ b/test/pleroma/web/admin_api/controllers/config_controller_test.exs @@ -1211,8 +1211,6 @@ defmodule Pleroma.Web.AdminAPI.ConfigControllerTest do end test "args for Pleroma.Upload.Filter.Mogrify with custom tuples", %{conn: conn} do - clear_config(Pleroma.Upload.Filter.Mogrify) - assert conn |> put_req_header("content-type", "application/json") |> post("/api/pleroma/admin/config", %{ @@ -1240,7 +1238,8 @@ defmodule Pleroma.Web.AdminAPI.ConfigControllerTest do "need_reboot" => false } - assert Config.get(Pleroma.Upload.Filter.Mogrify) == [args: ["auto-orient", "strip"]] + config = Config.get(Pleroma.Upload.Filter.Mogrify) + assert {:args, ["auto-orient", "strip"]} in config assert conn |> put_req_header("content-type", "application/json") @@ -1289,9 +1288,9 @@ defmodule Pleroma.Web.AdminAPI.ConfigControllerTest do "need_reboot" => false } - assert Config.get(Pleroma.Upload.Filter.Mogrify) == [ - args: ["auto-orient", "strip", {"implode", "1"}, {"resize", "3840x1080>"}] - ] + config = Config.get(Pleroma.Upload.Filter.Mogrify) + + assert {:args, ["auto-orient", "strip", {"implode", "1"}, {"resize", "3840x1080>"}]} in config end test "enables the welcome messages", %{conn: conn} do |