Merge branch 'Kerl/fix-test' into 'master'
Fix non py3-compatible test in CI See merge request cof-geek/django-allauth-ens!16
This commit is contained in:
commit
bc772851d1
1 changed files with 3 additions and 2 deletions
|
@ -9,13 +9,14 @@ from django.core import mail
|
||||||
from django.test import TestCase, override_settings
|
from django.test import TestCase, override_settings
|
||||||
|
|
||||||
from allauth.socialaccount.models import SocialAccount
|
from allauth.socialaccount.models import SocialAccount
|
||||||
from allauth_ens.utils import get_ldap_infos
|
|
||||||
|
|
||||||
import six
|
import six
|
||||||
from allauth_cas.test.testcases import CASTestCase
|
from allauth_cas.test.testcases import CASTestCase
|
||||||
from fakeldap import MockLDAP
|
from fakeldap import MockLDAP
|
||||||
from mock import patch
|
from mock import patch
|
||||||
|
|
||||||
|
from allauth_ens.utils import get_ldap_infos
|
||||||
|
|
||||||
from .adapter import deprecate_clippers, install_longterm_adapter
|
from .adapter import deprecate_clippers, install_longterm_adapter
|
||||||
|
|
||||||
_mock_ldap = MockLDAP()
|
_mock_ldap = MockLDAP()
|
||||||
|
@ -375,4 +376,4 @@ class LongTermClipperTests(CASTestCase):
|
||||||
for uid in uids:
|
for uid in uids:
|
||||||
with self.assertRaises(ValueError) as cm:
|
with self.assertRaises(ValueError) as cm:
|
||||||
get_ldap_infos(uid)
|
get_ldap_infos(uid)
|
||||||
self.assertIn(uid, cm.exception.message)
|
self.assertIn(uid, str(cm.exception))
|
||||||
|
|
Loading…
Reference in a new issue