diff options
author | fujinhua <fu.jinhua@zte.com.cn> | 2017-09-20 14:44:58 +0800 |
---|---|---|
committer | fujinhua <fu.jinhua@zte.com.cn> | 2017-09-20 14:44:58 +0800 |
commit | 6634834e1432219c96f5f1c5372b19361199bcf8 (patch) | |
tree | 97fa29db7fa65ed9a92650d02601a721153355c0 | |
parent | 09c5744e04f0e84c71fb6295d166abb3824b81de (diff) |
Refactor vfc-nfvo-catalog swagger api
Remove useless codes
Change-Id: I3dfe36863266150dcaded578d1c505d1dc792045
Issue-Id: VFC-397
Signed-off-by: fujinhua <fu.jinhua@zte.com.cn>
-rw-r--r-- | catalog/swagger/tests.py | 2 | ||||
-rw-r--r-- | catalog/swagger/views.py | 3 |
2 files changed, 0 insertions, 5 deletions
diff --git a/catalog/swagger/tests.py b/catalog/swagger/tests.py index 0664adb8..9cb305cf 100644 --- a/catalog/swagger/tests.py +++ b/catalog/swagger/tests.py @@ -25,5 +25,3 @@ class SampleViewTest(unittest.TestCase): def test_sample(self): response = self.client.get("/api/catalog/v1/swagger.json") self.assertEqual(status.HTTP_200_OK, response.status_code, response.content) -# resp_data = json.loads(response.content) -# self.assertEqual({"status": "active"}, resp_data) diff --git a/catalog/swagger/views.py b/catalog/swagger/views.py index 2258a663..33d0edbe 100644 --- a/catalog/swagger/views.py +++ b/catalog/swagger/views.py @@ -13,14 +13,11 @@ # limitations under the License. import json -import logging import os from rest_framework.response import Response from rest_framework.views import APIView -logger = logging.getLogger(__name__) - class SwaggerJsonView(APIView): def get(self, request): |