From bf9ac26a06c10bae8c8f8fbe80a5411556b558fc Mon Sep 17 00:00:00 2001 From: Carson Gee Date: Mon, 25 Nov 2013 14:17:42 -0500 Subject: [PATCH] Corrected CMS tests so that one is passing, added external_auth to cms apps Several pylint fixes and bad super call --- cms/envs/common.py | 3 +++ .../external_auth/tests/test_ssl.py | 27 ++++++++++--------- common/djangoapps/external_auth/views.py | 2 +- 3 files changed, 19 insertions(+), 13 deletions(-) diff --git a/cms/envs/common.py b/cms/envs/common.py index 8e2788a86a..5d0e56a4d1 100644 --- a/cms/envs/common.py +++ b/cms/envs/common.py @@ -385,6 +385,9 @@ INSTALLED_APPS = ( 'student', # misleading name due to sharing with lms 'course_groups', # not used in cms (yet), but tests run + # External auth (OpenID, shib, SSL) + 'external_auth', + # Tracking 'track', 'eventtracking.django', diff --git a/common/djangoapps/external_auth/tests/test_ssl.py b/common/djangoapps/external_auth/tests/test_ssl.py index f933784d4c..8d6438a41b 100644 --- a/common/djangoapps/external_auth/tests/test_ssl.py +++ b/common/djangoapps/external_auth/tests/test_ssl.py @@ -45,7 +45,7 @@ class SSLClientTest(TestCase): def setUp(self): """Setup test case by adding primary user.""" - super(TestCase, self).setUp() + super(SSLClientTest, self).setUp() self.client = Client() self.factory = RequestFactory() @@ -62,7 +62,7 @@ class SSLClientTest(TestCase): # auth should not have a user self.assertIn('