Tomodachi-testcontainers

Latest version: v1.2.4

Safety actively analyzes 715081 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 4 of 4

0.10.3

Fixes

- Fixed a typo in `pyproject` extra dependencies - `pip install tomodachi-testcontainers[mysql]`

0.10.2

New features

- `DockerContainer`: logs from the container are now prefixed with the container name.
This makes it easier to distinguish logs from multiple containers,
especially when using multiple containers of the same type.

- `WireMockContainer`: added example of configuring WireMock mappings with [python-wiremock](https://github.com/wiremock/python-wiremock).
Install [python-wiremock](https://github.com/wiremock/python-wiremock) as an extra dependency with:

bash
pip install tomodachi-testcontainers[wiremock]


Fixes

- `DockerContainer`: forward container logs to the Python logger only when the `DockerContainer` used as a context manager.
Otherwise, the logger fails in the `DockerContainer.__del__` method, because the logger instance is already closed.

0.10.1

Fixes

- `import tomodachi_testcontainers.pytest` was failing with `ImportError` because `MySQL` and `PostgreSQL` fixtures were not
handled as optional imports.

0.10.0

New features

- ([90](https://github.com/filipsnastins/tomodachi-testcontainers/pull/90))
`DockerContainer`:
added abstract method `log_message_on_container_start`
which returns a string that is logged when the container starts.
It's useful for providing an information message of how to use the test container.
For example, in case of `MotoContainer`,
it outputs a link to the [Moto Dashboard](https://docs.getmoto.org/en/latest/docs/server_mode.html#dashboard).

- ([90](https://github.com/filipsnastins/tomodachi-testcontainers/pull/90))
`clients.snssqs`:
added cache for storing topic/queue ARNs and URLs to reduce amount of API calls to AWS
- ([90](https://github.com/filipsnastins/tomodachi-testcontainers/pull/90))
`clients.snssqs`:
added new methods for fetching topic/queue attributes:
- `get_topic_arn`
- `get_topic_attributes`
- `get_queue_arn`
- `get_queue_url`
- `get_queue_attributes`
- ([90](https://github.com/filipsnastins/tomodachi-testcontainers/pull/90))
`clients.snssqs`:
added `purge_queue` method

- ([92](https://github.com/filipsnastins/tomodachi-testcontainers/pull/92))
Added abstract `DatabaseContainer` and `WebContainer`

- ([92](https://github.com/filipsnastins/tomodachi-testcontainers/pull/92))
Added `MySQLContainer`

- Install with:

bash
DatabaseContainer and SQLAlchemy
pip install tomodachi-testcontainers[db]

MySQLContainer, SQLAlchemy and pymysql
pip install tomodachi-testcontainers[mysql]


- ([94](https://github.com/filipsnastins/tomodachi-testcontainers/pull/94))
Added `PostgreSQLContainer`

- Install with:

bash
DatabaseContainer and SQLAlchemy
pip install tomodachi-testcontainers[db]

PostgreSQLContainer, SQLAlchemy and psycopg2
pip install tomodachi-testcontainers[postgres]


Breaking changes

- ([91](https://github.com/filipsnastins/tomodachi-testcontainers/pull/91))
`DockerContainer.restart_container` method renamed to `DockerContainer.restart`

- ([92](https://github.com/filipsnastins/tomodachi-testcontainers/pull/92))
`tomodachi_testcontainers.utils.wait_for_http_healthcheck` moved to `tomodachi_testcontainers.containers.common.web`

Page 4 of 4

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.