tests/extension/ref/lexer_extdoctest_doctest.txt
raw| 1 | test_project |
| 2 | test_project.bar |
| 3 | attr |
| 4 | test_project.Foo |
| 5 | test_project.Foo |
| 6 | # split |
| 7 | extensions.append("sphinx.ext.doctest") |
| 8 | # split |
| 9 | Test project |
| 10 | ============ |
| 11 | |
| 12 | .. doctest:: |
| 13 | |
| 14 | >>> import test_project |
| 15 | >>> test_project.bar().attr |
| 16 | >>> def foo(): |
| 17 | ... test_project.Foo |
| 18 | this is an output line |
| 19 | test_project.Baz |
| 20 | <BLANKLINE> |
| 21 | ... test_project.Baz |
| 22 | >>> test_project.Foo |
| 23 | <BLANKLINE> |
| 24 | |
| 25 | .. automodule:: test_project |