summaryrefslogtreecommitdiff
path: root/test/web/mastodon_api/controllers/status_controller_test.exs
diff options
context:
space:
mode:
authorIvan Tashkinov <ivantashkinov@gmail.com>2020-03-18 20:30:31 +0300
committerIvan Tashkinov <ivantashkinov@gmail.com>2020-03-18 20:30:31 +0300
commitec3719f5391d6f9945cec2e36287049d72743cd4 (patch)
tree6be0c45d7168d47491e4d49a4ad558e9cd335990 /test/web/mastodon_api/controllers/status_controller_test.exs
parent69341cbcbac2459faa43bb924577e84dac353982 (diff)
downloadpleroma-ec3719f5391d6f9945cec2e36287049d72743cd4.tar.gz
pleroma-ec3719f5391d6f9945cec2e36287049d72743cd4.zip
Improved in-test config management functions.
Diffstat (limited to 'test/web/mastodon_api/controllers/status_controller_test.exs')
-rw-r--r--test/web/mastodon_api/controllers/status_controller_test.exs4
1 files changed, 1 insertions, 3 deletions
diff --git a/test/web/mastodon_api/controllers/status_controller_test.exs b/test/web/mastodon_api/controllers/status_controller_test.exs
index fbf63f608..5259abdcd 100644
--- a/test/web/mastodon_api/controllers/status_controller_test.exs
+++ b/test/web/mastodon_api/controllers/status_controller_test.exs
@@ -739,9 +739,7 @@ defmodule Pleroma.Web.MastodonAPI.StatusControllerTest do
%{activity: activity}
end
- clear_config([:instance, :max_pinned_statuses]) do
- Config.put([:instance, :max_pinned_statuses], 1)
- end
+ clear_config([:instance, :max_pinned_statuses], 1)
test "pin status", %{conn: conn, user: user, activity: activity} do
id_str = to_string(activity.id)