摘要: 智能的单元测试框架 ,是开发写代码自测的 我们测试用单元测试去实现自动化 使用 unittest模块 怎么写用例 import unittestimport my_function# def add(a,b):# return a+bclass TestAdd(unittest.TestCase): 阅读全文
posted @ 2020-11-03 16:07 测试董先生 阅读(294) 评论(0) 推荐(0) 编辑
摘要: import threading,time,randoma=[]def exce(db):#函数有参数 print(threading.current_thread())#看当前哪一个进程在运行 time.sleep(random.randint(1,5)) print('洗衣服') return 阅读全文
posted @ 2020-11-03 10:14 测试董先生 阅读(476) 评论(0) 推荐(0) 编辑