diff options
author | ying.yunlong <ying.yunlong@zte.com.cn> | 2017-09-23 14:31:37 +0800 |
---|---|---|
committer | yunlong ying <ying.yunlong@zte.com.cn> | 2017-09-23 07:14:50 +0000 |
commit | ee6381a0ba46766bda9b0ac3844274b8472fc01e (patch) | |
tree | daf95340a466364f212871bf83e12ed92795edd5 /mgr | |
parent | eafb3ea2dc0ace4f5dc007994330ad12e939b13a (diff) |
Fix vfc-gvnfm-vnfmgr pep8 E128 issue.
Change-Id: I7249fbd9986f69639a5f68ec739f9f7ff2f7c917
Issue-ID: VFC-443
Signed-off-by: ying.yunlong <ying.yunlong@zte.com.cn>
Diffstat (limited to 'mgr')
-rw-r--r-- | mgr/mgr/vnfreg/tests.py | 4 | ||||
-rw-r--r-- | 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 |