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.tar.gz
(1.7 kB
view hashes)
Built Distribution
Close
Hashes for pytest_yaml-1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d8f61f7723f8b0bcd4505cd63d4cb92bc457fa06f90337fa16d925064e4805ef |
|
MD5 | cd00843eca73d433ff7a451c1730b7f2 |
|
BLAKE2b-256 | d416d713a3d0532ab45cc6d594a920d170bd16edb22cf18564c7dafa97718d89 |