pytest fixtures

This submodule contains pytest fixtures which can be utilized when writing tests for your containers while using conu and pytest.


pytest fixture which mimics context manager: it provides new instance of DockerBackend and cleans after it once it’s used; sample usage:

def test_my_container(docker_backend):
    image = docker_backend.ImageClass("fedora", tag="27")
Returns:instance of DockerBackend