Skip to content

Commit c3b8494

Browse files
committed
[Issue 5] Pylint fixes: reduce length of lines for cloud AutomationEndpoints
1 parent 873faaa commit c3b8494

File tree

1 file changed

+28
-5
lines changed

1 file changed

+28
-5
lines changed

zephyr/scale/cloud/endpoints/automations.py

Lines changed: 28 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,13 @@ class AutomationEndpoints:
99
def __init__(self, session: ZephyrSession):
1010
self.session = session
1111

12-
def _post_reports(self, path, project_key, file_path, auto_create=False, test_cycle=None, **kwargs):
12+
def _post_reports(self,
13+
path,
14+
project_key,
15+
file_path,
16+
auto_create=False,
17+
test_cycle=None,
18+
**kwargs):
1319
"""
1420
Post various reports logic.
1521
@@ -20,19 +26,26 @@ def _post_reports(self, path, project_key, file_path, auto_create=False, test_cy
2026
:param test_cycle: dict with test cycle description data
2127
"""
2228
params = {'projectKey': project_key}
29+
to_files = None
2330

2431
if auto_create:
2532
params.update({'autoCreateTestCases': True})
2633

27-
to_files = {'testCycle': (None, dumps(test_cycle), 'application/json')} if test_cycle else None
34+
if test_cycle:
35+
to_files = {'testCycle': (None, dumps(test_cycle), 'application/json')}
2836

2937
return self.session.post_file(path,
3038
file_path,
3139
to_files=to_files,
3240
params=params,
3341
**kwargs)
3442

35-
def post_custom_format(self, project_key, file_path, auto_create=False, test_cycle=None, **kwargs):
43+
def post_custom_format(self,
44+
project_key,
45+
file_path,
46+
auto_create=False,
47+
test_cycle=None,
48+
**kwargs):
3649
"""
3750
Create results using Zephyr Scale's custom results format.
3851
@@ -48,7 +61,12 @@ def post_custom_format(self, project_key, file_path, auto_create=False, test_cyc
4861
test_cycle=test_cycle,
4962
**kwargs)
5063

51-
def post_cucumber_format(self, project_key, file_path, auto_create=False, test_cycle=None, **kwargs):
64+
def post_cucumber_format(self,
65+
project_key,
66+
file_path,
67+
auto_create=False,
68+
test_cycle=None,
69+
**kwargs):
5270
"""
5371
Create results using the Cucumber results format.
5472
@@ -64,7 +82,12 @@ def post_cucumber_format(self, project_key, file_path, auto_create=False, test_c
6482
test_cycle=test_cycle,
6583
**kwargs)
6684

67-
def post_junit_xml_format(self, project_key, file_path, auto_create=False, test_cycle=None, **kwargs):
85+
def post_junit_xml_format(self,
86+
project_key,
87+
file_path,
88+
auto_create=False,
89+
test_cycle=None,
90+
**kwargs):
6891
"""
6992
Create results using the JUnit XML results format.
7093

0 commit comments

Comments
 (0)