From ee6381a0ba46766bda9b0ac3844274b8472fc01e Mon Sep 17 00:00:00 2001 From: "ying.yunlong" Date: Sat, 23 Sep 2017 14:31:37 +0800 Subject: [PATCH] Fix vfc-gvnfm-vnfmgr pep8 E128 issue. Change-Id: I7249fbd9986f69639a5f68ec739f9f7ff2f7c917 Issue-ID: VFC-443 Signed-off-by: ying.yunlong --- mgr/mgr/vnfreg/tests.py | 4 ++-- mgr/tox.ini | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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 -- 2.16.6