tests/extension/ref/lexer_extdoctest_setup.txt
raw| 1 | test_project.bar |
| 2 | tp.bar |
| 3 | test.Foo |
| 4 | # split |
| 5 | extensions.append("sphinx.ext.doctest") |
| 6 | # split |
| 7 | Test project |
| 8 | ============ |
| 9 | |
| 10 | .. testsetup:: |
| 11 | |
| 12 | import test_project |
| 13 | |
| 14 | .. doctest:: |
| 15 | |
| 16 | >>> test_project.bar() |
| 17 | |
| 18 | .. testsetup:: * |
| 19 | |
| 20 | .. doctest:: |
| 21 | |
| 22 | >>> test_project.Foo() |
| 23 | |
| 24 | .. testsetup:: thisgroup |
| 25 | |
| 26 | import test_project as tp |
| 27 | |
| 28 | import test_project as test |
| 29 | |
| 30 | .. doctest:: thisgroup |
| 31 | |
| 32 | >>> tp.bar() |
| 33 | >>> test.Foo() |
| 34 | |
| 35 | .. automodule:: test_project |