We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 807c177 commit 1d52839Copy full SHA for 1d52839
pytest_dependency.py
@@ -108,11 +108,15 @@ def pytest_addoption(parser):
108
parser.addini("automark_dependency",
109
"Add the dependency marker to all tests automatically",
110
default=False)
111
+ parser.addoption("--ignore-unknown-dependency",
112
+ action="store_true", default=False,
113
+ help="ignore dependencies whose outcome is not known")
114
115
116
def pytest_configure(config):
- global _automark
117
+ global _automark, _ignore_unknown
118
_automark = _get_bool(config.getini("automark_dependency"))
119
+ _ignore_unknown = config.getoption("--ignore-unknown-dependency")
120
121
122
@pytest.hookimpl(tryfirst=True, hookwrapper=True)
0 commit comments