File: lexer_extdoctest_doctest.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 (25 lines) | stat: -rw-r--r-- 434 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
test_project
test_project.bar
attr
test_project.Foo
test_project.Foo
# split
extensions.append("sphinx.ext.doctest")
# split
Test project
============

.. doctest::

    >>> import test_project
    >>> test_project.bar().attr
    >>> def foo():
    ...     test_project.Foo
    this is an output line
    test_project.Baz
    <BLANKLINE>
    ... test_project.Baz
    >>> test_project.Foo
    <BLANKLINE>

.. automodule:: test_project