Avoid using camelCase names in autodoc tests

This commit is contained in:
Adam Turner
2024-12-09 14:59:25 +00:00
parent 2d2b73c706
commit 34f5a8d503
2 changed files with 9 additions and 9 deletions

View File

@@ -640,7 +640,7 @@ def test_mocked_module_imports(app):
sys.modules.pop('target', None) # unload target module to clear the module cache
# no autodoc_mock_imports
options = {'members': 'TestAutodoc,decoratedFunction,func,Alias'}
options = {'members': 'TestAutodoc,decorated_function,func,Alias'}
actual = do_autodoc(app, 'module', 'target.need_mocks', options)
assert list(actual) == []
assert "autodoc: failed to import module 'need_mocks'" in app.warning.getvalue()
@@ -679,16 +679,16 @@ def test_mocked_module_imports(app):
' docstring',
'',
'',
' .. py:method:: TestAutodoc.decoratedMethod()',
' .. py:method:: TestAutodoc.decorated_method()',
' :module: target.need_mocks',
'',
' TestAutodoc::decoratedMethod docstring',
' TestAutodoc::decorated_method docstring',
'',
'',
'.. py:function:: decoratedFunction()',
'.. py:function:: decorated_function()',
' :module: target.need_mocks',
'',
' decoratedFunction docstring',
' decorated_function docstring',
'',
'',
'.. py:function:: func(arg: missing_module.Class)',