oslotest
Oslo test framework
What it is and what it does
oslotest is a testing framework maintained by the OpenStack project that extends testtools and fixtures to provide a common foundation for test suites. It offers pre-built test base classes, fixtures for common setup patterns, and utilities for debugging and mocking that reduce boilerplate in test code.
The package is designed primarily for OpenStack development but can be adopted in any Python project that uses testtools. It requires Python 3.10 or later and has no compiled dependencies, making installation straightforward. The framework integrates with standard Python testing workflows and is actively maintained.
Use it for:
- Building test suites for OpenStack projects with standardized fixtures and base classes.
- Extending testtools with OpenStack-specific debugging and mocking utilities in existing test code.
- Setting up unit tests that require common fixture patterns without writing boilerplate setup.
- Debugging test failures with enhanced logging and introspection support from the Oslo framework.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
oslotest provides a testing framework with common fixtures and utilities for OpenStack projects, built on top of testtools and fixtures to streamline test setup and mocking.
Yes, if you are working on OpenStack projects or need testtools-based testing with pre-built fixtures. The low install friction, active maintenance, permissive license, and lack of security issues make it a safe choice. For non-OpenStack Python projects, evaluate whether the framework's design assumptions align with your testing strategy before adopting.
Install
oslotest on PyPI
pip
pip install oslotestuv
uv add oslotestpoetry
poetry add oslotestInstalling oslotest
Before you install
Low install friction with a pure-Python wheel distribution. Actively maintained as of 116 days ago with current Python support (3.10–3.13). Only two runtime dependencies (fixtures and testtools), both lightweight testing libraries.
License in practice
Licensed under Apache (permissive), allowing use in commercial and private projects with minimal restrictions.
Quickstart
pip install oslotest
from oslotest import base
class MyTest(base.BaseTestCase):
def test_example(self):
self.assertEqual(1, 1)
Requires Python 3.10 or later.
Verify before relying
- Whether oslotest is suitable for non-OpenStack projects or if it is tightly coupled to OpenStack infrastructure.
- The scope and maturity of the mocking and debugging features relative to standard unittest or pytest plugins.
Package facts
| License | not declared (permissive) |
| Python support | supports the current Python release (>=3.10) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 2 — fixtures, testtools |
| Maintenance | actively maintained — 116 days since the last release |
| First released | |
| Downloads | 98,513/month — #13,078 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: oslotest-6.1.1-py3-none-any.whl
Tags
More Testing packages
Pluggy provides a plugin system that lets you…
permissive · top 100 on PyPI
pytestpytest is a testing framework that lets you…
permissive · top 100 on PyPI
virtualenvvirtualenv creates isolated Python environments…
permissive · top 100 on PyPI
coverageCoverage.py measures which lines of Python code…
permissive · top 1,000 on PyPI
pytest-asynciopytest-asyncio is a pytest plugin that enables…
permissive · top 1,000 on PyPI
pytest-json-ctrfA pytest plugin that generates test reports in…
permissive · top 1,000 on PyPI
os-testros-testr wraps the testr test runner to provide…
permissive · top 15,000 on PyPI
oslo.vmwareoslo.vmware provides a library for common…
permissive · top 15,000 on PyPI
oslo.utilsoslo.utils provides common utility functions…
permissive · top 5,000 on PyPI
oslo.reportsoslo.reports generates structured debug reports…
permissive · top 15,000 on PyPI
oslo.logoslo.log provides standardized logging…
permissive · top 5,000 on PyPI
oslo.configParses command-line arguments and .ini-style…
permissive · top 5,000 on PyPI
testtoolstesttools extends Python's standard unittest…
permissive · top 5,000 on PyPI
oslo.dboslo.db provides database connectivity and ORM…
permissive · top 15,000 on PyPI
oslo.serviceoslo.service provides a framework for building…
permissive · top 15,000 on PyPI
neutron-libNeutron-lib provides shared routines,…
permissive · top 15,000 on PyPI