Merge "Make tests in test_hrefs, test_quota py3 compatible"

This commit is contained in:
Jenkins 2015-08-31 15:29:28 +00:00 committed by Gerrit Code Review
commit cb48973afd
3 changed files with 5 additions and 10 deletions

View File

@ -17,18 +17,11 @@
Barbican exception subclasses
"""
import urlparse
from barbican import i18n as u
_FATAL_EXCEPTION_FORMAT_ERRORS = False
class RedirectException(Exception):
def __init__(self, url):
self.url = urlparse.urlparse(url)
class BarbicanException(Exception):
"""Base Barbican Exception

View File

@ -17,12 +17,12 @@ import functools
from os import path
import time
import types
import urlparse
import uuid
import mock
import oslotest.base as oslotest
import six
from six.moves.urllib import parse
import webtest
from OpenSSL import crypto
@ -408,7 +408,7 @@ def create_timestamp_w_tz_and_offset(timezone=None, days=0, hours=0, minutes=0,
def get_limit_and_offset_from_ref(ref):
matches = dict(urlparse.parse_qsl(urlparse.urlparse(ref).query))
matches = dict(parse.parse_qsl(parse.urlparse(ref).query))
ref_limit = matches['limit']
ref_offset = matches['offset']

View File

@ -27,7 +27,9 @@ deps = -r{toxinidir}/requirements.txt
commands =
python -m testtools.run \
barbican.tests.common.test_utils
barbican.tests.common.test_utils \
barbican.tests.common.test_hrefs \
barbican.tests.common.test_quota
[testenv:pep8]
sitepackages = False