Skip to content

Commit daee3bd

Browse files
committed
Register the dependency marker, fix #5.
1 parent ee9dad8 commit daee3bd

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pytest_dependency.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,10 @@ def pytest_configure(config):
117117
global _automark, _ignore_unknown
118118
_automark = _get_bool(config.getini("automark_dependency"))
119119
_ignore_unknown = config.getoption("--ignore-unknown-dependency")
120+
config.addinivalue_line("markers",
121+
"dependency(name=None, depends=[]): "
122+
"mark a test to be used as a dependency for "
123+
"other tests or to depend on other tests.")
120124

121125

122126
@pytest.hookimpl(tryfirst=True, hookwrapper=True)

0 commit comments

Comments
 (0)