Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Pytest Decorator
def decorator(func):
def _decorator():
func()
return _decorator
def pytest_namespace():
return {
'decorator': decorator
}
import pytest
@pytest.decorator
def test_decorator():
pass
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment