Skip to main content
# pytest_yaml

This plugin is used to load yaml output to your test using pytest framework.

## How to install

```bash
pip install pytest_yaml
```

## How to use

#### Example code

```yaml
param: "value"
```

```python
def test_hello(yaml_content):
assert yaml_content['param'] == 'value', 'your message'
```

#### Command line

```bash
pytest ./tests/sample/ --yaml-file ./yaml/sample.yml
```


Release files for pytest-yaml 1.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pytest-yaml 1.2.1
File Size Uploaded
pytest_yaml-1.2.1.tar.gz 1.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pytest-yaml 1.2.1
File Interpreter ABI Platform
pytest_yaml-1.2.1-py3-none-any.whl Python 3 none any Details

Total release size: 4.4 kB

Release files / pytest_yaml-1.2.1.tar.gz

Download URL pytest_yaml-1.2.1.tar.gz
Size 1.7 kB
Tags Source
SHA-256 checksum
How to use checksums
cb06cf95090fe0264e876f6c59af2eca11aa0a179546675bbe558bd2efcc15b7
BLAKE2b-256 checksum
How to use checksums
71aeb5ac314dcc7fd15262e1f4f9894d8152bd448dd0b022ca09f6b1a155282e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.6.6

Release files / pytest_yaml-1.2.1-py3-none-any.whl

Download URL pytest_yaml-1.2.1-py3-none-any.whl
Size 2.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
976015e76f4f1b4915a6da977b79543188919cac095bfd91d62d3e471aa1d722
BLAKE2b-256 checksum
How to use checksums
7d1e227ecfba1ee615f3fcf35da1bb94a8c5855e4a0934c85265eff4e5d1d11c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.6.6

Release history Release notifications | RSS feed

This release

1.2.1 This release

2 release files

1.2

2 release files

1.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page