PYTEST-IDEM
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")
Metadata
Release files for pytest-idem 4.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pytest-idem-4.0.1.tar.gz | 11.9 kB | Without provenance | Details for pytest-idem-4.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pytest_idem-4.0.1-py3-none-any.whl | Python 3 | none | any | Details for pytest_idem-4.0.1-py3-none-any.whl |
Total release size: 23.7 kB
Release files / pytest-idem-4.0.1.tar.gz
| Download URL | pytest-idem-4.0.1.tar.gz |
|---|---|
| Size | 11.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
70b986cb33814b4b7cad6bf35b2f36af8499ef6c0e3ff8f3c2fb78678d86819d
|
|
BLAKE2b-256 checksum How to use checksums |
4eb2ea776225f9487c5890cb88843d42e8ee2bf2329b154a3b2b95b273de7db1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.9.6 readme-renderer/41.0 requests/2.31.0 requests-toolbelt/1.0.0 urllib3/2.0.5 tqdm/4.66.1 importlib-metadata/6.8.0 keyring/24.2.0 rfc3986/2.0.0 colorama/0.4.6 CPython/3.9.18
|
Release files / pytest_idem-4.0.1-py3-none-any.whl
| Download URL | pytest_idem-4.0.1-py3-none-any.whl |
|---|---|
| Size | 11.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
18c0a3a6e4b04966f0bc964aec0b7b7b18224d6541c243ac960ebb3bfad54557
|
|
BLAKE2b-256 checksum How to use checksums |
d281667c7ef41c8664be4b62e21fffa710b985c422af136501ce5e0b1e2ea890
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.9.6 readme-renderer/41.0 requests/2.31.0 requests-toolbelt/1.0.0 urllib3/2.0.5 tqdm/4.66.1 importlib-metadata/6.8.0 keyring/24.2.0 rfc3986/2.0.0 colorama/0.4.6 CPython/3.9.18
|
Security for pytest-idem 4.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.