schireson / pytest-mock-resources

Pytest Fixtures that let you actually test against external resource (Postgres, Mongo, Redshift...) dependent code.
https://pytest-mock-resources.readthedocs.io/en/latest/quickstart.html
MIT License
183 stars 19 forks source link

feat: Implement support for "client_call" in python on whales, with a… #195

Closed ambasta closed 1 year ago

ambasta commented 1 year ago

…uto-detection of podman/nerdctl

On systems that have podman/nerdctl available, this PR adds support for detecting the appropriate runtime, and use it via client_call feature provided by python on whales.

If no runtime is detected, it falls back to docker as is the default

DanCardin commented 1 year ago

I just merged the referenced PR, which includes your original commit with my prior suggestions about load order, cli options, environment variable option, and docs.

It should get released later today in 2.10.0, feel free to submit a follow up issue (or PR), if anything I've done doesn't work for your usecase!