parametrize-from-file.readthedocs.io - Parametrize From File — Parametrize From File 0.20.0 documentation

Example domain paragraphs

Parametrize From File is a library for reading unit test parameters from config files. It works with the pytest framework. Below is the basic workflow that this package enables:

Write test cases in a JSON , YAML , TOML , or NestedText file:

# test_camelot.yml test_str_find : - str : sir lancelot sub : lance loc : 4 - str : sir robin sub : brave loc : -1 Decorate the corresponding test functions with @parametrize_from_file :

Links to parametrize-from-file.readthedocs.io (2)