Preface:
There used unittest unit testing framework, then use pytest unit testing framework, you can clearly feel pytest really concise than unittest, a lot easier.
unittest and pytest difference:
The main use cases from writing rules, with the front and rear of cases, parameterization, assertions, the implementation of use cases, failure and re-run the report in these areas unittest and compare the difference between pytest
A more detailed article can refer to: https://blog.csdn.net/qq_41752647/article/details/94463011