【文件属性】:
文件名称:pytest-sphinx:pytest的sphinx doctest插件
文件大小:20KB
文件格式:ZIP
更新时间:2021-05-27 16:39:31
Python
pytest狮身人面像
pytest的doctest插件,可从理解特定于sphinx的指令。 这些特定于sphinx的指令可用于rst文件以及python模块的文档字符串中。
这个插件是由以及的模板生成的。
特征
支持testcode和testoutput指令
支持testsetup和testcleanup的计划(欢迎拉动请求)
支持从pytest.ini解析全局选项标志( doctest_optionflags )
在testoutput支持:options:
为支持:skipif:在testcode和testoutput
:hide:被“ pytest-sphinx”忽略
要求
pytest
安装
您可以通过安装“ pytest-sphinx”:
$ pip install pytest-sphinx
用法
参见doctest-sphinx 。 看看doctest-ex
【文件预览】:
pytest-sphinx-master
----setup.py(2KB)
----.gitignore(875B)
----.travis.yml(1KB)
----MANIFEST.in(97B)
----LICENSE(1KB)
----CHANGELOG.md(1KB)
----README.rst(3KB)
----tests()
--------conftest.py(28B)
--------test_options.py(3KB)
--------test_python_files.py(4KB)
--------testdata()
--------test_sphinx_doctest.py(7KB)
--------test_doc2test.py(2KB)
--------test_text_files.py(4KB)
----appveyor.yml(884B)
----pytest_sphinx.py(18KB)
----.flake8(56B)
----tox.ini(308B)