Skip to content

Commit 0941b51

Browse files
committed
format
1 parent 9b16a60 commit 0941b51

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

python/lib/sift_client/util/test_results/pytest_util.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -172,10 +172,7 @@ def _finalize_after_teardown(item: pytest.Item, teardown_report: pytest.TestRepo
172172
if step is None:
173173
return
174174
assert step.current_step is not None
175-
if (
176-
teardown_report.outcome == "failed"
177-
and step.current_step.status == TestStatus.PASSED
178-
):
175+
if teardown_report.outcome == "failed" and step.current_step.status == TestStatus.PASSED:
179176
step.current_step.update({"status": TestStatus.FAILED})
180177
step.report_context.mark_step_failed_after_close(step.current_step)
181178

@@ -282,7 +279,7 @@ def _step_impl(
282279
name=name, description=existing_docstring, assertion_as_fail_not_error=False
283280
) as new_step:
284281
if phase_aware:
285-
setattr(request.node, "_sift_step", new_step)
282+
request.node._sift_step = new_step
286283
yield new_step
287284
if phase_aware:
288285
_resolve_initial_status(new_step, request.node)

0 commit comments

Comments
 (0)