NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
PyPI · #2670 most downloaded on PyPI
Manage dependencies of tests
Last release 7 months ago
15 Feb 2026
Release timing varies
gaps range from 3 weeks to 3.9 years
Nearly every release is documented
notes for 10 of 10 stable releases
Nothing withdrawn
no release was ever pulled
10 years old
10 releases · first in 2017
Fixes in the build tool chain
Fixes in the build tool chain
.. _#39: https://github.com/RKrahl/pytest-dependency/issues/39 .. _#40: https://github.com/RKrahl/pytest-dependency/issues/40 .. _#41: https://github.
One column per quarter.
Fix failing documentation build.
Fix failing documentation build.
Require pytest version 3.7.0 or newer.
Require pytest version 3.6.0 or newer. This implicitly drops support for Python 2.6 and for Python 3.3 and older.
Require pytest version 3.6.0 or newer. This implicitly drops support for Python 2.6 and for Python 3.3 and older.
Do not add the documentation to the source distribution.
#5: properly register the dependency marker.
Do not add the documentation to the source distribution.
Some improvements in the documentation.
#17: Move the online documentation to Read the Docs.
Some improvements in the documentation.
Prepend the class name to the default test name for test class methods. This fixes a potential name conflict, see #6_.
#7: Add a configuration switch to implicitly mark all tests.
#10: Add an option to ignore unknown dependencies.
Prepend the class name to the default test name for test class methods. This fixes a potential name conflict, see #6.
If your code uses test classes and you reference test methods by their default name, you must add the class name. E.g. if you have something like:
class TestClass(object):
@pytest.mark.dependency()
def test_a():
pass
@pytest.mark.dependency(depends=["test_a"])
def test_b():
pass
you need to change this to:
class TestClass(object):
@pytest.mark.dependency()
def test_a():
pass
@pytest.mark.dependency(depends=["TestClass::test_a"])
def test_b():
pass
If you override the test name in the pytest.mark.dependency marker, nothing need to be changed.
#11: show the name of the skipped test. (Thanks asteriogonzalez!)
#13: Do not import pytest in setup.py to make it compatible with pipenv.
#15: tests fail with pytest 3.3.0.
#8: document incompatibility with parallelization in pytest-xdist.
Clarify in the documentation that Python 3.1 is not officially supported because pytest 2.8 does not support it. There is no known issue with Python 3.1 though.
.. _#4: https://github.com/RKrahl/pytest-dependency/issues/4 .. _#2: https://github.com/RKrahl/pytest-dependency/issues/2
Initial release as an independent Python module.
Initial release as an independent Python module.
This code was first developed as part of a larger package, python-icat, at Helmholtz-Zentrum Berlin für Materialien und Energie.
Your coding agent can read these notes before it upgrades. Set up the MCP server →