/pytest_yaml

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

Primary LanguagePythonOtherNOASSERTION

pytest_yaml

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

How to install

pip install pytest_yaml

How to use

Example code

param: "value"
def test_hello(yaml_content):
    assert yaml_content['param'] == 'value', 'your message'

Command line

pytest ./tests/sample/ --yaml-file ./yaml/sample.yml