File: lexer_extdoctest_setup.txt

package info (click to toggle)
python-sphinx-codeautolink 0.17.5-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 936 kB
  • sloc: python: 2,818; makefile: 4
file content (35 lines) | stat: -rw-r--r-- 437 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
test_project.bar
tp.bar
test.Foo
# split
extensions.append("sphinx.ext.doctest")
# split
Test project
============

.. testsetup::

    import test_project

.. doctest::

    >>> test_project.bar()

.. testsetup:: *

.. doctest::

    >>> test_project.Foo()

.. testsetup:: thisgroup

   import test_project as tp

   import test_project as test

.. doctest:: thisgroup

    >>> tp.bar()
    >>> test.Foo()

.. automodule:: test_project