python unitest +ddt参数化【方法二】

方法1: import unittest import ddt datas=[{"user": "admin",      "psw": "123456", "result": "true"},         {"user": "admin_001", "psw": "123456", "result": "true"},         {"user": "admin_002", "psw": "123456", "result": "true"},         {"user": "admin_003", "psw": "123456", "result": "true"},         {"user": "admin_004", "psw": "123456", "result": "true"},] @ddt.ddt class Test(unittest.TestCase):     # @ddt.data(*datas)     @ddt.data(*datas)     def test_(self,d):        

python unitest +ddt参数化【方法二】最先出现在Python成神之路

版权声明:
作者:admin
链接:https://www.techfm.club/p/25976.html
来源:TechFM
文章版权归作者所有,未经允许请勿转载。

THE END
分享
二维码
< <上一篇
下一篇>>