summaryrefslogtreecommitdiff
path: root/test/web/mastodon_api/controllers/account_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/account_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/account_controller_test.exs')
-rw-r--r--test/web/mastodon_api/controllers/account_controller_test.exs4
1 files changed, 1 insertions, 3 deletions
diff --git a/test/web/mastodon_api/controllers/account_controller_test.exs b/test/web/mastodon_api/controllers/account_controller_test.exs
index 7efccd9c4..5a78f2968 100644
--- a/test/web/mastodon_api/controllers/account_controller_test.exs
+++ b/test/web/mastodon_api/controllers/account_controller_test.exs
@@ -756,9 +756,7 @@ defmodule Pleroma.Web.MastodonAPI.AccountControllerTest do
end
describe "create account by app / rate limit" do
- clear_config([:rate_limit, :app_account_creation]) do
- Pleroma.Config.put([:rate_limit, :app_account_creation], {10_000, 2})
- end
+ clear_config([:rate_limit, :app_account_creation], {10_000, 2})
test "respects rate limit setting", %{conn: conn} do
app_token = insert(:oauth_token, user: nil)