Pytest is a framework for testing Python code. Due to easy use, well-written documentation, and open-source It’s the most widely-used Python testing framework. To use Pytest you need to install it using pip.
pip install -U pytest |
Other frameworks for testing Python code:
Pros
Cons:
Official Pytest documentation: https://docs.pytest.org/en/6.2.x/contents.html
The scientific work is published for the realization of the international project co-financed by Polish Ministry of Science and Higher Education in 2019 from financial resources of the program entitled "PMW"; Agreement No. 5040/H2020/Euratom/2019/2
This work has been carried out within the framework of the EUROfusion Consortium and has received funding from the Euratom research and training programme 2014–2020 under grant agreement No 633053. The views and opinions expressed herein do not necessarily reflect those of the European Commission or ITER