diff options
author | Ivan Tashkinov <ivantashkinov@gmail.com> | 2020-03-18 20:30:31 +0300 |
---|---|---|
committer | Ivan Tashkinov <ivantashkinov@gmail.com> | 2020-03-18 20:30:31 +0300 |
commit | ec3719f5391d6f9945cec2e36287049d72743cd4 (patch) | |
tree | 6be0c45d7168d47491e4d49a4ad558e9cd335990 /test/web/oauth/ldap_authorization_test.exs | |
parent | 69341cbcbac2459faa43bb924577e84dac353982 (diff) | |
download | pleroma-ec3719f5391d6f9945cec2e36287049d72743cd4.tar.gz pleroma-ec3719f5391d6f9945cec2e36287049d72743cd4.zip |
Improved in-test config management functions.
Diffstat (limited to 'test/web/oauth/ldap_authorization_test.exs')
-rw-r--r-- | test/web/oauth/ldap_authorization_test.exs | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/test/web/oauth/ldap_authorization_test.exs b/test/web/oauth/ldap_authorization_test.exs index c55b0ffc5..b348281c5 100644 --- a/test/web/oauth/ldap_authorization_test.exs +++ b/test/web/oauth/ldap_authorization_test.exs @@ -12,13 +12,9 @@ defmodule Pleroma.Web.OAuth.LDAPAuthorizationTest do @skip if !Code.ensure_loaded?(:eldap), do: :skip - clear_config_all([:ldap, :enabled]) do - Pleroma.Config.put([:ldap, :enabled], true) - end + clear_config_all([:ldap, :enabled], true) - clear_config_all(Pleroma.Web.Auth.Authenticator) do - Pleroma.Config.put(Pleroma.Web.Auth.Authenticator, Pleroma.Web.Auth.LDAPAuthenticator) - end + clear_config_all(Pleroma.Web.Auth.Authenticator, Pleroma.Web.Auth.LDAPAuthenticator) @tag @skip test "authorizes the existing user using LDAP credentials" do |