summaryrefslogtreecommitdiffstats
path: root/CI
diff options
context:
space:
mode:
authorjose.lausuch <jose.lausuch@ericsson.com>2016-04-20 16:03:44 +0200
committerjose.lausuch <jose.lausuch@ericsson.com>2016-04-21 00:01:59 +0200
commitef62824e0471d07a4a3a40c401fc433070d961c6 (patch)
tree6d1bd61e7d49446ba1b1a52bb9978e1c5b88173c /CI
parent3a85a34474a9d7a9384f22bce35e7b81177830e3 (diff)
Fix Flake8 Violations in the Functest scripts
JIRA: FUNCTEST-213 Change-Id: I66c02dd6ff12ffb9798ebe44a4cfe7bfc73e76c3 Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
Diffstat (limited to 'CI')
-rw-r--r--CI/tier_manager.py37
1 files changed, 19 insertions, 18 deletions
diff --git a/CI/tier_manager.py b/CI/tier_manager.py
index f13bca1f6..cd1512319 100644
--- a/CI/tier_manager.py
+++ b/CI/tier_manager.py
@@ -7,6 +7,7 @@
# http://www.apache.org/licenses/LICENSE-2.0
#
+
class Tier:
def __init__(self, name, description, order):
self.tests_array = []
@@ -14,8 +15,7 @@ class Tier:
self.description = description
self.order = order
-
- def add_test(self,testcase):
+ def add_test(self, testcase):
self.tests_array.append(testcase)
def get_tests(self):
@@ -25,11 +25,11 @@ class Tier:
return array_str
def __str__(self):
- return "Tier info:\n"+\
- "\tName: " + self.name + "\n" +\
- "\tDescription: " + self.description + "\n" +\
- "\tOrder: " + self.order + "\n" +\
- "\tTest cases: " + str(self.get_tests()) + "\n"
+ return "Tier info:\n" + \
+ "\tName: " + self.name + "\n" + \
+ "\tDescription: " + self.description + "\n" + \
+ "\tOrder: " + self.order + "\n" + \
+ "\tTest cases: " + str(self.get_tests()) + "\n"
class Testcase:
@@ -39,10 +39,11 @@ class Testcase:
self.dependency = dependency
def __str__(self):
- return "Testcase info:\n"+\
- "\tName: " + self.name + "\n" +\
- "\tDescription: " + self.description + "\n" +\
- "\tDependencies: " + str(self.dependency) + "\n"
+ return "Testcase info:\n" + \
+ "\tName: " + self.name + "\n" + \
+ "\tName: " + self.name + "\n" + \
+ "\tDescription: " + self.description + "\n" + \
+ "\tDependencies: " + str(self.dependency) + "\n"
class Dependency:
@@ -53,10 +54,10 @@ class Dependency:
self.mode = mode
def __str__(self):
- return "Dependency info:\n"+\
- "\t" + self.installer + " os-[" + self.sdn + "]-[" + \
- self.feature + "]-[" + self.mode + "]" + "\n" +\
- "\t\t- installer: " + self.installer + "\n" +\
- "\t\t- sdn Controller: " + self.sdn + "\n" +\
- "\t\t- feature: " + self.feature + "\n" +\
- "\t\t- mode: " + self.mode + "\n"
+ return "Dependency info:\n" + \
+ "\t" + self.installer + " os-[" + self.sdn + "]-[" + \
+ self.feature + "]-[" + self.mode + "]" + "\n" + \
+ "\t\t- installer: " + self.installer + "\n" + \
+ "\t\t- sdn Controller: " + self.sdn + "\n" + \
+ "\t\t- feature: " + self.feature + "\n" + \
+ "\t\t- mode: " + self.mode + "\n"