testcontainers / testcontainers-python

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.
https://testcontainers-python.readthedocs.io/en/latest/
Apache License 2.0
1.59k stars 290 forks source link

refactor(core): Standardize configuration and readiness steps in container lifecycle #527

Open santi opened 7 months ago

santi commented 7 months ago

Aims for this PR:

santi commented 7 months ago

Referencing https://github.com/testcontainers/testcontainers-python/issues/459 for context

alexanderankin commented 7 months ago

would this have the potential to break existing code that depends on conventions from v3 and v4?

alexanderankin commented 5 months ago

if i were to try to merge this, what should i keep in mind @santi ? Anything not already reflected here? I did a first pass and seems like i will have to revisit this several times in order to make sense of this fully...

also, like i asked above, is this breaking at all?

santi commented 5 months ago

@alexanderankin Hey, sorry for the delay on this one. This is just a WIP draft that is not ready for a merge quite yet, and has probably drifted a bit from the main branch. I intend on getting this one up-to-date this week, and do a nice write-up on the implications and document the intention behind the changes / API standardisation it introduces.