官网:https://docs.pytest.org/en/latest/ pytest帮你写出更好的程序 1.安装: Ubuntu16.04安装pytest: pip3 install pytest pytest --version This is pytest version 3.2.3, imported from /usr/local/lib/python3.5/dist-packages/pytest.py 2.An example of a simple test:(一个简单的例子)
In this lesson, you will learn how to implement pytest fixtures. Many unit tests have the same resource requirements. For example, an instantiated object from a class. You will learn how to create the instance of the class one time as a fixture and r