Tomodachi-testcontainers

Latest version: v1.1.3

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

Scan your dependencies

Page 1 of 3

1.1.2

Maintenance

- ([242](https://github.com/filipsnastins/tomodachi-testcontainers/pull/242))
Drop Python 3.8 support.
- ([242](https://github.com/filipsnastins/tomodachi-testcontainers/pull/242))
Update [testcontainers-python](https://github.com/testcontainers/testcontainers-python) to `4.0.0`.

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.

Page 1 of 3

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.