From 7a13dabbedff1184c12e3e4f5cf56545f1d01397 Mon Sep 17 00:00:00 2001 From: Kanagaraj Manickam Date: Tue, 20 Oct 2020 07:34:42 +0530 Subject: Fix the format issues Issue-ID: DOVETAIL-801 Signed-off-by: Kanagaraj Manickam Change-Id: Id0058788d8d2d8fb8a1fa0a7c43fc3c1731d73df --- opnfv_testapi/resources/result_handlers.py | 4 ++-- opnfv_testapi/resources/test_handlers.py | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) (limited to 'opnfv_testapi/resources') diff --git a/opnfv_testapi/resources/result_handlers.py b/opnfv_testapi/resources/result_handlers.py index df8b988..7a0c10d 100644 --- a/opnfv_testapi/resources/result_handlers.py +++ b/opnfv_testapi/resources/result_handlers.py @@ -382,7 +382,7 @@ class ResultsGURHandler(GenericResultHandler): db_keys = [] self._update(query=query, db_keys=db_keys) -#Api for results upload + class ResultsFileUploadHandler(ResultsCLHandler): @swagger.operation(nickname="uploadTestResult") @web.asynchronous @@ -402,7 +402,7 @@ class ResultsFileUploadHandler(ResultsCLHandler): token = mc.get("token") input_token = self.request.headers._dict['Token'] if not token or not input_token == token: - raises.Unauthorized(message.invalid_token()) + raises.Unauthorized(message.invalid_token()) file_array = self.request.files.get('file', None) if file_array is None: msg = 'Please upload a file.' diff --git a/opnfv_testapi/resources/test_handlers.py b/opnfv_testapi/resources/test_handlers.py index 1dbc4cd..ed2a303 100644 --- a/opnfv_testapi/resources/test_handlers.py +++ b/opnfv_testapi/resources/test_handlers.py @@ -361,7 +361,8 @@ class TestsGURHandler(GenericTestHandler): logging.debug('not found') raise gen.Return((False, message.no_auth())) raise gen.Return((True, {})) -#updated new test appi + + class TestsUploadDataHandler(GenericTestHandler): @swagger.operation(nickname="queryTests") @web.asynchronous -- cgit 1.2.3-korg