Skip to content

Commit c48a4ea

Browse files
authored
Merge pull request #173 from rplevka/child_item_kwargs
parse optional retry parameter when starting a new child test item
2 parents ae94f52 + 624dea3 commit c48a4ea

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

reportportal_client/service.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -349,6 +349,7 @@ def start_test_item(self,
349349
"hasStats": has_stats,
350350
"codeRef": code_ref,
351351
"testCaseId": test_case_id,
352+
"retry": kwargs.get('retry', False)
352353
}
353354
if parent_item_id:
354355
url = uri_join(self.base_url_v2, "item", parent_item_id)

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
aenum
2+
delayed_assert
23
requests>=2.23.0
34
six>=1.15.0

tests/test_service.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,8 @@ def test_start_item(self, rp_service):
252252
'type': 'STORY', 'parameters': None,
253253
'hasStats': True,
254254
'codeRef': None,
255-
'testCaseId': None},
255+
'testCaseId': None,
256+
'retry': False},
256257
url='http://endpoint/api/v2/project/item',
257258
verify=True)
258259

@@ -297,7 +298,8 @@ def test_start_item_code_optional_params(self, rp_service, field_name,
297298
'type': 'STORY', 'parameters': None,
298299
'hasStats': True,
299300
'codeRef': None,
300-
'testCaseId': None},
301+
'testCaseId': None,
302+
'retry': False},
301303
url='http://endpoint/api/v2/project/item',
302304
verify=True)
303305
expected_result['json'][expected_name] = expected_value

0 commit comments

Comments
 (0)