seaworthy.checks

Checks and test decorators for skipping tests that require Docker to be present.

docker_available()[source]

Check if Docker is available and responsive.

docker_client()[source]

A context manager that creates and cleans up a Docker API client.

In most cases, it’s better to use DockerHelper instead.

dockertest()[source]

Skip tests that require Docker to be available.

This is a function that returns a decorator so that we don’t run arbitrary Docker client code on import. This implementation only works with tests based on unittest.TestCase. If you’re using pytest, you probably want seaworthy.pytest.dockertest() instead.