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.

Files for pytest-yaml, version 1.2.1
Filename, size File type Python version Upload date Hashes
Filename, size pytest_yaml-1.2.1-py3-none-any.whl (2.7 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size pytest_yaml-1.2.1.tar.gz (1.7 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page