diff options
| author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2017-12-17 10:35:51 +0900 |
|---|---|---|
| committer | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2017-12-21 12:12:13 +0900 |
| commit | ec240614d9d47546f8640afb922753ca15f5e9e4 (patch) | |
| tree | 0b8c366343de91f07fe39b665a8a72cc73bdc490 /tests/test_ext_coverage.py | |
| parent | a95bc095c0ee2ca3c34c0f37d3b14a3b8bb31e8a (diff) | |
| download | sphinx-git-ec240614d9d47546f8640afb922753ca15f5e9e4.tar.gz | |
test_autodoc: Separate testdata (python objects) and testcases
Diffstat (limited to 'tests/test_ext_coverage.py')
| -rw-r--r-- | tests/test_ext_coverage.py | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/tests/test_ext_coverage.py b/tests/test_ext_coverage.py index ff3fb4c02..ed1f2e787 100644 --- a/tests/test_ext_coverage.py +++ b/tests/test_ext_coverage.py @@ -21,9 +21,9 @@ def test_build(app, status, warning): py_undoc = (app.outdir / 'python.txt').text() assert py_undoc.startswith('Undocumented Python objects\n' '===========================\n') - assert 'test_autodoc\n------------\n' in py_undoc + assert 'autodoc_target\n--------------\n' in py_undoc assert ' * Class -- missing methods:\n' in py_undoc - assert ' * process_docstring\n' in py_undoc + assert ' * raises\n' in py_undoc assert ' * function\n' not in py_undoc # these two are documented assert ' * Class\n' not in py_undoc # in autodoc.txt @@ -40,9 +40,9 @@ def test_build(app, status, warning): # the key is the full path to the header file, which isn't testable assert list(undoc_c.values())[0] == set([('function', 'Py_SphinxTest')]) - assert 'test_autodoc' in undoc_py - assert 'funcs' in undoc_py['test_autodoc'] - assert 'process_docstring' in undoc_py['test_autodoc']['funcs'] - assert 'classes' in undoc_py['test_autodoc'] - assert 'Class' in undoc_py['test_autodoc']['classes'] - assert 'undocmeth' in undoc_py['test_autodoc']['classes']['Class'] + assert 'autodoc_target' in undoc_py + assert 'funcs' in undoc_py['autodoc_target'] + assert 'raises' in undoc_py['autodoc_target']['funcs'] + assert 'classes' in undoc_py['autodoc_target'] + assert 'Class' in undoc_py['autodoc_target']['classes'] + assert 'undocmeth' in undoc_py['autodoc_target']['classes']['Class'] |
