From: ying.yunlong Date: Sat, 23 Sep 2017 06:31:37 +0000 (+0800) Subject: Fix vfc-gvnfm-vnfmgr pep8 E128 issue. X-Git-Tag: v1.0.0~4 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=ee6381a0ba46766bda9b0ac3844274b8472fc01e;p=vfc%2Fgvnfm%2Fvnfmgr.git Fix vfc-gvnfm-vnfmgr pep8 E128 issue. Change-Id: I7249fbd9986f69639a5f68ec739f9f7ff2f7c917 Issue-ID: VFC-443 Signed-off-by: ying.yunlong --- diff --git a/mgr/mgr/vnfreg/tests.py b/mgr/mgr/vnfreg/tests.py index 6d95081..cfebaf5 100644 --- a/mgr/mgr/vnfreg/tests.py +++ b/mgr/mgr/vnfreg/tests.py @@ -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)) diff --git a/mgr/tox.ini b/mgr/tox.ini index 7cd3add..7b38c30 100644 --- a/mgr/tox.ini +++ b/mgr/tox.ini @@ -6,7 +6,7 @@ skipsdist = true downloadcache = ~/cache/pip [flake8] -ignore = E501,E128 +ignore = E501 [testenv] deps = -r{toxinidir}/requirements.txt