Fixed old style class declaration
Change-Id: Ifc2f61146dd77c4c287c0adbf5410b51d564accf Closes-bug: #1392771
This commit is contained in:
@@ -177,7 +177,7 @@ def register_config(config, config_group, config_opts):
|
||||
|
||||
|
||||
@singleton
|
||||
class ITConfig:
|
||||
class ITConfig(object):
|
||||
def __init__(self):
|
||||
config = 'itest.conf'
|
||||
config_files = []
|
||||
|
||||
@@ -35,18 +35,18 @@ FAKE_ENV2 = {'OS_USERNAME': 'username',
|
||||
'OS_AUTH_URL': 'http://no.where'}
|
||||
|
||||
|
||||
class FakePlugin:
|
||||
class FakePlugin(object):
|
||||
name = 'fake'
|
||||
versions = ['1.0', ]
|
||||
title = 'a fake plugin'
|
||||
|
||||
|
||||
class FakePluginManager:
|
||||
class FakePluginManager(object):
|
||||
def list(self):
|
||||
return (FakePlugin(),)
|
||||
|
||||
|
||||
class FakeImage:
|
||||
class FakeImage(object):
|
||||
name = 'fake'
|
||||
id = 'aaa-bb-ccc'
|
||||
username = 'you'
|
||||
@@ -54,12 +54,12 @@ class FakeImage:
|
||||
tags = []
|
||||
|
||||
|
||||
class FakeImageManager:
|
||||
class FakeImageManager(object):
|
||||
def list(self):
|
||||
return (FakeImage(),)
|
||||
|
||||
|
||||
class FakePluginClient:
|
||||
class FakePluginClient(object):
|
||||
def __init__(self, *args, **kwargs):
|
||||
self.plugins = FakePluginManager()
|
||||
self.images = FakeImageManager()
|
||||
|
||||
Reference in New Issue
Block a user