skillfed

oslotest

Oslo test framework

oslotest v6.1.1 98.5K downloads/30d#13,078 on PyPI
Permissive license Active released

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 oslotest

uv

uv add oslotest

poetry

poetry add oslotest

Installing 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

Environment :: OpenStackIntended Audience :: DevelopersIntended Audience :: Information TechnologyLicense :: OSI Approved :: Apache Software LicenseOperating System :: POSIX :: LinuxProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: Implementation :: CPythonTyping :: Typed

Tags

openstack testing frameworktest fixtures and utilitiesoslo testing librarypython test frameworkmocking and debugging supportopenstack unit testingtesttools extension
openstacktesting-frameworkfixtures

More Testing packages