pytest-depends
Tests that depend on other tests
Decision gist · record as of 2026-08-14
No. The package is abandoned (last release 2020-04-05, no recent commits), and compatibility with modern pytest and Python versions is unverified. While the concept is useful for specific scenarios, the lack of maintenance and unknown breakage risk make it unsuitable for new projects.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Low install friction with a pure-Python wheel.
- However, the package is abandoned—last release was 2020-04-05 with no recent maintenance.
License · maintenance · safety
MIT (permissive) — MIT license (permissive). You can use, modify, and distribute this package freely with minimal restrictions.
last release 2020-04-05 (2322 days)
0 known vulnerabilities (OSV.dev, 2026-08-14) · 155,474 downloads/mo, #10,813 on PyPI
Alternatives
Verify before relying
pip install pytest-depends
import pytest
@pytest.mark.depends(on=['test_build_exists'])
def test_build_version():
pass- Whether the plugin remains compatible with current pytest versions given the 2020 release date
- Whether test reordering conflicts with modern pytest plugins remain unresolved
- Compatibility with Python versions beyond 3.8 listed in classifiers
What it is and what it does
pytest-depends is a pytest plugin that lets you declare which tests depend on other tests passing, automatically skipping dependent tests if their prerequisites fail. Rather than treating tests as independent units, it recognizes scenarios where running a test makes no sense if an earlier test failed—for instance, if a build artifact doesn't exist, there's no point testing its version. The plugin reorders tests to run dependencies first and marks dependent tests as skipped if their prerequisites don't succeed.
The package depends on pytest, colorama, networkx, and future-fstrings. You declare dependencies using pytest markers with custom names or auto-generated test identifiers, and the plugin handles the rest.
Use it for
- Skip integration tests when a prerequisite setup test fails, avoiding cascading failures in slow test suites
- Avoid running tests on a build artifact when an earlier test confirms the artifact doesn't exist
- Reduce test runtime by skipping tests that cannot possibly pass given earlier failures
- Organize test execution around logical prerequisites without duplicating setup logic
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
No.
The package is abandoned (last release 2020-04-05, no recent commits), and compatibility with modern pytest and Python versions is unverified. While the concept is useful for specific scenarios, the lack of maintenance and unknown breakage risk make it unsuitable for new projects.
Install
pytest-depends on PyPI
Before you install
Low install friction with a pure-Python wheel. However, the package is abandoned—last release was 2020-04-05 with no recent maintenance.
License in practice
MIT license (permissive). You can use, modify, and distribute this package freely with minimal restrictions.
Quickstart
pip install pytest-depends
import pytest
@pytest.mark.depends(on=['test_build_exists'])
def test_build_version():
pass
Verify before relying
- Whether the plugin remains compatible with current pytest versions given the 2020 release date
- Whether test reordering conflicts with modern pytest plugins remain unresolved
- Compatibility with Python versions beyond 3.8 listed in classifiers
Package facts
| License | MIT permissive |
| Python support | Not specified |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 4 packagescoloramafuture-fstringsnetworkxpytest |
| Maintenance | Abandoned 2,322 days since the last release |
| First released | |
| Downloads | 155,474 / month, #10,813 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableFramework :: PytestIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 2Programming Language :: Python :: 2.7Programming Language :: Python :: 3Programming Language :: Python :: 3.4Programming Language :: Python :: 3.5Programming Language :: Python :: 3.6Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: Implementation :: CPythonProgramming Language :: Python :: Implementation :: PyPyTopic :: Software Development :: Testing |
Evidence: pytest_depends-1.0.1-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “pytest test dependencies”
- pytest-dependsA pytest plugin that lets you declare dependencies between tests,…
- pytest-dependencyA pytest plugin that marks tests as dependent on other tests,…
- pytest-random-orderA pytest plugin that randomizes the order in which tests run, helping…
Give your agent the search over MCP, or paste the wish link into any chat.
More Testing packages
Pluggy provides a plugin system that lets you define hook specifications and register implementations to be called in sequence, enabling extensible Python applications without tight coupling.
Install it if you're building an extensible application or framework.
pytest is a testing framework that lets you write test functions using plain assert statements and automatically discovers and runs them, with detailed failure reporting.
virtualenv creates isolated Python environments where packages can be installed independently without affecting the system Python or other projects.
Coverage.py measures which lines of Python code are executed during test runs, reporting coverage percentages and identifying untested code paths.
Install it if you want to measure test completeness or enforce coverage thresholds in your project.
pytest-asyncio is a pytest plugin that enables writing and running async test functions using the asyncio library, allowing developers to await code directly within test cases.
Install it if you write tests for any asyncio-based code.
A pytest plugin that generates test reports in Common Test Report Format (CTRF) as JSON, compatible with pytest-xdist and pytest-playwright for distributed and browser-based testing.
Install it if you need CTRF-formatted test output for CI/CD integration or cross-tool reporting.
See also pytest-dependency · pytest-skip-markers · pytest-reverse · pytest-loop · pytest-repeat · robotframework-dependencylibrary · pytest-find-dependencies · pytest-subprocess · pytest-logger · pytest-randomly