Pytest用例设计原则
摘要:用例设计原则 文件名为test_*.py和*_test.py 以test_开头的函数 以Test开头的类,test_开头的方法,并且不能有__init__方法 所有的package包必须有__init__文件 断言使用assert 常用断言 assert xx 判断xx为真 assert not x
阅读全文
posted @ 2023-05-09 16:15
posted @ 2023-05-09 16:15
posted @ 2023-05-05 14:16
posted @ 2023-05-04 09:56
posted @ 2023-05-04 09:21