Лайфхаки

Маленькие, полезные хитрости

Тестовые функции

If you’ve written unitfor your Python code before, then you may have used Python’s built-in unittest module.unittestprovides a solid base on which to build your test suite, but it has a few shortcomings.

A number of third-party testing frameworks attempt to address some of the issues withunittest, andpytesthas proven to be one of the most popular.pytestis a feature-rich, plugin-based ecosystem for testing your Python code.