expects:Expects是用于Python的可表达且可扩展的TDDBDD断言库

时间:2021-04-30 14:46:11
【文件属性】:
文件名称:expects:Expects是用于Python的可表达且可扩展的TDDBDD断言库
文件大小:56KB
文件格式:ZIP
更新时间:2021-04-30 14:46:11
Python 期望 Expects是一个用于Python的可表达且可扩展的TDD / BDD断言库。 可以通过定义来扩展。 用法 只需导入expect可调用对象和然后开始编写测试断言即可。 from expects import * expect ([]). to ( be_empty ) expect ( False ). not_to ( be_true ) expect ({ 'name' : 'Jack' , 'email' : 'jack@example.com' }). to ( have_key ( 'name' , match ( '\w+' ))) expect ( str ). to ( have_property ( 'split' ) & be_callable ) expect ( lambda : foo ). to ( raise_error ( Nam
【文件预览】:
expects-master
----setup.py(1KB)
----.gitignore(77B)
----CHANGES.rst(15KB)
----test-requirements.txt(6B)
----.travis.yml(641B)
----MANIFEST.in(153B)
----LICENSE(601B)
----expects()
--------__init__.py(135B)
--------_compat.py(206B)
--------matchers()
--------factory.py(117B)
--------expectations.py(1KB)
--------testing.py(3KB)
--------aliases.py(881B)
--------texts.py(658B)
----examples()
--------test_pytest.py(104B)
--------requirements.txt(7B)
----README.rst(2KB)
----dev-requirements.txt(32B)
----docs()
--------install.rst(532B)
--------3rd-party-matchers.rst(412B)
--------Makefile(7KB)
--------aliases.rst(108B)
--------examples.rst(27KB)
--------index.rst(932B)
--------conf.py(8KB)
--------make.bat(7KB)
--------changes.rst(28B)
--------matchers.rst(45B)
--------custom-matchers.rst(217B)
----specs()
--------__init__.py(23B)
--------matchers()
--------testing()
--------texts()
--------fixtures.py(68B)
----tox.ini(156B)

网友评论