Skip to content

Instantly share code, notes, and snippets.

@bminard
Last active November 2, 2015 02:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bminard/d844369b48c4b30722c3 to your computer and use it in GitHub Desktop.
Save bminard/d844369b48c4b30722c3 to your computer and use it in GitHub Desktop.
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