File tree Expand file tree Collapse file tree 3 files changed +19
-0
lines changed Expand file tree Collapse file tree 3 files changed +19
-0
lines changed Original file line number Diff line number Diff line change 1
1
History of changes to pytest-dependency
2
2
=======================================
3
3
4
+ * Version 0.4 (not yet released)
5
+
6
+ ** Bug fixes and minor changes
7
+
8
+ + Issue #5: properly register the dependency marker.
9
+
10
+ + Do not add the documentation to the source distribution.
11
+
4
12
* Version 0.3.1 (2017-12-26)
5
13
6
14
** Bug fixes and minor changes
Original file line number Diff line number Diff line change @@ -117,6 +117,10 @@ def pytest_configure(config):
117
117
global _automark , _ignore_unknown
118
118
_automark = _get_bool (config .getini ("automark_dependency" ))
119
119
_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." )
120
124
121
125
122
126
@pytest .hookimpl (tryfirst = True , hookwrapper = True )
Original file line number Diff line number Diff line change 4
4
import pytest
5
5
6
6
7
+ def test_marker_registered (ctestdir ):
8
+ result = ctestdir .runpytest ("--markers" )
9
+ result .stdout .fnmatch_lines ("""
10
+ @pytest.mark.dependency*
11
+ """ )
12
+
13
+
7
14
def test_marker (ctestdir ):
8
15
ctestdir .makepyfile ("""
9
16
import pytest
You can’t perform that action at this time.
0 commit comments