Skip to main content

A pytest plugin to help with testing idem projects

Project description

A pytest plugin to help with testing idem projects


Install with pip:

pip install pytest-idem


Clone the pytest-idem repo and install with pip:

git clone
pip install -e pytest-idem


Some projects, specifically need credentials from idem’s ctx generator. A ctx fixture exists, but it won’t work unless you override the acct_file and acct_profile fixtures:

def acct_subs() -> List[str]:
    return ["azurerm", "vultr"]

def acct_profile() -> str:
    return "test_development_idem_cloud"

Once these fixtures are overridden, the ctx fixture will become available to your test:

test_cloud_instance_present(hub, ctx):, "instance_name")

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pytest-idem-4.0.0.tar.gz (11.8 kB view hashes)

Uploaded source

Built Distribution

pytest_idem-4.0.0-py3-none-any.whl (11.8 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page