Skip to content

Instantly share code, notes, and snippets.

@bminard bminard/conftest.py

Last active Nov 2, 2015
Embed
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
You can’t perform that action at this time.