使用鼻子测试,单元测试花费更长的时间

问题描述

for order,test,msg in invalid_list:
    # fix brackets and parenthesis for regex matching
     msg = msg.replace('[',r'\[')
     msg = msg.replace('(',r'\(')
     msg = msg.replace(')',r'\)')
     with self.assertRaisesRegex(exc_type,msg):
          api.validation(order,self.staffuser.username)

此测试花费了更多时间,是否有更好的方法解决此问题?使用鼻子测试

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)