1、py文件名必须以test开头
2、类名:必须以test开头
3、pytest使用pycharm执行,光标在哪个方法下,就执行哪个
4、命令行执行pytest -s test_pytest.py -s:看打印 -v:详细信息
5、@pytest.mark.parametrize('a',(1,2,3,4)) 传递单个参数
6、@pytest.mark.parametrize('a,b,c',(1,2,3,4)) 传递多个参数
7、pytest.main(['-s','demo.py']) main函数调