08 2021 档案

摘要:get curl -G http://www.xxxx.com/show?userId=111 post curl -d "username=sunnyxd&password=12345" http://www.xxxx.com/show https://stackoverflow.com/ques 阅读全文
posted @ 2021-08-27 19:24 玉北 阅读(24) 评论(0) 推荐(0)
摘要:1、基础的打桩方式 # stub.py import mock import need def myfunc(): pass need.func = mock.MagicMock(side_effect=myfunc) # need.py def func(): pass # main.py imp 阅读全文
posted @ 2021-08-26 10:33 玉北 阅读(149) 评论(0) 推荐(0)
摘要:记录进程报错信息 子进程资源被父进程释放导致子进程退出 阅读全文
posted @ 2021-08-26 10:03 玉北 阅读(28) 评论(0) 推荐(0)
摘要:普通装饰器 from functools import wraps def cover(func): @wraps(func) def wrapper(*args, **kwargs): result = func(*args, **kwargs) return result return wrap 阅读全文
posted @ 2021-08-23 14:28 玉北 阅读(47) 评论(0) 推荐(0)