Skip to content

Instantly share code, notes, and snippets.

@lucrib
Created March 9, 2020 11:52
Show Gist options
  • Save lucrib/f688ca67b252b9ea82d3932325562e84 to your computer and use it in GitHub Desktop.
Save lucrib/f688ca67b252b9ea82d3932325562e84 to your computer and use it in GitHub Desktop.
@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