diff options
author | SerenaFeng <feng.xiaowei@zte.com.cn> | 2018-03-07 11:00:15 +0800 |
---|---|---|
committer | SerenaFeng <feng.xiaowei@zte.com.cn> | 2018-03-07 12:50:28 +0800 |
commit | 9e8fc209687d84385addba81329ef478e19f8368 (patch) | |
tree | 4a98a2bd99264a4349f6daabe09bef92bee5fd5f /testapi/opnfv_testapi/tests/unit | |
parent | 8d3328530fce2b9f97f26d4f1752addc45cf4411 (diff) |
add too long line check in pep8
Change-Id: I13bd62699c14bb504751b2e1149de0812b771ba0
Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
Diffstat (limited to 'testapi/opnfv_testapi/tests/unit')
4 files changed, 15 insertions, 8 deletions
diff --git a/testapi/opnfv_testapi/tests/unit/handlers/test_pod.py b/testapi/opnfv_testapi/tests/unit/handlers/test_pod.py index 28d29b5..3a16799 100644 --- a/testapi/opnfv_testapi/tests/unit/handlers/test_pod.py +++ b/testapi/opnfv_testapi/tests/unit/handlers/test_pod.py @@ -112,8 +112,9 @@ class TestPodDelete(TestPodBase): super(TestPodDelete, self).setUp() fake_pymongo.pods.insert(self.pod_d.format()) fake_pymongo.projects.insert({'name': self.results_d.project_name}) - fake_pymongo.testcases.insert({'name': self.results_d.case_name, - 'project_name': self.results_d.project_name}) + fake_pymongo.testcases.insert({ + 'name': self.results_d.case_name, + 'project_name': self.results_d.project_name}) @executor.delete(httplib.BAD_REQUEST, message.not_login()) def test_notlogin(self): diff --git a/testapi/opnfv_testapi/tests/unit/handlers/test_project.py b/testapi/opnfv_testapi/tests/unit/handlers/test_project.py index 884dd68..5903507 100644 --- a/testapi/opnfv_testapi/tests/unit/handlers/test_project.py +++ b/testapi/opnfv_testapi/tests/unit/handlers/test_project.py @@ -156,7 +156,9 @@ class TestProjectUpdate(TestProjectBase): @executor.mock_valid_lfid() @executor.update(httplib.UNAUTHORIZED, message.tied_with_resource()) def test_updateNotAllowed(self): - self.create_help('/api/v1/projects/%s/cases', self.testcase_d, self.req_d.name) + self.create_help('/api/v1/projects/%s/cases', + self.testcase_d, + self.req_d.name) req = project_models.ProjectUpdateRequest('apex', 'apex test') return req, self.req_d.name @@ -191,7 +193,9 @@ class TestProjectDelete(TestProjectBase): @executor.mock_valid_lfid() @executor.delete(httplib.UNAUTHORIZED, message.tied_with_resource()) def test_deleteNotAllowed(self): - self.create_help('/api/v1/projects/%s/cases', self.testcase_d, self.req_d.name) + self.create_help('/api/v1/projects/%s/cases', + self.testcase_d, + self.req_d.name) return self.req_d.name @executor.mock_valid_lfid() diff --git a/testapi/opnfv_testapi/tests/unit/handlers/test_result.py b/testapi/opnfv_testapi/tests/unit/handlers/test_result.py index c07d792..892256a 100644 --- a/testapi/opnfv_testapi/tests/unit/handlers/test_result.py +++ b/testapi/opnfv_testapi/tests/unit/handlers/test_result.py @@ -33,8 +33,9 @@ class TestResultBase(base.TestBase): self.basePath = '/api/v1/results' fake_pymongo.pods.insert({'name': self.req_d.pod_name}) fake_pymongo.projects.insert({'name': self.req_d.project_name}) - fake_pymongo.testcases.insert({'name': self.req_d.case_name, - 'project_name': self.req_d.project_name}) + fake_pymongo.testcases.insert({ + 'name': self.req_d.case_name, + 'project_name': self.req_d.project_name}) def assert_res(self, result, req=None): if req is None: diff --git a/testapi/opnfv_testapi/tests/unit/handlers/test_testcase.py b/testapi/opnfv_testapi/tests/unit/handlers/test_testcase.py index 78f3ab1..97325e2 100644 --- a/testapi/opnfv_testapi/tests/unit/handlers/test_testcase.py +++ b/testapi/opnfv_testapi/tests/unit/handlers/test_testcase.py @@ -181,8 +181,9 @@ class TestCaseDelete(TestCaseBase): self.create_d() fake_pymongo.pods.insert(self.pod_d.format()) fake_pymongo.projects.insert({'name': self.results_d.project_name}) - fake_pymongo.testcases.insert({'name': self.results_d.case_name, - 'project_name': self.results_d.project_name}) + fake_pymongo.testcases.insert({ + 'name': self.results_d.case_name, + 'project_name': self.results_d.project_name}) @executor.delete(httplib.NOT_FOUND, message.not_found_base) def test_notFound(self): |