You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -195,28 +198,28 @@ class NewStep(AbstractContextManager):
195
198
196
199
report_context: ReportContext
197
200
client: SiftClient
198
-
show_assertion_errors: bool=True
201
+
assertion_as_fail_not_error: bool=True
199
202
current_step: TestStep|None=None
200
203
201
204
def__init__(
202
205
self,
203
206
report_context: ReportContext,
204
207
name: str,
205
208
description: str|None=None,
206
-
show_assertion_errors: bool=True,
209
+
assertion_as_fail_not_error: bool=True,
207
210
):
208
211
"""Initialize a new step context.
209
212
210
213
Args:
211
214
report_context: The report context to create the step in.
212
215
name: The name of the step.
213
216
description: The description of the step.
214
-
show_assertion_errors: Whether to show assertion errors in the step (exists because users don't want to see them when using pytest).
217
+
assertion_as_fail_not_error: Mark steps with assertion errors as failed instead of error+traceback (some users want assertions to work as simple failures especially when using pytest).
0 commit comments