Skip to main content

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

Project description

# 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
```


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_yaml-1.2.1.tar.gz (1.7 kB view details)

Uploaded Source

Built Distribution

pytest_yaml-1.2.1-py3-none-any.whl (2.7 kB view details)

Uploaded Python 3

File details

Details for the file pytest_yaml-1.2.1.tar.gz.

File metadata

  • Download URL: pytest_yaml-1.2.1.tar.gz
  • Upload date:
  • Size: 1.7 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for pytest_yaml-1.2.1.tar.gz
Algorithm Hash digest
SHA256 cb06cf95090fe0264e876f6c59af2eca11aa0a179546675bbe558bd2efcc15b7
MD5 8681ed8136aaabb4f3d6560b502cdc20
BLAKE2b-256 71aeb5ac314dcc7fd15262e1f4f9894d8152bd448dd0b022ca09f6b1a155282e

See more details on using hashes here.

File details

Details for the file pytest_yaml-1.2.1-py3-none-any.whl.

File metadata

  • Download URL: pytest_yaml-1.2.1-py3-none-any.whl
  • Upload date:
  • Size: 2.7 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for pytest_yaml-1.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 976015e76f4f1b4915a6da977b79543188919cac095bfd91d62d3e471aa1d722
MD5 0d952874f940cd9eac4ed89545c79097
BLAKE2b-256 7d1e227ecfba1ee615f3fcf35da1bb94a8c5855e4a0934c85265eff4e5d1d11c

See more details on using hashes here.

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