logo
首页技术栈工具库讨论
pytest-cases

pytest-cases

Did you ever think that most of your test functions were actually the same test code, but with different data inputs and expected results/exceptions ? `pytest-cases` leverages `pytest` and its great `@pytest.mark.parametrize` decorator, so that you can separate your test cases from your test functions. In addition, `pytest-cases` provides several useful goodies to empower `pytest`. In particular it improves the fixture mechanism to support "fixture unions". This is a major change in the internal `pytest` engine, unlocking many possibilities such as using fixture references as parameter values in a test function.
由 
bruceshi2021-01-13 收录
--
推荐
不推荐
更多信息
CONDA
conda install -c anaconda pytest-cases
查看
标签
根据用户添加的标签生成
暂无标签