pytest-scenario-files¶
Making Pytest Scenarios Easy and Scalable
pytest-scenario-files
is a pytest
plugin that runs unit test scenarios using
data loaded from files.
Features¶
Loads data for scenarios from files into fixtures
Data files are matched with tests by a naming convention
Multiple scenario data sets may be in one file
There may be multiple data files for each test
Fixtures may refer to fixtures in other files
Can specify indirect parameterization
Intuitive and sane data file structure
NEW - Integration with Responses package
Compatibility¶
This package is a plug-in for pytest
and works with Python 3.9 and up.
Tested with
pytest
versions 7.4, 8.2 and 8.3.Tested with CPython 3.9-3.13.