Prerequisites
=============
`pytest_container` works with Python 3.6 and later and requires `pytest
`_ and `pytest-testinfra
`_. Additionally, for python 3.6, you'll need
the `dataclasses `_ module.
Tests leveraging `pytest_container` need to have access to a container
runtime. Currently the following ones are supported:
- `podman `_ and `buildah `_ (buildah
is optional and if missing, podman is leveraged for building container images)
- `docker `_
.. _runtime selection rules:
The fixtures will default to using :command:`podman` (and optionally
:command:`buildah` for building or fallback to :command:`podman`), if they are
installed and work, otherwise :command:`docker` will be used. You can also
customize which runtime will be used via the environment variable
``CONTAINER_RUNTIME`` [#]_.
.. [#] When running tests with `tox `_ keep in mind
to put the environment variable ``CONTAINER_RUNTIME`` into the
``passenv`` list.