Testcontainers is a Python library that providing a friendly API to run Docker container. It is designed to create runtime environment to use during your automatic tests.
On fiddling with a local project of mine, I realised we default to removing volumes when using compose.
This is neat, but the context manager should also allow control over the volumes kept.
This change adds the keep_volumes flag and hooks into self.stop() that already had the option.
I added a test to cover the new functionality :green_heart:
changes
On fiddling with a local project of mine, I realised we default to removing volumes when using compose. This is neat, but the context manager should also allow control over the volumes kept.
This change adds the
keep_volumes
flag and hooks intoself.stop()
that already had the option.I added a test to cover the new functionality :green_heart: