Skip to content

Commit 99cc9e3

Browse files
committed
New arguments for plugin_helpers.Backend.update_test_execution()
now accepts the start_date/stop_date arguments at the end of it's signature. This is required to support accurately reporting test execution timestamps. Refs kiwitcms/Kiwi#3112
1 parent c232f05 commit 99cc9e3

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

tcms_api/plugin_helpers.py

+10-1
Original file line numberDiff line numberDiff line change
@@ -549,10 +549,13 @@ def add_test_case_to_run(self, case_id, run_id):
549549
result = [result]
550550
return result
551551

552+
# pylint: disable=too-many-arguments
552553
def update_test_execution(self,
553554
test_execution_id,
554555
status_id,
555-
comment=None):
556+
comment=None,
557+
start_date=None,
558+
stop_date=None):
556559
"""
557560
Update TestExecution with a status and comment.
558561
@@ -567,10 +570,16 @@ def update_test_execution(self,
567570
:type status_id: int
568571
:param comment: the string to add as a comment, defaults to None
569572
:type comment: str
573+
:param start_date: when execution began, default None
574+
:type start_date: datetime
575+
:param stop_date: when execution completed, default None
576+
:type stop_date: datetime
570577
:return: None
571578
"""
572579
args = {
573580
'status': status_id,
581+
'start_date': start_date,
582+
'stop_date': stop_date,
574583
}
575584
if self.default_tester_id:
576585
args['tested_by'] = self.default_tester_id

0 commit comments

Comments
 (0)