{"library":"parametrize-from-file","title":"parametrize-from-file","description":"A pytest plugin that allows parametrizing test functions with values read from external config files (JSON, TOML, YAML, INI, etc.). Version 0.21.0 supports Python ~=3.8. Releases are infrequent, typically a few times per year.","language":"python","status":"active","last_verified":"Sat May 09","install":{"commands":["pip install parametrize-from-file"],"cli":null},"imports":["import parametrize_from_file","from parametrize_from_file import add_source"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import parametrize_from_file\n\n@parametrize_from_file\n@pytest.mark.parametrize(\"x, expected\", [\n    (1, 2),\n    (2, 4),\n])\ndef test_double(x, expected):\n    assert x * 2 == expected\n","lang":"python","description":"The decorator loads parameters from a file named after the test module (e.g., test_*.yaml). The file is expected in the same directory as the test file.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}