tests/integration/conftest.py fileΒΆ

The tests/integration/conftest.py file contains reusable test fixtures for integration testing.

When a charm is initialized with the Kubernetes or machine profile, Charmcraft creates this file with the following contents:

  • A fixture that creates a temporary Juju model

  • A fixture that packs your charm

The fixtures use the Jubilant library.

The integration tests for your charm are in the tests/integration/test_charm.py file.