mirror of https://github.com/zulip/zulip.git
django-auth-ldap: Bump version to 1.3.0.
The name of _get_user_attrs was changed to attrs in
152d40a2a0
Fixes #8380
This commit is contained in:
parent
7ad177abe6
commit
db1e090c6a
|
@ -52,7 +52,7 @@ cryptography==2.1.4
|
|||
defusedxml==0.5.0
|
||||
|
||||
# Needed for LDAP support
|
||||
django-auth-ldap==1.2.16
|
||||
django-auth-ldap==1.3.0
|
||||
|
||||
# Django extension providing bitfield support
|
||||
django-bitfield==1.9.3
|
||||
|
|
|
@ -43,7 +43,7 @@ cssselect==1.0.1 # via parsel, premailer, scrapy
|
|||
cssutils==1.0.2 # via premailer
|
||||
decorator==4.1.2 # via ipython, traitlets
|
||||
defusedxml==0.5.0
|
||||
django-auth-ldap==1.2.16
|
||||
django-auth-ldap==1.3.0
|
||||
django-bitfield==1.9.3
|
||||
django-formtools==2.1 # via django-two-factor-auth
|
||||
django-otp==0.4.1.1 # via django-two-factor-auth
|
||||
|
|
|
@ -31,7 +31,7 @@ cssselect==1.0.1 # via premailer
|
|||
cssutils==1.0.2 # via premailer
|
||||
decorator==4.1.2 # via ipython, traitlets
|
||||
defusedxml==0.5.0
|
||||
django-auth-ldap==1.2.16
|
||||
django-auth-ldap==1.3.0
|
||||
django-bitfield==1.9.3
|
||||
django-formtools==2.1 # via django-two-factor-auth
|
||||
django-otp==0.4.1.1 # via django-two-factor-auth
|
||||
|
|
|
@ -8,4 +8,4 @@ ZULIP_VERSION = "1.7.1+git"
|
|||
# Typically, adding a dependency only requires a minor version bump, and
|
||||
# removing a dependency requires a major version bump.
|
||||
|
||||
PROVISION_VERSION = '15.1'
|
||||
PROVISION_VERSION = '15.2'
|
||||
|
|
|
@ -266,13 +266,13 @@ class AuthBackendTest(ZulipTestCase):
|
|||
with mock.patch('django_auth_ldap.backend._LDAPUser._authenticate_user_dn',
|
||||
side_effect=_LDAPUser.AuthenticationFailed("Failed")), (
|
||||
mock.patch('django_auth_ldap.backend._LDAPUser._check_requirements')), (
|
||||
mock.patch('django_auth_ldap.backend._LDAPUser._get_user_attrs',
|
||||
mock.patch('django_auth_ldap.backend._LDAPUser.attrs',
|
||||
return_value=dict(full_name=['Hamlet']))):
|
||||
self.assertIsNone(backend.authenticate(email, password, realm=get_realm("zulip")))
|
||||
|
||||
with mock.patch('django_auth_ldap.backend._LDAPUser._authenticate_user_dn'), (
|
||||
mock.patch('django_auth_ldap.backend._LDAPUser._check_requirements')), (
|
||||
mock.patch('django_auth_ldap.backend._LDAPUser._get_user_attrs',
|
||||
mock.patch('django_auth_ldap.backend._LDAPUser.attrs',
|
||||
return_value=dict(full_name=['Hamlet']))):
|
||||
self.verify_backend(backend,
|
||||
bad_kwargs=dict(username=username,
|
||||
|
|
Loading…
Reference in New Issue