Test & Code in Python 111: Subtests in Python with unittest ...
testandcode.com › 111May 02, 2020 · Python's unittest introduced subtests in Python 3.4. pytest introduced support for subtests with changes in pytest 4.4 and a plugin, called pytest-subtests. Subtests are still not really used that much. But really, what are they? When could you use them? And more importantly, what should you watch out for if you decide to use them?
Subtests in Python - Paul Ganssle
blog.ganssle.io › 2020 › 04Apr 28, 2020 · unittest.TestCase.subTest was originally introduced in Python 3.4 as a lightweight mechanism for test parameterization [1]; it allows you to mark a section of your test as a separate test in its own right using a context manager. The canonical example is testing something in a loop:
pytest-subtests - PyPI
https://pypi.org/project/pytest-subtests13.02.2022 · Download files. Download the file for your platform. If you're not sure which to choose, learn more about installing packages. Source Distribution. pytest-subtests-0.7.0.tar.gz (10.8 kB view hashes ) Uploaded about 4 hours ago source. Built Distribution. pytest_subtests-0.7.0-py3-none-any.whl (6.0 kB view hashes ) Uploaded about 4 hours ago py3.