Created
March 9, 2020 11:52
-
-
Save lucrib/f688ca67b252b9ea82d3932325562e84 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@pytest.fixture | |
def step(): | |
from allure_commons import plugin_manager | |
hook = plugin_manager.hook | |
def report_step(title): | |
_uuid = uuid4() | |
hook.start_step(uuid=_uuid, title=title, params={}) | |
hook.stop_step(uuid=_uuid, title=title, exc_type=None, exc_val=None, exc_tb=None) | |
return report_step |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment