mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Merge pull request #2515 from nevimov/split-doctest-docs-into-sections
Split doctest extension docs into sections
This commit is contained in:
commit
1b147f1b2f
@ -33,11 +33,14 @@ There are two kinds of test blocks:
|
|||||||
* *code-output-style* blocks consist of an ordinary piece of Python code, and
|
* *code-output-style* blocks consist of an ordinary piece of Python code, and
|
||||||
optionally, a piece of output for that code.
|
optionally, a piece of output for that code.
|
||||||
|
|
||||||
The doctest extension provides four directives. The *group* argument is
|
|
||||||
interpreted as follows: if it is empty, the block is assigned to the group named
|
Directives
|
||||||
``default``. If it is ``*``, the block is assigned to all groups (including the
|
----------
|
||||||
``default`` group). Otherwise, it must be a comma-separated list of group
|
|
||||||
names.
|
The *group* argument below is interpreted as follows: if it is empty, the block
|
||||||
|
is assigned to the group named ``default``. If it is ``*``, the block is
|
||||||
|
assigned to all groups (including the ``default`` group). Otherwise, it must be
|
||||||
|
a comma-separated list of group names.
|
||||||
|
|
||||||
.. rst:directive:: .. testsetup:: [group]
|
.. rst:directive:: .. testsetup:: [group]
|
||||||
|
|
||||||
@ -174,7 +177,10 @@ The following is an example for the usage of the directives. The test via
|
|||||||
This parrot wouldn't voom if you put 3000 volts through it!
|
This parrot wouldn't voom if you put 3000 volts through it!
|
||||||
|
|
||||||
|
|
||||||
There are also these config values for customizing the doctest extension:
|
Configuration
|
||||||
|
-------------
|
||||||
|
|
||||||
|
The doctest extension uses the following configuration values:
|
||||||
|
|
||||||
.. confval:: doctest_path
|
.. confval:: doctest_path
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user