Skip to content

v0.2.0

Latest

Choose a tag to compare

@mpasternak mpasternak released this 08 May 12:18
· 6 commits to main since this release

Added

  • New [redis] install extra so redis_enabled = true works without a separate pip install redis (testcontainers.redis imports the Python redis client at module load).
  • ReuseStaleContainerError and matching pytest.UsageError for the reuse-mode edge case where a pre-existing container is in dead / removing state — surfaced with the exact docker rm -f <name> command instead of letting Docker fail the start with a 409 name conflict.

Changed

  • __version__ now reads from importlib.metadata so it stays in sync with pyproject.toml.
  • README Django support matrix marks 4.2 LTS as past EOL (Apr 2026).

Fixed

  • The plugin's own test suite now disables eager-start via a root conftest.py rather than tests/conftest.py. The root file is preloaded by the plugin's tryfirst hook; tests/conftest.py is not — meaning the previous setup silently ran every "unit" test against a real Docker daemon when one was available locally (CI was unaffected because it sets the env var explicitly).

Full diff: v0.1.0...v0.2.0