mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
Fix pep8 that broken marvin build 10 days ago :(
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
This commit is contained in:
parent
74df662037
commit
8e72a728b7
@ -17,6 +17,7 @@
|
||||
|
||||
import unittest
|
||||
|
||||
|
||||
def user(Name, DomainName, AcctType):
|
||||
def wrapper(cls):
|
||||
orig_init = cls.__init__
|
||||
|
||||
@ -198,4 +198,4 @@ class cloudstackTestClient(object):
|
||||
if self.asyncJobMgr is None:
|
||||
self.asyncJobMgr = asyncJobMgr.asyncJobMgr(self.apiClient,
|
||||
self.dbConnection)
|
||||
self.asyncJobMgr.submitJobs(jobs, nums_threads, interval)
|
||||
self.asyncJobMgr.submitJobs(jobs, nums_threads, interval)
|
||||
|
||||
@ -196,15 +196,15 @@ class codeGenerator(object):
|
||||
body += 'return CloudStackAPIClient(copy.copy(self.connection))\n'
|
||||
body += self.newline
|
||||
|
||||
# The `id` property will be used to link the test with the cloud resource being created #
|
||||
# @property
|
||||
# def id(self):
|
||||
# return self._id
|
||||
#
|
||||
# @id.setter
|
||||
# def id(self, identifier):
|
||||
# self._id = identifier
|
||||
|
||||
# The `id` property will be used to link the test with the cloud
|
||||
# resource being created
|
||||
# @property
|
||||
# def id(self):
|
||||
# return self._id
|
||||
#
|
||||
# @id.setter
|
||||
# def id(self, identifier):
|
||||
# self._id = identifier
|
||||
|
||||
body += self.space + '@property' + self.newline
|
||||
body += self.space + 'def id(self):' + self.newline
|
||||
|
||||
@ -159,7 +159,8 @@ specify a valid config file" % cfgFile)
|
||||
secondarycmd.provider = secondary.provider
|
||||
secondarycmd.details = []
|
||||
|
||||
if secondarycmd.provider == 'S3' or secondarycmd.provider == "Swift":
|
||||
if secondarycmd.provider == 'S3' \
|
||||
or secondarycmd.provider == "Swift":
|
||||
for key, value in vars(secondary.details).iteritems():
|
||||
secondarycmd.details.append({
|
||||
'key': key,
|
||||
|
||||
@ -137,8 +137,6 @@ class MarvinPlugin(Plugin):
|
||||
def _injectClients(self, test):
|
||||
testcaselogger = logging.getLogger("testclient.testcase.%s" %
|
||||
test.__name__)
|
||||
|
||||
|
||||
self.debug_stream. \
|
||||
setFormatter(logging.
|
||||
Formatter("%(asctime)s - %(levelname)s - %(name)s" +
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user