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

feat: Run seed scripts in DbContainer #542

Closed OverkillGuy closed 6 months ago

OverkillGuy commented 6 months ago

New capability of "seeding" a db container, by running a database-specific command or twelve to inject data (DB schema or sample data).

Ref #541, implemented for MySQL but generalizeable

alexanderankin commented 6 months ago

see discussion in #541