projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'cachex-test' into 'develop'
[akkoma]
/
test
/
pleroma
/
web
/
mastodon_api
/
update_credentials_test.exs
diff --git
a/test/pleroma/web/mastodon_api/update_credentials_test.exs
b/test/pleroma/web/mastodon_api/update_credentials_test.exs
index ed1921c9145d2b503b6a1c7160bdab4cbba89961..023726468ef070892b7ee9808ddcc633da2753ea 100644
(file)
--- a/
test/pleroma/web/mastodon_api/update_credentials_test.exs
+++ b/
test/pleroma/web/mastodon_api/update_credentials_test.exs
@@
-11,8
+11,6
@@
defmodule Pleroma.Web.MastodonAPI.UpdateCredentialsTest do
import Mock
import Pleroma.Factory
import Mock
import Pleroma.Factory
- setup do: clear_config([:instance, :max_account_fields])
-
describe "updating credentials" do
setup do: oauth_access(["write:accounts"])
setup :request_content_type
describe "updating credentials" do
setup do: oauth_access(["write:accounts"])
setup :request_content_type
@@
-446,7
+444,7
@@
defmodule Pleroma.Web.MastodonAPI.UpdateCredentialsTest do
|> patch("/api/v1/accounts/update_credentials", %{"fields_attributes" => fields})
|> json_response_and_validate_schema(403)
|> patch("/api/v1/accounts/update_credentials", %{"fields_attributes" => fields})
|> json_response_and_validate_schema(403)
-
Pleroma.Config.put
([:instance, :max_account_fields], 1)
+
clear_config
([:instance, :max_account_fields], 1)
fields = [
%{"name" => "foo", "value" => "bar"},
fields = [
%{"name" => "foo", "value" => "bar"},