summaryrefslogtreecommitdiff
path: root/tests/test_autodoc.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_autodoc.py')
-rw-r--r--tests/test_autodoc.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/test_autodoc.py b/tests/test_autodoc.py
index 518d23e8c..ad6a56d33 100644
--- a/tests/test_autodoc.py
+++ b/tests/test_autodoc.py
@@ -793,7 +793,7 @@ def test_autodoc_imported_members(app):
"imported-members": None,
"ignore-module-all": None}
actual = do_autodoc(app, 'module', 'target', options)
- assert '.. py:function:: save_traceback(app)' in actual
+ assert '.. py:function:: save_traceback(app: Sphinx) -> str' in actual
@pytest.mark.sphinx('html', testroot='ext-autodoc')
@@ -1795,7 +1795,7 @@ def test_autodoc_default_options(app):
actual = do_autodoc(app, 'class', 'target.CustomIter')
assert ' .. py:method:: target.CustomIter' not in actual
actual = do_autodoc(app, 'module', 'target')
- assert '.. py:function:: save_traceback(app)' not in actual
+ assert '.. py:function:: save_traceback(app: Sphinx) -> str' not in actual
# with :members:
app.config.autodoc_default_options = {'members': None}
@@ -1866,7 +1866,8 @@ def test_autodoc_default_options(app):
'ignore-module-all': None,
}
actual = do_autodoc(app, 'module', 'target')
- assert '.. py:function:: save_traceback(app)' in actual
+ print('\n'.join(actual))
+ assert '.. py:function:: save_traceback(app: Sphinx) -> str' in actual
@pytest.mark.sphinx('html', testroot='ext-autodoc')