Refactor vfc-nfvo-catalog swagger api 17/13717/1
authorfujinhua <fu.jinhua@zte.com.cn>
Wed, 20 Sep 2017 06:44:58 +0000 (14:44 +0800)
committerfujinhua <fu.jinhua@zte.com.cn>
Wed, 20 Sep 2017 06:44:58 +0000 (14:44 +0800)
Remove useless codes

Change-Id: I3dfe36863266150dcaded578d1c505d1dc792045
Issue-Id: VFC-397
Signed-off-by: fujinhua <fu.jinhua@zte.com.cn>
catalog/swagger/tests.py
catalog/swagger/views.py

index 0664adb..9cb305c 100644 (file)
@@ -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)
index 2258a66..33d0edb 100644 (file)
 # 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):