diff options
author | 2018-10-04 12:42:16 +0300 | |
---|---|---|
committer | 2018-10-04 12:42:16 +0300 | |
commit | c05e2986e658d9892c9d65203a1e2a785c68bf27 (patch) | |
tree | 329e16bee025b4db9f9f43ad143b1aca776d7bd8 /opnfv_testapi/resources/handlers.py | |
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 'opnfv_testapi/resources/handlers.py')
-rw-r--r-- | opnfv_testapi/resources/handlers.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/opnfv_testapi/resources/handlers.py b/opnfv_testapi/resources/handlers.py index 9b156e1..e8c81f3 100644 --- a/opnfv_testapi/resources/handlers.py +++ b/opnfv_testapi/resources/handlers.py @@ -55,7 +55,7 @@ class GenericApiHandler(web.RequestHandler): def get_int(self, key, value): try: value = int(value) - except: + except Exception: raises.BadRequest(message.must_int(key)) return value @@ -327,5 +327,5 @@ class VersionHandler(GenericApiHandler): @description: list all supported versions @rtype: L{Versions} """ - versions = [{'version': 'api.cvp.0.7.0', 'description': 'basics'}] + versions = [{'version': 'v1.0', 'description': 'basics'}] self.finish_request({'versions': versions}) |