summaryrefslogtreecommitdiff
path: root/tests/roots/test-ext-autodoc/target/need_mocks.py
Commit message (Collapse)AuthorAgeFilesLines
* Run the ``pyupgrade`` toolAdam Turner2022-10-171-2/+1
|
* Remove unneeded `noqa` lint suppression comments (#10772)danieleades2022-08-281-8/+8
|
* Fix #9883: autodoc: doccomment for the alias to mocked object was ignoredTakeshi KOMIYA2021-11-291-0/+7
|
* Fix #8134: autodoc: crashes when mocked decorator takes argumentsTakeshi KOMIYA2021-01-241-1/+1
| | | | | | | | | | 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.
* Fix #8164: autodoc: Classes that inherit mocked class are not documentedTakeshi KOMIYA2020-12-291-0/+5
| | | | | Use ismock() to check a module member is a mocked or not. It allows not to skip subclasses of mocked class.
* Sort imports with isortFrançois Freitag2020-11-111-8/+8
| | | | | | | | | | | | Keep imports alphabetically sorted and their order homogeneous across Python source files. The isort project has more feature and is more active than the flake8-import-order plugin. Most issues caught were simply import ordering from the same module. Where imports were purposefully placed out of order, tag with isort:skip.
* Add testcase for mocked objects in autodocTakeshi KOMIYA2019-02-111-0/+5
|
* test: Move autodoc_missing_imports to test-ext-autodocTakeshi KOMIYA2018-10-171-0/+26