From f4edb67a3ebe2871d6db7c9cc2635463654bd2e2 Mon Sep 17 00:00:00 2001 From: Michał Górny Date: Mon, 16 Sep 2013 21:43:45 +0200 Subject: Clean up django_auth_ldap leftovers. --- okupy/tests/settings.py | 5 ----- okupy/tests/unit/test_login.py | 4 ++-- 2 files changed, 2 insertions(+), 7 deletions(-) (limited to 'okupy/tests') diff --git a/okupy/tests/settings.py b/okupy/tests/settings.py index 1a83724..deb2f15 100644 --- a/okupy/tests/settings.py +++ b/okupy/tests/settings.py @@ -50,7 +50,6 @@ INSTALLED_APPS = ( 'django.contrib.sites', 'django.contrib.messages', 'django.contrib.staticfiles', - 'django_auth_ldap', 'django_otp', 'discover_runner', 'okupy.accounts', @@ -260,10 +259,6 @@ LOGGING = { 'handlers': ['console' if DEBUG else 'null'], 'level': 'DEBUG' if DEBUG else 'INFO', }, - 'django_auth_ldap': { - 'handlers': ['console' if DEBUG else 'null'], - 'level': 'DEBUG' if DEBUG else 'INFO', - }, } } diff --git a/okupy/tests/unit/test_login.py b/okupy/tests/unit/test_login.py index 424e8be..c9948db 100644 --- a/okupy/tests/unit/test_login.py +++ b/okupy/tests/unit/test_login.py @@ -52,7 +52,7 @@ class LoginUnitTests(OkupyTestCase): @no_database() @override_settings(AUTHENTICATION_BACKENDS=( - 'django_auth_ldap.backend.LDAPBackend', + 'okupy.common.auth.LDAPAuthBackend', 'django.contrib.auth.backends.ModelBackend')) def test_no_database_raises_critical(self): request = set_request(uri='/login', post=vars.LOGIN_ALICE, @@ -64,7 +64,7 @@ class LoginUnitTests(OkupyTestCase): @no_database() @override_settings(AUTHENTICATION_BACKENDS=( - 'django_auth_ldap.backend.LDAPBackend', + 'okupy.common.auth.LDAPAuthBackend', 'django.contrib.auth.backends.ModelBackend')) def test_no_database_sends_notification_mail(self): request = set_request(uri='/login', post=vars.LOGIN_ALICE, -- cgit v1.2.3-65-gdbad