seaworthy.pytest

Some (optional) utilities for use with pytest.

While Seaworthy doesn’t require pytest, we find it useful in downstream container tests we write with Seaworthy. This module contains various bits and pieces to make Seaworthy work better with pytest.

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. Unlike seaworthy.checks.dockertest(), this implementation doesn’t require unittest.TestCase. It does, however, require pytest.