summaryrefslogtreecommitdiff
path: root/tests/test_autodoc.py
Commit message (Collapse)AuthorAgeFilesLines
...
* Fix flake8 violationsTakeshi KOMIYA2017-01-261-0/+2
|
* pytest optimizatoin:shimizukawa2017-01-081-19/+24
| | | | | | | | - remote using deprecated decorators - remove gen_with_app - remove yield testing - remove pytest warnings - refactoring
* pytest migrationshimizukawa2017-01-041-10/+15
|
* Merge branch 'stable' into 1.5-releaseTakeshi KOMIYA2016-12-031-2/+12
|\
| * Merge branch 'fix-attr-documenter' into stableshimizukawa2016-11-241-2/+12
| |\
| | * Fix documentation of descriptor classes that have a custom metaclassErik M. Bray2015-04-091-2/+13
| | | | | | | | | | | | | | | | | | | | | (i.e. a subclass of type). This avoids using string comparisons to do type checks, except in the case of the fix for #1155, since in Python 3 there really seems to be no way to export the instancemethod type, short of using ctypes.
| * | Fix #3135: ``sphinx.ext.autodoc`` crashes with plain CallableTakeshi KOMIYA2016-11-131-3/+4
| | |
* | | Fix annotations formatting for plain typing.CallableAlex Grönholm2016-11-021-4/+5
| | | | | | | | | | | | The typing.Callable class may be used without generic arguments, in which case it is equivalent to collections.abc.Callable.
* | | Merge pull request #3071 from mleinart/autodoc/pass_through_decoratorsTakeshi KOMIYA2016-11-021-0/+11
|\ \ \ | | | | | | | | Autodoc: Allow mocked module decorators to pass-through functions unchanged
| * | | Add tests for mocked modulesMichael Leinartas2016-10-211-0/+11
| | | |
* | | | Closes #3060: autodoc supports documentation for attributes of Enum class. ↵shimizukawa2016-10-281-0/+33
|/ / / | | | | | | | | | Now autodoc render just the value of Enum attributes instead of Enum attribute representation.
* | | refs #2432 update for latest mastershimizukawa2016-10-191-2/+2
| | |
* | | Merge pull request #2432 from agronholm/kwonlyargsTakayuki SHIMIZUKAWA2016-10-191-3/+6
|\ \ \ | |/ / |/| | #2432 Fix unwanted * between varargs and keyword only args
| * | Fix unwanted * between varargs and keyword only argsAlex Grönholm2016-04-091-4/+7
| | | | | | | | | | | | The * parameter must only be present when a holder for positional variable arguments is not present.
* | | ext.autodoc: fix formatting instance annotationsJoost van Zwieten2016-08-071-1/+4
| | | | | | | | | | | | | | | | | | | | | Currently `format_annotation` fails on instances, because instances don't have `__module__` and `__qualname__` attributes. Defer building the `qualified_name` of an annotation until we have established that the annotation is a type.
* | | Fix flake8 violation under tests/Takeshi KOMIYA2016-06-121-26/+41
|/ /
* | Merge pull request #2300 from akruis/feature_autoclass_content_from__new__Takeshi KOMIYA2016-02-141-0/+33
|\ \ | | | | | | Feature: enhance autoclass:: to use the docstring of __new__ if __init__ method's is missing of empty
| * | Feature: enhance autoclass:: to use the docstring of __new__Anselm Kruis2016-02-051-0/+33
| | | | | | | | | | | | | | | | | | | | | | | | | | | The method new is an alternative to __init__, but autoclass does not respect __new__. This commit enhances the directive autoclass:: to try __new__ method's docstring, if __init__ method's docstring is missing or empty. The commit also adds tests and updates the documentation.
* | | Merge branch 'stable'Georg Brandl2016-01-141-1/+1
|\ \ \ | |/ /
| * | Obligatory copyright update.Georg Brandl2016-01-141-1/+1
| |/
* | Move py3.5 specific tests to their own file and adjust test environmentAlberto Berti2015-11-101-16/+0
| |
* | Add a test for doc on coroutine functions and general support for ↵Alberto Berti2015-11-101-0/+18
| | | | | | | | async/await py3.5 syntax
* | Skip type hinting tests if there is a SyntaxError while importing a module ↵Andrey Vlasovskikh2015-07-311-1/+1
| | | | | | | | with function annotations
* | Use 'SkipTest' from 'util' for testsAndrey Vlasovskikh2015-07-311-3/+2
| |
* | Closes #1968: Show extended type hints for function annotations that use ↵Andrey Vlasovskikh2015-07-311-1/+45
|/ | | | 'typing' module
* Merge branch 'stable'Georg Brandl2015-01-031-1/+1
|\
| * all: update copyrightGeorg Brandl2015-01-031-1/+1
| |
* | Py3 fix.Georg Brandl2014-11-071-2/+2
| |
* | merge with stableGeorg Brandl2014-11-071-8/+20
|\ \ | |/
| * Fix :confval:`autodoc_docstring_signature` not working with signaturesGeorg Brandl2014-11-071-8/+20
| | | | | | | | in class docstrings.
* | fix trailing space and long lineTakayuki Shimizukawa2014-10-091-4/+8
| |
* | Complete test suite overhaul.Georg Brandl2014-09-211-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | * rename a few test modules to make the names more consistent * do not copy/use Sphinx from build/ (unnecessary without 2to3) * use a temporary dir for *all* test projects, the source tree will stay pristine that way (default is tests/build) * speed up tests by ~3x by splitting up test projects and avoiding rebuilds
* | Move env.temp_data content that might be used to resolve references to a new ↵Georg Brandl2014-09-201-13/+13
| | | | | | | | env.ref_context dictionary.
* | merge with stableTakayuki Shimizukawa2014-07-131-0/+6
|\ \ | |/
| * * In autodoc, fix display of parameter defaults containing backslashes. ↵Takayuki Shimizukawa2014-07-021-0/+6
| | | | | | | | Closes #1502
* | * add test and code comment for pull request #157Takayuki Shimizukawa2014-06-141-0/+47
| |
* | merge with stableTakayuki Shimizukawa2014-06-091-0/+3
|\ \ | |/
| * * Fix exception on Python3 if nonexistent method is specified by automethod. ↵Takayuki Shimizukawa2014-06-091-0/+3
| | | | | | | | Closes #1467
* | remove 'six' name except importing line.Takayuki Shimizukawa2014-04-301-2/+2
| |
* | introduce the six module and reduce sphinx.util.pycompat implementation. ↵Takayuki Shimizukawa2014-04-291-4/+2
| | | | | | | | refs #1350.
* | Update copyright year.Georg Brandl2014-03-011-1/+1
|\ \ | |/
| * Update copyright year.Georg Brandl2014-03-011-1/+1
| |
| * Fix an exception introduced by b69b59480cba for __init__ with no docstring.Ben Darnell2014-01-201-0/+16
| |
* | Fix an exception introduced by b69b59480cba for __init__ with no docstring.Ben Darnell2014-01-201-0/+16
| |
* | merge headsTakayuki Shimizukawa2014-01-151-8/+3
|\ \ | |/ |/|
| * Drop python-2.5 and remove 2.4,2.5 support codesTakayuki Shimizukawa2013-12-151-8/+3
| |
* | Fix autodoc with ``autoclass_content="both"`` uses useless ↵Takayuki Shimizukawa2014-01-021-0/+14
|/ | | | | | ``object.__init__`` docstring when class does not have ``__init__``. Closes #1337 This caused by a change for #1138.
* Fix: autodoc class __init__ override not removed from docstring. Closes #1138Takayuki Shimizukawa2013-12-091-0/+33
|
* Test suite quickfix.Georg Brandl2013-09-161-0/+1
|
* Merged in JonnyJD/sphinx/autodoc_novalue (pull request #109)Georg Brandl2013-09-161-0/+1
|\ | | | | | | feature: autodoc: add :annotation: option for autodata and autoattribute