没有合适的资源?快使用搜索试试~ 我知道了~
dingus:一个记录然后断言的测试双库
共26个文件
py:22个
changelog:1个
rst:1个
需积分: 5 0 下载量 5 浏览量
2021-06-16
08:15:24
上传
评论
收藏 20KB ZIP 举报
温馨提示
丁格斯 dingus 有点像模拟对象。 主要区别在于您没有提前设定期望。 您只需运行您的代码,使用 dingus 代替另一个对象或类,它就会记录发生了什么。 然后,一旦你的代码被执行,你就可以断言它对 dingus 做了什么。 从 Dingus 类创建了一个新的 dingus。 您可以为 dinguses 命名,这有助于调试您的测试,尤其是当有多个 dinguses 在玩时。 >>> from dingus import Dingus >>> d = Dingus( ' root ' ) >>> d <Dingus> 访问 dingus 的任何属性都将返回一个新的 dingus。 >>> d.something <Dingus> 特殊 dingus 方法有一些例外。 我们稍后会看到一些。 dingus 也可以像函数或方法一样被调用。 它不
资源推荐
资源详情
资源评论
收起资源包目录
dingus-master.zip (26个子文件)
dingus-master
setup.py 809B
.gitignore 43B
CHANGELOG 1KB
nosy.py 3KB
examples
__init__.py 1B
isolation
__init__.py 1B
test_urllib2.py 4KB
runtests.py 211B
simple
__init__.py 1B
test_socket_reader.py 836B
socket_reader.py 90B
runtests.py 211B
README.rst 4KB
tests
test_assert_call.py 2KB
__init__.py 0B
test_dingus.py 15KB
test_returner.py 210B
test_case_fixture.py 83B
test_call_list.py 4KB
test_exception_raiser.py 504B
test_isolation.py 2KB
test_dingus_test_case.py 2KB
test_call.py 799B
README.txt 10B
runtests.py 311B
dingus.py 13KB
共 26 条
- 1
资源评论
唐荣轩
- 粉丝: 31
- 资源: 4626
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功