How to use the allure-python-commons.src._allure.StepContext function in allure-python-commons

To help you get started, we’ve selected a few allure-python-commons examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github allure-framework / allure-python / allure-python-commons / src / _allure.py View on Github external
def impl(*a, **kw):
            __tracebackhide__ = True
            params = func_parameters(func, *a, **kw)
            args = list(map(lambda x: represent(x), a))
            with StepContext(self.title.format(*args, **params), params):
                return func(*a, **kw)
        return impl
github allure-framework / allure-python / allure-python-commons / src / _allure.py View on Github external
def step(title):
    if callable(title):
        return StepContext(title.__name__, {})(title)
    else:
        return StepContext(title, {})
github allure-framework / allure-python / allure-python-commons / src / _allure.py View on Github external
def step(title):
    if callable(title):
        return StepContext(title.__name__, {})(title)
    else:
        return StepContext(title, {})