4 ms·
Yes, and going further, I think you'll enjoy the amazing lib Pytest-cases[1] which enables naming the parametrized tests, listing them not as decorators but as
by FrenchyJiby 3y ago
Yes, and going further, I think you'll enjoy the amazing lib Pytest-cases[1] which enables naming the parametrized tests, listing them not as decorators but as separate functions/classes.
See the europython video intro: [2], or as slides[3]
[1] https://smarie.github.io/python-pytest-cases/ https://smarie.github.io/python-pytest-cases/
[2]: https://www.youtube.com/watch?v=QTyfr2UNR98 https://www.youtube.com/watch?v=QTyfr2UNR98
[3]: https://ep2021.europython.eu/talks/649sqwq-powerful-tests-and-reproducible-benchmarks-with-pytest-cases/ https://ep2021.europython.eu/talks/649sqwq-powerful-tests-an...