aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorxray7224 <xray7224@googlemail.com>2013-07-14 17:31:03 +0100
committerxray7224 <xray7224@googlemail.com>2013-07-14 17:31:03 +0100
commit670717d950c4bb5ef908c23e46df4016b5dc2bd2 (patch)
tree0f7a9c2470ef983a694f9d72f50b4ae2bda2440b
parentcfe7054c13880657fdcb95068a734554ff847cea (diff)
parentdf206ab633ef369c89d27321823daf140a5ff6f4 (diff)
downloadmediagoblin-670717d950c4bb5ef908c23e46df4016b5dc2bd2.tar.lz
mediagoblin-670717d950c4bb5ef908c23e46df4016b5dc2bd2.tar.xz
mediagoblin-670717d950c4bb5ef908c23e46df4016b5dc2bd2.zip
Merge branch 'master' of git://gitorious.org/mediagoblin/mediagoblin
-rw-r--r--mediagoblin/tests/test_openid.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/mediagoblin/tests/test_openid.py b/mediagoblin/tests/test_openid.py
index bba46db8..23a2290e 100644
--- a/mediagoblin/tests/test_openid.py
+++ b/mediagoblin/tests/test_openid.py
@@ -13,12 +13,14 @@
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
import urlparse
import pkg_resources
import pytest
import mock
-from openid.consumer.consumer import SuccessResponse
+openid_consumer = pytest.importorskip(
+ "openid.consumer.consumer")
from mediagoblin import mg_globals
from mediagoblin.db.base import Session
@@ -27,7 +29,6 @@ from mediagoblin.plugins.openid.models import OpenIDUserURL
from mediagoblin.tests.tools import get_app, fixture_add_user
from mediagoblin.tools import template
-
# App with plugin enabled
@pytest.fixture()
def openid_plugin_app(request):
@@ -41,7 +42,7 @@ def openid_plugin_app(request):
class TestOpenIDPlugin(object):
def _setup(self, openid_plugin_app, value=True, edit=False, delete=False):
if value:
- response = SuccessResponse(mock.Mock(), mock.Mock())
+ response = openid_consumer.SuccessResponse(mock.Mock(), mock.Mock())
if edit or delete:
response.identity_url = u'http://add.myopenid.com'
else: