TestSlide
A test framework for Python that makes mocking and iterating over code with tests a breeze
Decision gist · record as of 2026-08-14
Yes, if you're on Linux and willing to handle source distribution installation. TestSlide is actively maintained, MIT licensed, and well-suited for teams practicing TDD or BDD who want strict mock validation integrated into unittest. The high install friction is a minor concern given recent repository activity and lack of known vulnerabilities.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Linux and Python 3; source distribution may require build tools.
- Installation friction is high due to source distribution only.
- The package is actively maintained with recent commits and has been in production since 2018, though the last release was over a year ago.
License · maintenance · safety
MIT (permissive) — MIT license is permissive; you can use, modify, and distribute TestSlide freely in commercial and open-source projects with minimal restrictions.
last release 2023-03-16 (1247 days) · last repo commit 2026-08-04 · 148 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 166,372 downloads/mo, #10,496 on PyPI
Alternatives
Verify before relying
pip install TestSlide
import testslide
class TestExample(testslide.TestCase):
def test_with_mock(self):
mock = testslide.StrictMock()
self.mock_callable(mock, 'method').to_return_value(True)- Whether high install friction reflects build dependencies or packaging constraints not detailed in the fact sheet
- Whether the gap between last release and recent commits indicates development stalling or stable maintenance
What it is and what it does
TestSlide is a testing framework that layers strict mocking onto Python's unittest.TestCase, letting you write unit, TDD, and BDD tests with detailed validation. Its core feature is StrictMock—a mock object that validates both the calls made to it and the values passed in, catching bugs when code is first written and when it changes later. You can mock constructors and callables, set expected behavior, and get failure messages that guide you toward the fix. The framework works with existing unittest code without requiring refactoring, or you can use TestSlide's own test runner for a fresh start.
The package has no runtime dependencies and is actively maintained. It requires Linux and Python 3, and is distributed as a source tarball, which means installation may require build tools on your system. It has been in production use since 2018 and is MIT licensed.
Use it for
- Write unit tests with strict mocks that validate both method calls and argument values to catch regressions early
- Mock constructors in integration tests to replace real clients with controlled test doubles
- Adopt TDD or BDD workflows in existing unittest codebases without rewriting test infrastructure
- Iterate quickly on code changes knowing that mock failure messages will guide you toward the correct implementation
- Validate that your code calls external dependencies with the exact arguments and frequency expected
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you're on Linux and willing to handle source distribution installation.
TestSlide is actively maintained, MIT licensed, and well-suited for teams practicing TDD or BDD who want strict mock validation integrated into unittest. The high install friction is a minor concern given recent repository activity and lack of known vulnerabilities.
Install
testslide on PyPI
Before you install
Installation friction is high due to source distribution only. The package is actively maintained with recent commits and has been in production since 2018, though the last release was over a year ago.
Requires Linux and Python 3; source distribution may require build tools.
License in practice
MIT license is permissive; you can use, modify, and distribute TestSlide freely in commercial and open-source projects with minimal restrictions.
Quickstart
pip install TestSlide
import testslide
class TestExample(testslide.TestCase):
def test_with_mock(self):
mock = testslide.StrictMock()
self.mock_callable(mock, 'method').to_return_value(True)
Verify before relying
- Whether high install friction reflects build dependencies or packaging constraints not detailed in the fact sheet
- Whether the gap between last release and recent commits indicates development stalling or stable maintenance
Package facts
| License | MIT permissive |
| Python support | Not specified |
| Install friction | High. Source build required |
| Runtime dependencies | None |
| Maintenance | Actively maintained 1,247 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 166,372 / month, #10,496 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/StableIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseOperating System :: POSIX :: LinuxProgramming Language :: Python :: 3Topic :: Software Development :: TestingTopic :: Software Development :: Testing :: AcceptanceTopic :: Software Development :: Testing :: BDDTopic :: Software Development :: Testing :: MockingTopic :: Software Development :: Testing :: Unit |
Evidence: TestSlide-2.7.1.tar.gz
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 › “unittest with strict mocks”
- TestSlideTestSlide is a test framework for Python that provides strict mocks…
- flake8-mock-specA flake8 plugin that enforces the use of the spec or spec_set…
- asynctestExtends Python's unittest module with test utilities and mocks…
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 asserts · flexmock · databricks-test · behave · expects · asynctest · tdd-guard-pytest · behave-django · radish-bdd · testpath