Library 'pytest-operator'

The pytest-operator library is a Python library that provides Juju plugins for the generic Python library pytest to facilitate the integration testing of charms.

See more: pytest-operator

It builds a fixture called ops_test that helps you interact with Juju through constructs that wrap around python-libjuju .

See more:

It also provides convenient markers and command line parameters (e.g., the @pytest.mark.skip_if_deployed marker in combination with the --no-deploy configuration helps you skip, e.g., a deployment test in the case where you already have a deployment).

See more:

Last updated 4 months ago. Help improve this document in the forum.