Tomodachi-testcontainers

Latest version: v1.2.3

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

Scan your dependencies

Page 2 of 4

1.1.1

New features

- ([234](https://github.com/filipsnastins/tomodachi-testcontainers/pull/234))
`clients.SNSSQSTestClient`: supports SQS messaging introduced in tomodachi [0.27](https://github.com/kalaspuff/tomodachi/releases/tag/0.27.0).

1.1.0

New features

- ([180](https://github.com/filipsnastins/tomodachi-testcontainers/pull/180))
`clients.SNSSQSTestClient`: `SNSSQSTestClient.receive` now returns message attributes.
The returned message is now wrapped in a `SQSMessage` dataclass, containing the `payload` and `message_attributes` fields.
It's a small breaking change for clients that use the `receive` method, because the message's payload is now wrapped in the `payload` attribute.

1.0.1

Fixes

- ([179](https://github.com/filipsnastins/tomodachi-testcontainers/pull/179))
`WireMockContainer`: fixed `mapping_stubs` and `mapping_files` argument precedence over environment variables.

1.0.0

New features

- New documentation available at <https://filipsnastins.github.io/tomodachi-testcontainers/>

- `WireMockContainer`: adds `wiremock_container` pytest fixture.

- `WireMockContainer`: adds `reset_wiremock_container_on_teardown` pytest fixture that deletes all WireMock stub mappings after each test.

- `edge_port` in all Testcontainers now defaults to `None`.
When it's `None`, the container will be started with a random port generated by `tomodachi_testcontainers.utils.get_available_port()`.

- `tomodachi_testcontainers.pytest` module removed, and the code moved one level up:

- `tomodachi_testcontainers.fixtures`
- `tomodachi_testcontainers.assertions`
- `tomodachi_testcontainers.async_probes`

Breaking changes

- Removed the leading underscore from `restart_localstack_container_on_teardown` and `reset_moto_container_on_teardown` pytest fixture names.

- Fixtures `moto_snssqs_tc` and `localstack_snssqs_tc` are now session-scoped (`pytest.fixture(scope="session")`).

- Fixture `testcontainers_docker_image` renamed to `testcontainer_image`.

- Renamed environment variables:

| Old name | New name |
| :--------------------------------------------- | :----------------------------------- |
| `TOMODACHI_TESTCONTAINER_DOCKER_NETWORK` | `TESTCONTAINER_DOCKER_NETWORK` |
| `TOMODACHI_TESTCONTAINER_DOCKERFILE_PATH` | `TESTCONTAINER_DOCKERFILE_PATH` |
| `TOMODACHI_TESTCONTAINER_DOCKER_BUILD_CONTEXT` | `TESTCONTAINER_DOCKER_BUILD_CONTEXT` |
| `TOMODACHI_TESTCONTAINER_DOCKER_BUILD_TARGET` | `TESTCONTAINER_DOCKER_BUILD_TARGET` |
| `TOMODACHI_TESTCONTAINER_IMAGE_ID` | `TESTCONTAINER_IMAGE_ID` |

0.14.0

New features

- ([169](https://github.com/filipsnastins/tomodachi-testcontainers/pull/169))
`clients.SNSSQSTestClient`: new `send` method for sending messages to SQS queues.

Breaking changes

- ([169](https://github.com/filipsnastins/tomodachi-testcontainers/pull/169))
`clients.SNSSQSTestClient`: removed redundant `fifo` argument from `create_queue`, `create_topic`, and `subscribe_to` method;
relying on the `queue_name` and `topic_name` to end with `.fifo` suffix instead.

0.13.2

Fixes

- ([156](https://github.com/filipsnastins/tomodachi-testcontainers/pull/156))
The `EphemeralDockerImage` and `testcontainers_docker_image` fixture will raise the original error message if the Docker build with BuiltKit fails.
Previously, the original error was hidden.

Page 2 of 4

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.