summaryrefslogtreecommitdiffstats
path: root/dovetail/testcase.py
diff options
context:
space:
mode:
authorStamatis Katsaounis <mokats@intracom-telecom.com>2018-11-15 15:42:50 +0200
committerStamatis Katsaounis <mokats@intracom-telecom.com>2018-11-15 15:42:50 +0200
commit815b74f9440275682c701aa75006f01c1ff7860c (patch)
treea8431ff3da71c3e26593257140323671855a446e /dovetail/testcase.py
parent4ef204b5156b31bc2beae614765d53d9dcf5ea16 (diff)
Add missing unit tests for testcase file
JIRA: DOVETAIL-724 This patch adds unit tests for Tescases classes methods of Dovetail which were missing. Change-Id: Ie1b665249ce8afaa76b59b0dbe7f132e404a5569 Signed-off-by: Stamatis Katsaounis <mokats@intracom-telecom.com>
Diffstat (limited to 'dovetail/testcase.py')
-rw-r--r--dovetail/testcase.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/dovetail/testcase.py b/dovetail/testcase.py
index 33f14a97..ada5df82 100644
--- a/dovetail/testcase.py
+++ b/dovetail/testcase.py
@@ -42,7 +42,6 @@ class Testcase(object):
cmd_lines = Parser.parse_cmd(cmd, self)
if not cmd_lines:
return False
- # self.logger.debug('cmd_lines:%s', cmd_lines)
self.cmds.append(cmd_lines)
self.logger.debug('cmds: {}'.format(self.cmds))
return True
@@ -193,7 +192,7 @@ class Testcase(object):
@classmethod
def load(cls):
abs_testcase_path = constants.TESTCASE_PATH
- for root, dirs, files in os.walk(abs_testcase_path):
+ for root, _, files in os.walk(abs_testcase_path):
for testcase_file in files:
with open(os.path.join(root, testcase_file)) as f:
testcase_yaml = yaml.safe_load(f)