Skip to content

Commit e3a70b7

Browse files
author
Gonchik Tsymzhitov
committed
Bump version and polish
1 parent 7665275 commit e3a70b7

File tree

6 files changed

+18
-17
lines changed

6 files changed

+18
-17
lines changed

atlassian/VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.17.5
1+
1.17.6

atlassian/bitbucket.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class Bitbucket(AtlassianRestAPI):
1212

1313
def __init__(self, url, *args, **kwargs):
1414
if (not 'cloud' in kwargs
15-
and ('bitbucket.org' in url) ):
15+
and ('bitbucket.org' in url)):
1616
kwargs['cloud'] = True
1717
super(Bitbucket, self).__init__(url, *args, **kwargs)
1818

atlassian/confluence.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,12 @@ class Confluence(AtlassianRestAPI):
3232

3333
def __init__(self, url, *args, **kwargs):
3434
if (('atlassian.net' in url or 'jira.com' in url)
35-
and ('/wiki' not in url) ):
35+
and ('/wiki' not in url)):
3636
url = AtlassianRestAPI.url_joiner(url, '/wiki')
3737
if not 'cloud' in kwargs:
3838
kwargs['cloud'] = True
3939
super(Confluence, self).__init__(url, *args, **kwargs)
4040

41-
4241
@staticmethod
4342
def _create_body(body, representation):
4443
if representation not in ['editor', 'export_view', 'view', 'storage', 'wiki']:

atlassian/jira.py

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,8 @@ def get_comment_property(self, comment_id, property_key):
307307
:param property_key: str
308308
:return:
309309
"""
310-
url = 'rest/api/2/comment/{commentId}/properties/{propertyKey}'.format(commentId=comment_id, propertyKey=property_key)
310+
url = 'rest/api/2/comment/{commentId}/properties/{propertyKey}'.format(commentId=comment_id,
311+
propertyKey=property_key)
311312
return self.get(url, data=data)
312313

313314
def set_comment_property(self, comment_id, property_key, value_property):
@@ -318,7 +319,8 @@ def set_comment_property(self, comment_id, property_key, value_property):
318319
:param value_property: object
319320
:return:
320321
"""
321-
url = 'rest/api/2/comment/{commentId}/properties/{propertyKey}'.format(commentId=comment_id, propertyKey=property_key)
322+
url = 'rest/api/2/comment/{commentId}/properties/{propertyKey}'.format(commentId=comment_id,
323+
propertyKey=property_key)
322324
data = {'value': value_property}
323325
return self.put(url, data=data)
324326

@@ -329,7 +331,8 @@ def delete_comment_property(self, comment_id, property_key):
329331
:param property_key: str
330332
:return:
331333
"""
332-
url = 'rest/api/2/comment/{commentId}/properties/{propertyKey}'.format(commentId=comment_id, propertyKey=property_key)
334+
url = 'rest/api/2/comment/{commentId}/properties/{propertyKey}'.format(commentId=comment_id,
335+
propertyKey=property_key)
333336
return self.delete(url)
334337

335338
#######################################################################################################
@@ -1082,10 +1085,10 @@ def get_updated_worklogs(self, since, expand=None):
10821085
url = 'rest/api/3/worklog/updated'
10831086
params = {}
10841087
if since:
1085-
params['since'] = str(int(since*1000))
1088+
params['since'] = str(int(since * 1000))
10861089
if expand:
10871090
params['expand'] = expand
1088-
1091+
10891092
return self.get(url, params=params)
10901093

10911094
def get_worklogs(self, ids, expand=None):
@@ -1392,7 +1395,7 @@ def create_project_from_raw_json(self, json):
13921395
:param json:
13931396
:return:
13941397
"""
1395-
return self.post(json=json)
1398+
return self.post('rest/api/2/project', json=json)
13961399

13971400
def delete_project(self, key):
13981401
"""
@@ -1438,7 +1441,8 @@ def get_project_versions(self, key, expand=None):
14381441
params['expand'] = expand
14391442
return self.get('rest/api/2/project/{}/versions'.format(key), params=params)
14401443

1441-
def get_project_versions_paginated(self, key, start=None, limit=None, order_by=None, expand=None, query=None, status=None):
1444+
def get_project_versions_paginated(self, key, start=None, limit=None, order_by=None, expand=None, query=None,
1445+
status=None):
14421446
"""
14431447
Returns all versions for the specified project. Results are paginated.
14441448
Results can be ordered by the following fields:
@@ -1789,7 +1793,7 @@ def get_all_time_tracking_providers(self):
17891793
"""
17901794
Returns all time tracking providers. By default, Jira only has one time tracking provider: JIRA provided time tracking. However, you can install other time tracking providers via apps from the Atlassian Marketplace.
17911795
"""
1792-
1796+
17931797
url = 'rest/api/3/configuration/timetracking/list'
17941798
return self.get(url)
17951799

@@ -1805,7 +1809,7 @@ def get_time_tracking_settings(self):
18051809
"""
18061810
Returns the time tracking settings. This includes settings such as the time format, default time unit, and others.
18071811
"""
1808-
1812+
18091813
url = 'rest/api/3/configuration/timetracking/options'
18101814
return self.get(url)
18111815

@@ -2126,7 +2130,6 @@ def get_workflows_paginated(self, startAt=None, maxResults=None, workflowName=No
21262130

21272131
return self.get(url, params=params)
21282132

2129-
21302133
def get_all_statuses(self):
21312134
"""
21322135
Returns a list of all statuses

atlassian/rest_client.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,6 @@ def put(self, path, data=None, headers=None, files=None, trailing=None, params=N
224224
return response
225225
return self._response_handler(response)
226226

227-
228227
def delete(self, path, data=None, headers=None, params=None, trailing=None):
229228
"""
230229
Deletes resources at given paths.

atlassian/xray.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def get_test_preconditions(self, test_key):
5959
"""
6060
url = 'rest/raven/1.0/api/test/{0}/preconditions'.format(test_key)
6161
return self.get(url)
62-
62+
6363
def get_test_sets(self, test_key):
6464
"""
6565
Retrieve test sets associated with a test.
@@ -368,7 +368,7 @@ def update_test_run_status(self, test_run_id, status):
368368
update = {'status': status}
369369
url = 'rest/raven/1.0/api/testrun/{0}'.format(test_run_id)
370370
return self.put(url, update)
371-
371+
372372
def get_test_run_defects(self, test_run_id):
373373
"""
374374
Retrieve the defects for the given test run.

0 commit comments

Comments
 (0)