diff options
author | Stamatis Katsaounis <mokats@intracom-telecom.com> | 2018-10-04 12:42:16 +0300 |
---|---|---|
committer | Stamatis Katsaounis <mokats@intracom-telecom.com> | 2018-10-04 12:42:16 +0300 |
commit | c05e2986e658d9892c9d65203a1e2a785c68bf27 (patch) | |
tree | 329e16bee025b4db9f9f43ad143b1aca776d7bd8 /utils | |
parent | 19724cbcef2508f97ddcc7fdef7e7bb44288634c (diff) |
Revive unit tests and flake8 of webportal
JIRA: DOVETAIL-742
This patch revives unit test and flake8 tests of webportal. In
addition, it fixes errors and enables handling of some uris which
were forgotten.
Change-Id: I8225c7ca08a3c97b6e77f00490defc91046a2dd6
Signed-off-by: Stamatis Katsaounis <mokats@intracom-telecom.com>
Diffstat (limited to 'utils')
-rwxr-xr-x | utils/generate-testcase-list/generate-testcases-list.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/utils/generate-testcase-list/generate-testcases-list.py b/utils/generate-testcase-list/generate-testcases-list.py index 5bfaa2f..b7b78cf 100755 --- a/utils/generate-testcase-list/generate-testcases-list.py +++ b/utils/generate-testcase-list/generate-testcases-list.py @@ -35,13 +35,13 @@ class TestcaseList: except IOError: error = 'Testsuite definition file not found: "{}"'.\ format(self.testsuite) - print error + print(error) os.sys.exit(-1) except yaml.scanner.ScannerError: error = 'Reading test suite definition failed. ' \ 'Not a valid yaml file: "{}"'. \ format(self.testsuite) - print error + print(error) os.sys.exit(-1) return testsuite_data @@ -59,7 +59,7 @@ class TestcaseList: error = 'Reading test case definition failed.' \ 'Not a valid yaml file: "{}"'. \ format(file_path) - print error + print(error) os.sys.exit(-1) return testcases @@ -91,8 +91,8 @@ class TestcaseList: total_per_area += tc['total'] testcase_list[area][name] = tc - print "Total number of test cases in area {}: {}".format( - area, total_per_area) + print("Total number of test cases in area {}: {}".format( + area, total_per_area)) output_file = os.path.join(self.output_dir, 'testcases.json') with open(output_file, 'w') as file: |