aboutsummaryrefslogtreecommitdiffstats
path: root/functest/ci/tier_handler.py
diff options
context:
space:
mode:
authorCedric Ollivier <cedric.ollivier@orange.com>2017-12-18 07:34:44 +0000
committerGerrit Code Review <gerrit@opnfv.org>2017-12-18 07:34:44 +0000
commit62d12c838b7c008462b7c45731290c385ed98bff (patch)
tree52e628d3d68cca0acb07b6a57b2ee9168c151a8c /functest/ci/tier_handler.py
parentfc0d8c601ce627d5f7b8c5e3eef73bd01c6db7d4 (diff)
parent3f29dd2f11e3bb847fce5ac56060758d6076e8e7 (diff)
Merge "Improve the pylint score of functest-core"
Diffstat (limited to 'functest/ci/tier_handler.py')
-rw-r--r--functest/ci/tier_handler.py14
1 files changed, 6 insertions, 8 deletions
diff --git a/functest/ci/tier_handler.py b/functest/ci/tier_handler.py
index dd3e77ce..9fc3f24d 100644
--- a/functest/ci/tier_handler.py
+++ b/functest/ci/tier_handler.py
@@ -7,6 +7,8 @@
# which accompanies this distribution, and is available at
# http://www.apache.org/licenses/LICENSE-2.0
+"""Tier and TestCase classes to wrap the testcases config file"""
+# pylint: disable=missing-docstring
import re
import textwrap
@@ -100,13 +102,9 @@ class Tier(object):
class TestCase(object):
- def __init__(self, name,
- enabled,
- dependency,
- criteria,
- blocking,
- description="",
- project=""):
+ def __init__(self, name, enabled, dependency, criteria, blocking,
+ description="", project=""):
+ # pylint: disable=too-many-arguments
self.name = name
self.enabled = enabled
self.dependency = dependency
@@ -117,7 +115,7 @@ class TestCase(object):
@staticmethod
def is_none(item):
- return item is None or item is ""
+ return item is None or item == ""
def is_compatible(self, ci_installer, ci_scenario):
try: