Import only modules and update tox.ini
As stated in the OpenStack Hacking Guidelines, it is prefered that only modules should be imported. Also updated tox.ini to ignore opestack/common among others. Change-Id: I2f0a603c31052eadee581c11880c0ec6bd392829
This commit is contained in:
@@ -19,7 +19,7 @@ import six
|
||||
import six.moves.urllib.parse as urlparse
|
||||
import testtools
|
||||
|
||||
from glanceclient.v2.schemas import Schema
|
||||
from glanceclient.v2 import schemas
|
||||
|
||||
|
||||
class FakeAPI(object):
|
||||
@@ -68,7 +68,7 @@ class FakeAPI(object):
|
||||
class FakeSchemaAPI(FakeAPI):
|
||||
def get(self, *args, **kwargs):
|
||||
_, raw_schema = self._request('GET', *args, **kwargs)
|
||||
return Schema(raw_schema)
|
||||
return schemas.Schema(raw_schema)
|
||||
|
||||
|
||||
class RawRequest(object):
|
||||
|
||||
Reference in New Issue
Block a user