summaryrefslogtreecommitdiff
path: root/tests/test_ext_viewcode.py
Commit message (Collapse)AuthorAgeFilesLines
* Fix instability in ``test_ext_viewcode`` (#11297)Martin Liška2023-04-061-2/+4
| | | | Use ``freshenv`` argument and remove ``outdir`` for one test as the previous one can leave an unexpected leftover.
* Fix COM812Adam Turner2023-02-181-2/+2
|
* Run pyupgrade (#11070)Adam Turner2023-01-021-4/+2
|
* Fix tests for Pygments 2.14Adam Turner2023-01-011-8/+19
| | | | | | Pygments 2.14 was released on 01/01/2023 [0] [0]: https://pygments.org/docs/changelog/#version-2-14-0
* `.read_text()` -> `.read_text(encoding='utf8')`Adam Turner2022-04-271-8/+8
|
* 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 #8704: viewcode: anchors are generated in incremental buildTakeshi KOMIYA2021-01-221-0/+6
| | | | | | | | | | | The anchors for viewcode was generated in the reading phase only if supported builder is used. It causes anchors are missing on the incremental build after the build for non supported builder. This introduces `viewcode_anchor` node to insert the anchor even if non supported builders. They will be converted to the anchor tag in the resolving phase for supported builders. Or, they will be removed for non supported builders.
* Fix #8720: viewcode: module pages are generated for epub on incremental buildTakeshi KOMIYA2021-01-221-0/+15
| | | | | | | The module pages should be generated for epub only if enabled via configuration. But they are generated after the build for other viewcode-supported builders. This checks the current builder on generating module pages.
* 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
* test: Use read_text() and read_bytes()Takeshi KOMIYA2020-02-011-6/+6
|
* A happy new year!Takeshi KOMIYA2020-01-011-1/+1
|
* encoding keyword for path.text() and path.write_text() is no longer neededTakeshi KOMIYA2019-01-031-4/+4
|
* Merge branch '1.8'Takeshi KOMIYA2019-01-021-1/+1
|\
| * A happy new year!Takeshi KOMIYA2019-01-021-1/+1
| |
* | Remove absolute_importTakeshi KOMIYA2018-12-171-4/+4
| |
* | Remove unnecessary encoding cookie from Python source filesJon Dufresne2018-12-161-1/+0
|/ | | | | | | | | | | | | | In Python 3, the default encoding of source files is utf-8. The encoding cookie is now unnecessary and redundant so remove it. For more details, see the docs: https://docs.python.org/3/howto/unicode.html#the-string-type > The default encoding for Python source code is UTF-8, so you can > simply include a Unicode character in a string literal ... Includes a fix for the flake8 header checks to stop expecting an encoding cookie.
* Plugins can find source code for viewcodeAshley Whetter2018-04-241-0/+43
| | | | Fixes #4035
* Fix #4701: viewcode: Misplaced ``<div>`` in viewcode html outputTakeshi KOMIYA2018-03-051-0/+11
|
* A happy new year!Takeshi KOMIYA2018-01-011-1/+1
|
* Merge pull request #2299 from scVENUS/fix_attribute_docstrings_of_imported_classTakeshi KOMIYA2017-11-121-0/+6
|\ | | | | Fix #2298: automodule fails to document a class attribute.
| * Test for bug #2298: automodule fails to document a class attributeAnselm Kruis2016-02-051-0/+6
| | | | | | | | | | | | | | | | | | This test case demonstrates a bug, where automodule:: with option :members: fails to document a class attribute of a class, that was imported into the documented module. This commit extends test_ext_viewcode, instead of creating a separate test module, because the development guide recommends it for performance reasons.
* | Merge branch 'stable'Takeshi KOMIYA2017-03-261-1/+1
|\ \
| * | Year++Takeshi KOMIYA2017-03-261-1/+1
| | |
* | | Add more decorator testsRay Lehtiniemi2017-03-111-0/+1
|/ / | | | | | | Signed-off-by: Ray Lehtiniemi <rayl@mail.com>
* | pytest: remove deprecated with_app decorator functionsshimizukawa2017-01-061-3/+3
|/
* Obligatory copyright update.Georg Brandl2016-01-141-1/+1
|
* Merge branch 'stable'Georg Brandl2015-01-031-1/+1
|
* Split viewcode and linkcode tests out of main test root.Georg Brandl2014-09-211-1/+13
|
* Complete test suite overhaul.Georg Brandl2014-09-211-43/+32
| | | | | | | | | | | | * 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
* fix fc1901d for py3, again. and add 2 assertionsTakayuki Shimizukawa2014-08-221-0/+2
|
* fix fc1901d for py3Takayuki Shimizukawa2014-08-221-1/+2
|
* :mod:`~sphinx.ext.viewcode` support imported function/class aliases. Closes #623Takayuki Shimizukawa2014-08-221-0/+40