Last active
November 2, 2015 02:13
-
-
Save bminard/d844369b48c4b30722c3 to your computer and use it in GitHub Desktop.
Pytest Decorator
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def decorator(func): | |
def _decorator(): | |
func() | |
return _decorator | |
def pytest_namespace(): | |
return { | |
'decorator': decorator | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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