Open danielhoherd opened 2 months ago
Context manager for allure.step() does not allow assigning a variable name, which would be useful.
allure.step()
I'd like it if this worked:
with allure.step('foo') as s: print(s.title)
I expected that to work because this does work:
s = allure.step('foo') print(s.title)
Having this named context manager would keep very simple code DRY.
I'm submitting a ...
What is the current behavior?
Context manager for
allure.step()
does not allow assigning a variable name, which would be useful.What is the expected behavior?
I'd like it if this worked:
I expected that to work because this does work:
What is the motivation / use case for changing the behavior?
Having this named context manager would keep very simple code DRY.
Please tell us about your environment: