summaryrefslogtreecommitdiff
path: root/tests/test_ext_autodoc_mock.py
Commit message (Collapse)AuthorAgeFilesLines
* Insert ``from __future__ import annotations``Adam Turner2023-01-011-0/+2
|
* Drop python 3.6 support (#10468)Takeshi KOMIYA2022-06-161-1/+0
|
* Extend `test_mock_decorator` for class method.Christian Walch2022-04-011-0/+6
|
* Collapse single line docstringsAdam Turner2022-02-201-2/+1
|
* Remove copyright and licence fieldsAdam Turner2022-02-201-3/+0
|
* Fix module docstring indentationAdam Turner2022-02-201-2/+2
|
* Fix module docstring first lineAdam Turner2022-02-201-2/+1
|
* Remove module titles in docstringsAdam Turner2022-02-191-3/+0
|
* A happy new year!Takeshi KOMIYA2022-01-011-1/+1
|
* Fix #9883: autodoc: doccomment for the alias to mocked object was ignoredTakeshi KOMIYA2021-11-291-0/+1
|
* Fix #8134: autodoc: crashes when mocked decorator takes argumentsTakeshi KOMIYA2021-01-241-7/+12
| | | | | | | | | | autodoc crashed when a decorator in mocked module takes arguments because mock system returns the first argument for the decorator as a decorated object. This changes the approach for mocking decorators that remembers arguments for each decoration, and fetch the latest argument on generating document.
* A happy new year!Takeshi KOMIYA2021-01-011-1/+1
| | | | | | | .. note:: $ find sphinx tests LICENSE doc/conf.py -type f -exec sed -i '' -e 's/2007\-20../2007-2021/' {} \; $ git co sphinx/locale/**/*.js sphinx/templates/epub3/mimetype
* autodoc: Add a helper that checks the object is mocked; ismock()Takeshi KOMIYA2020-12-281-1/+17
|
* Fix #7886: autodoc: TypeError is raised on mocking generic-typed classesTakeshi KOMIYA2020-06-301-0/+12
|
* Merge branch '2.0'Takeshi KOMIYA2020-01-011-1/+1
|\
| * A happy new year!Takeshi KOMIYA2020-01-011-1/+1
| |
* | Merge branch '2.0'Takeshi KOMIYA2019-10-201-0/+21
|\ \ | |/
| * Fix #6709: autodoc: mock object does not work as a class decoratorTakeshi KOMIYA2019-10-061-0/+21
| |
* | Merge branch '2.0'Takeshi KOMIYA2019-08-191-5/+6
|\ \ | |/
| * Switch uses of __import__ to importlib.get_module()Jon Dufresne2019-08-171-5/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The Python docs for __import__ recommend using importlib.get_module(). https://docs.python.org/3/library/functions.html#__import__ > Note: This is an advanced function that is not needed in everyday > Python programming, unlike importlib.import_module(). As importlib.get_module() uses the Python module cache and returns the module, this also allows simplifying many module cache checks of use of sys.modules. importlib.get_module() has been available since Python 3.3.
* | Drop features and APIs deprecated in 1.8Takeshi KOMIYA2019-03-301-1/+1
|/
* refactor: Move implementation of mock to sphinx.ext.autodoc.mockTakeshi KOMIYA2019-02-271-0/+97