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
"""Get the next step path for the current depth."""
@@ -191,24 +198,28 @@ class NewStep(AbstractContextManager):
191
198
192
199
report_context: ReportContext
193
200
client: SiftClient
201
+
assertion_as_fail_not_error: bool=True
194
202
current_step: TestStep|None=None
195
203
196
204
def__init__(
197
205
self,
198
206
report_context: ReportContext,
199
207
name: str,
200
208
description: str|None=None,
209
+
assertion_as_fail_not_error: bool=True,
201
210
):
202
211
"""Initialize a new step context.
203
212
204
213
Args:
205
214
report_context: The report context to create the step in.
206
215
name: The name of the step.
207
216
description: The description of the step.
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