A pytest plugin to help with testing idem projects
Project description
A pytest plugin to help with testing idem projects
INSTALLATION
Install with pip:
pip install pytest-idem
DEVELOPMENT INSTALLATION
Clone the pytest-idem repo and install with pip:
git clone https://gitlab.com/vmware/idem/pytest-idem.git pip install -e pytest-idem
ACCT
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:
@pytest.fixture def acct_subs() -> List[str]: return ["azurerm", "vultr"] @pytest.fixture 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): hub.state.cloud.present(ctx, "instance_name")
Project details
Release history Release notifications | RSS feed
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 details)
Built Distribution
File details
Details for the file pytest-idem-4.0.0.tar.gz
.
File metadata
- Download URL: pytest-idem-4.0.0.tar.gz
- Upload date:
- Size: 11.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.9.6 readme-renderer/40.0 requests/2.31.0 requests-toolbelt/1.0.0 urllib3/2.0.3 tqdm/4.65.0 importlib-metadata/6.7.0 keyring/24.1.0 rfc3986/2.0.0 colorama/0.4.6 CPython/3.9.17
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 89d17eb71cae59ed0e26e4b50e00c40e644dfcab7f6a56d4d04de42300ecb70d |
|
MD5 | f79c8730e1b94c65ddfae36f03a8b4c7 |
|
BLAKE2b-256 | 35609cbc4f9a475bd7be49b2f07e05f7d8fd3e3be3a94cc2300f0c77d099b274 |
File details
Details for the file pytest_idem-4.0.0-py3-none-any.whl
.
File metadata
- Download URL: pytest_idem-4.0.0-py3-none-any.whl
- Upload date:
- Size: 11.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.9.6 readme-renderer/40.0 requests/2.31.0 requests-toolbelt/1.0.0 urllib3/2.0.3 tqdm/4.65.0 importlib-metadata/6.7.0 keyring/24.1.0 rfc3986/2.0.0 colorama/0.4.6 CPython/3.9.17
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 93390d808dbd5d6811ffcc39b2fd264e817882f847d96e0c11d970eddc510717 |
|
MD5 | d14294813d057e94e060f3a85804d4f2 |
|
BLAKE2b-256 | 056bd6a56c63231d36e733a9b17cfb044a21968fb6c6d3ade1986b10f752fa36 |