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-3.0.0.tar.gz
(11.7 kB
view details)
Built Distribution
File details
Details for the file pytest-idem-3.0.0.tar.gz
.
File metadata
- Download URL: pytest-idem-3.0.0.tar.gz
- Upload date:
- Size: 11.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.3 readme-renderer/37.1 requests/2.28.1 requests-toolbelt/0.9.1 urllib3/1.26.12 tqdm/4.64.1 importlib-metadata/4.12.0 keyring/23.9.1 rfc3986/2.0.0 colorama/0.4.5 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0deff454fd6f1cbab2a8ef8f82a1c823835da6cf8a81adb74aca2668e84ea8be |
|
MD5 | d0783a7e27bcbc026208ccf7d16239b1 |
|
BLAKE2b-256 | ed39f847aeb0f6bc17510e9586d25468c95c5a1454e3fd2c98b0d3448c35b43b |
File details
Details for the file pytest_idem-3.0.0-py3-none-any.whl
.
File metadata
- Download URL: pytest_idem-3.0.0-py3-none-any.whl
- Upload date:
- Size: 11.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.3 readme-renderer/37.1 requests/2.28.1 requests-toolbelt/0.9.1 urllib3/1.26.12 tqdm/4.64.1 importlib-metadata/4.12.0 keyring/23.9.1 rfc3986/2.0.0 colorama/0.4.5 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 95aca8515073a33d33a25ef6af787421c79630b6eb691fd63a8439dee81c3700 |
|
MD5 | 5b1ecc23ec3d8fffd307e73cbdc04d51 |
|
BLAKE2b-256 | 62d763b90e9e3555d7e2ed70fa4fff8b909d660c0d54f19f9d8b6e70a9c371bd |