Commit 5ec3d83d by Adam

Merge pull request #10226 from edx/adam/skip-test-if-third-party-auth-not-installed

skip LTIConfig test when third_party_auth is not installed
parents 387d4f6a 9a79bf2e
...@@ -2,7 +2,9 @@ ...@@ -2,7 +2,9 @@
Tests for third_party_auth decorators. Tests for third_party_auth decorators.
""" """
import ddt import ddt
import unittest
from django.conf import settings
from django.http import HttpResponse from django.http import HttpResponse
from django.test import RequestFactory from django.test import RequestFactory
...@@ -16,6 +18,11 @@ def mock_view(_request): ...@@ -16,6 +18,11 @@ def mock_view(_request):
return HttpResponse() 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 @ddt.ddt
class TestXFrameWhitelistDecorator(TestCase): class TestXFrameWhitelistDecorator(TestCase):
""" Test the xframe_allow_whitelisted decorator. """ """ Test the xframe_allow_whitelisted decorator. """
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment