From 9a79bf2ec901d87cfacb305233c763d7371cd1c5 Mon Sep 17 00:00:00 2001 From: Adam Palay Date: Fri, 16 Oct 2015 12:22:54 -0400 Subject: [PATCH] skip LTIConfig test when third_party_auth is not installed --- .../djangoapps/third_party_auth/tests/test_decorators.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/common/djangoapps/third_party_auth/tests/test_decorators.py b/common/djangoapps/third_party_auth/tests/test_decorators.py index 7259523f44..9c6982238b 100644 --- a/common/djangoapps/third_party_auth/tests/test_decorators.py +++ b/common/djangoapps/third_party_auth/tests/test_decorators.py @@ -2,7 +2,9 @@ Tests for third_party_auth decorators. """ import ddt +import unittest +from django.conf import settings from django.http import HttpResponse from django.test import RequestFactory @@ -16,6 +18,11 @@ def mock_view(_request): return HttpResponse() +# remove this decorator once third_party_auth is enabled in CMS +@unittest.skipIf( + 'third_party_auth' not in settings.INSTALLED_APPS, + 'third_party_auth is not currently installed in CMS' +) @ddt.ddt class TestXFrameWhitelistDecorator(TestCase): """ Test the xframe_allow_whitelisted decorator. """