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 details)
Built Distribution
File details
Details for the file pytest_yaml-1.2.tar.gz
.
File metadata
- Download URL: pytest_yaml-1.2.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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 856d53291bb50632274d4305f24e2c8366b764db34a5d8503035cc8713174a13 |
|
MD5 | 2b45eef8d4d28b3f0a8923f9468bb307 |
|
BLAKE2b-256 | ee4acd508b4c968f6cdfceae9b1fc2bee9f0333f09a5a6ecb8998e520fcc8600 |
File details
Details for the file pytest_yaml-1.2-py3-none-any.whl
.
File metadata
- Download URL: pytest_yaml-1.2-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
Algorithm | Hash digest | |
---|---|---|
SHA256 | d8f61f7723f8b0bcd4505cd63d4cb92bc457fa06f90337fa16d925064e4805ef |
|
MD5 | cd00843eca73d433ff7a451c1730b7f2 |
|
BLAKE2b-256 | d416d713a3d0532ab45cc6d594a920d170bd16edb22cf18564c7dafa97718d89 |