Skip to content

Commit 4302d9d

Browse files
committed
Adjust for new return type from backend.add_test_case_to_run()
see kiwitcms/Kiwi@c503286
1 parent d71bd68 commit 4302d9d

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

zealand/listener.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -189,17 +189,17 @@ def end_test(self, name, attrs): # pylint: disable=unused-argument
189189
test_case_id = test_case['id']
190190

191191
self.backend.add_test_case_to_plan(test_case_id, self.backend.plan_id)
192-
test_execution_id = self.backend.add_test_case_to_run(
193-
test_case_id,
194-
self.backend.run_id)
195-
196192
comment = attrs['message'] or \
197193
'Result recorded via kiwitcms-robotframework-plugin'
198194
status_id = self.backend.get_status_id(attrs['status'])
199195

200-
self.backend.update_test_execution(test_execution_id,
201-
status_id,
202-
comment)
196+
for execution in self.backend.add_test_case_to_run(
197+
test_case_id,
198+
self.backend.run_id,
199+
):
200+
self.backend.update_test_execution(execution["id"],
201+
status_id,
202+
comment)
203203

204204
def end_suite(self, name, attrs): # pylint: disable=unused-argument
205205
"""

0 commit comments

Comments
 (0)