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
```
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
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_yaml-1.2.1.tar.gz
(1.7 kB
view hashes)
Built Distribution
Close
Hashes for pytest_yaml-1.2.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 976015e76f4f1b4915a6da977b79543188919cac095bfd91d62d3e471aa1d722 |
|
MD5 | 0d952874f940cd9eac4ed89545c79097 |
|
BLAKE2b-256 | 7d1e227ecfba1ee615f3fcf35da1bb94a8c5855e4a0934c85265eff4e5d1d11c |