Fix pep8 that broken marvin build 10 days ago :(

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
This commit is contained in:
Prasanna Santhanam 2013-07-25 22:59:21 +05:30
parent 74df662037
commit 8e72a728b7
5 changed files with 13 additions and 13 deletions

View File

@ -17,6 +17,7 @@
import unittest
def user(Name, DomainName, AcctType):
def wrapper(cls):
orig_init = cls.__init__

View File

@ -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)

View File

@ -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

View File

@ -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,

View File

@ -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" +