From 6609f38fa2b0d19c69ed0d5d195151d6e763fad5 Mon Sep 17 00:00:00 2001 From: Joachim Jablon Date: Wed, 29 Nov 2017 12:53:29 +0100 Subject: [PATCH] Fix import of social_core.exceptions in sso/pipeline.py Signed-off-by: Joachim Jablon --- awx/sso/pipeline.py | 2 +- awx/sso/tests/unit/test_pipeline.py | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 awx/sso/tests/unit/test_pipeline.py diff --git a/awx/sso/pipeline.py b/awx/sso/pipeline.py index 2a16eb25b0..d96e9b3147 100644 --- a/awx/sso/pipeline.py +++ b/awx/sso/pipeline.py @@ -5,7 +5,7 @@ import re # Python Social Auth -from social.exceptions import AuthException +from social_core.exceptions import AuthException # Django from django.utils.translation import ugettext_lazy as _ diff --git a/awx/sso/tests/unit/test_pipeline.py b/awx/sso/tests/unit/test_pipeline.py new file mode 100644 index 0000000000..8e1dd4e92f --- /dev/null +++ b/awx/sso/tests/unit/test_pipeline.py @@ -0,0 +1,2 @@ +def test_module_loads(): + from awx.sso import pipeline # noqa