Fix vfc-gvnfm-vnfmgr pep8 E128 issue. 17/14817/4
authorying.yunlong <ying.yunlong@zte.com.cn>
Sat, 23 Sep 2017 06:31:37 +0000 (14:31 +0800)
committeryunlong ying <ying.yunlong@zte.com.cn>
Sat, 23 Sep 2017 07:14:50 +0000 (07:14 +0000)
Change-Id: I7249fbd9986f69639a5f68ec739f9f7ff2f7c917
Issue-ID: VFC-443
Signed-off-by: ying.yunlong <ying.yunlong@zte.com.cn>
mgr/mgr/vnfreg/tests.py
mgr/tox.ini

index 6d95081..cfebaf5 100644 (file)
@@ -128,7 +128,7 @@ class VnfRegTest(unittest.TestCase):
     def test_set_vnf_normal(self):
         self.client.post("/api/vnfmgr/v1/vnfs", self.vnfInst1, format='json')
         response = self.client.put("/api/vnfmgr/v1/vnfs/1",
-            json.dumps(self.vnfInst1_new), content_type='application/json')
+                                   json.dumps(self.vnfInst1_new), content_type='application/json')
         self.assertEqual(status.HTTP_202_ACCEPTED, response.status_code, response.content)
         vnfs = VnfRegModel.objects.filter()
         self.assertEqual(1, len(vnfs))
@@ -143,7 +143,7 @@ class VnfRegTest(unittest.TestCase):
 
     def test_set_vnf_when_not_exist(self):
         response = self.client.put("/api/vnfmgr/v1/vnfs/1",
-            json.dumps(self.vnfInst1_new), content_type='application/json')
+                                   json.dumps(self.vnfInst1_new), content_type='application/json')
         self.assertEqual(status.HTTP_404_NOT_FOUND, response.status_code, response.content)
         self.assertEqual({'error': "Vnf(1) does not exist."}, json.loads(response.content))
 
index 7cd3add..7b38c30 100644 (file)
@@ -6,7 +6,7 @@ skipsdist = true
 downloadcache = ~/cache/pip
 
 [flake8]
-ignore =  E501,E128
+ignore =  E501
 
 [testenv]
 deps = -r{toxinidir}/requirements.txt