sphinx/tests
Stephen Finucane 6adbb006f9 Use path2doc rather than reinventing the wheel
We already have a helper function that allows us to convert a filename
to a "docname". Don't reinvent the wheel and simply use this when
building specific files with Sphinx. Note that this does change behavior
slightly, insofar as filenames that don't resolve to valid docnames will
now be ignored rather than being passed with their suffix and silently
ignored later, but that seems sane.

Signed-off-by: Stephen Finucane <stephen@that.guru>
2022-09-26 17:50:57 +01:00
..
certs linkcheck: Specify subjectAltName in test self-signed certificate 2020-11-15 18:25:39 +01:00
js Split out sphinx_highlight.js 2022-09-24 15:10:57 +01:00
roots Clear record_dependencies for each document (#10855) 2022-09-24 00:31:26 +01:00
__init__.py Make tests/ a Python package 2020-11-20 19:43:02 +01:00
conftest.py Remove copyright and licence fields 2022-02-20 03:06:23 +00:00
ext_napoleon_pep526_data_google.py Collapse single line docstrings 2022-02-20 03:13:45 +00:00
ext_napoleon_pep526_data_numpy.py Collapse single line docstrings 2022-02-20 03:13:45 +00:00
test_api_translator.py Use docutils.__version_info__ directly 2022-04-22 04:21:38 +01:00
test_application.py Use path2doc rather than reinventing the wheel 2022-09-26 17:50:57 +01:00
test_build_changes.py .read_text() -> .read_text(encoding='utf8') 2022-04-27 03:04:19 +01:00
test_build_dirhtml.py .read_text() -> .read_text(encoding='utf8') 2022-04-27 03:04:19 +01:00
test_build_epub.py Lint with flake8-bugbear (#10602) 2022-07-12 22:55:57 +01:00
test_build_gettext.py Lint with flake8-bugbear (#10602) 2022-07-12 22:55:57 +01:00
test_build_html.py Split out sphinx_highlight.js 2022-09-24 15:10:57 +01:00
test_build_latex.py Fix flake8 5.0.0 reported formatting errors 2022-08-01 20:55:47 +02:00
test_build_linkcheck.py linkcheck: Check the source URL of raw directives 2022-08-17 14:57:58 +02:00
test_build_manpage.py .read_text() -> .read_text(encoding='utf8') 2022-04-27 03:04:19 +01:00
test_build_texinfo.py Lint with flake8-bugbear (#10602) 2022-07-12 22:55:57 +01:00
test_build_text.py .read_text() -> .read_text(encoding='utf8') 2022-04-27 03:04:19 +01:00
test_build.py .write_text(...) -> .write_text(..., encoding='utf8') 2022-04-27 03:11:08 +01:00
test_builder.py .write_text(...) -> .write_text(..., encoding='utf8') 2022-04-27 03:11:08 +01:00
test_catalogs.py Collapse single line docstrings 2022-02-20 03:13:45 +00:00
test_config.py Lint with flake8-bugbear (#10602) 2022-07-12 22:55:57 +01:00
test_correct_year.py .read_text() -> .read_text(encoding='utf8') 2022-04-27 03:04:19 +01:00
test_directive_code.py .read_text() -> .read_text(encoding='utf8') 2022-04-27 03:04:19 +01:00
test_directive_only.py Collapse single line docstrings 2022-02-20 03:13:45 +00:00
test_directive_other.py Collapse single line docstrings 2022-02-20 03:13:45 +00:00
test_directive_patch.py Collapse single line docstrings 2022-02-20 03:13:45 +00:00
test_docutilsconf.py Collapse single line docstrings 2022-02-20 03:13:45 +00:00
test_domain_c.py Merge branch '5.x' into fix-warnings 2022-05-02 17:05:42 +01:00
test_domain_cpp.py C++, restructure tests 2022-07-29 18:21:34 +02:00
test_domain_js.py Collapse single line docstrings 2022-02-20 03:13:45 +00:00
test_domain_py.py Remove unneeded noqa lint suppression comments (#10772) 2022-08-28 20:03:17 +01:00
test_domain_rst.py Collapse single line docstrings 2022-02-20 03:13:45 +00:00
test_domain_std.py Allow :ref: role to be used with definitions and fields (#10781) 2022-09-06 23:34:20 +01:00
test_environment_indexentries.py Collapse single line docstrings 2022-02-20 03:13:45 +00:00
test_environment_record_dependencies.py Clear record_dependencies for each document (#10855) 2022-09-24 00:31:26 +01:00
test_environment_toctree.py Add contents entries for domain objects (#10807) 2022-09-13 20:20:02 +01:00
test_environment.py Increase static typing strictness (#10530) 2022-06-16 19:50:01 +01:00
test_errors.py Fix AttributeError in ExtensionError 2018-09-09 11:50:56 -07:00
test_events.py Make -P (pdb) work better with exceptions triggered from events 2022-07-04 18:48:44 -07:00
test_ext_apidoc.py Refactor 2022-05-02 17:51:26 +01:00
test_ext_autodoc_autoattribute.py Remove redundant code for Python < 3.6 2022-05-01 17:50:34 +03:00
test_ext_autodoc_autoclass.py Remove redundant code for Python < 3.6 2022-05-01 17:50:34 +03:00
test_ext_autodoc_autodata.py Remove redundant code for Python < 3.6 2022-05-01 17:50:34 +03:00
test_ext_autodoc_autofunction.py Fix a testcase for py36 2022-04-05 01:08:58 +09:00
test_ext_autodoc_automodule.py Add contents entries for domain objects (#10807) 2022-09-13 20:20:02 +01:00
test_ext_autodoc_autoproperty.py Remove copyright and licence fields 2022-02-20 03:06:23 +00:00
test_ext_autodoc_configs.py test: Add testcase for autodoc_inherit_docstring and attributes (refs: #10539) 2022-06-14 02:49:07 +09:00
test_ext_autodoc_events.py Collapse single line docstrings 2022-02-20 03:13:45 +00:00
test_ext_autodoc_mock.py Extend test_mock_decorator for class method. 2022-04-01 07:37:07 +02:00
test_ext_autodoc_preserve_defaults.py Fix #10421: autodoc_preserve_defaults doesn't work on class methods 2022-05-08 22:59:14 +09:00
test_ext_autodoc_private_members.py Add test cases for #8180 2022-05-23 02:04:03 +09:00
test_ext_autodoc.py Remove unneeded noqa lint suppression comments (#10772) 2022-08-28 20:03:17 +01:00
test_ext_autosectionlabel.py Show the repr of the value in some warnings (#10439) 2022-06-16 21:07:25 +01:00
test_ext_autosummary.py Merge branch '5.x' into 10258_autosummary 2022-05-07 21:27:47 +09:00
test_ext_coverage.py .read_text() -> .read_text(encoding='utf8') 2022-04-27 03:04:19 +01:00
test_ext_doctest.py Fix highlighting lexers 2022-09-25 00:10:59 +01:00
test_ext_duration.py Collapse single line docstrings 2022-02-20 03:13:45 +00:00
test_ext_extlinks.py extlinks: Disable hardcoded links detector by default (refs: #10126) 2022-03-27 15:22:11 +09:00
test_ext_githubpages.py .read_text() -> .read_text(encoding='utf8') 2022-04-27 03:04:19 +01:00
test_ext_graphviz.py .read_text() -> .read_text(encoding='utf8') 2022-04-27 03:04:19 +01:00
test_ext_ifconfig.py .read_text() -> .read_text(encoding='utf8') 2022-04-27 03:04:19 +01:00
test_ext_imgconverter.py Merge pull request #10411 from tk0miya/10384_skip_tests_for_imgconverter 2022-05-03 01:42:50 +09:00
test_ext_inheritance_diagram.py .read_text() -> .read_text(encoding='utf8') 2022-04-27 03:04:19 +01:00
test_ext_intersphinx.py .read_text() -> .read_text(encoding='utf8') 2022-04-27 03:04:19 +01:00
test_ext_math.py imgmath: Allow embedding images in HTML as base64 (#10816) 2022-09-23 17:11:21 +01:00
test_ext_napoleon_docstring.py Properly support of in docstring type specifiers (#10738) 2022-08-02 23:43:32 +01:00
test_ext_napoleon_iterators.py Replace napoleon.iterators by simpler stack implementation (#9856) 2022-06-26 12:40:42 +01:00
test_ext_napoleon.py Fix flake8 5.0.0 reported formatting errors 2022-08-01 20:55:47 +02:00
test_ext_todo.py .read_text() -> .read_text(encoding='utf8') 2022-04-27 03:04:19 +01:00
test_ext_viewcode.py .read_text() -> .read_text(encoding='utf8') 2022-04-27 03:04:19 +01:00
test_extension.py Collapse single line docstrings 2022-02-20 03:13:45 +00:00
test_highlighting.py Fix highlighting lexers 2022-09-25 00:10:59 +01:00
test_intl.py Remove Pygments compatability code (#10812) 2022-09-09 05:08:48 +01:00
test_locale.py Collapse single line docstrings 2022-02-20 03:13:45 +00:00
test_markup.py Increase static typing strictness (#10530) 2022-06-16 19:50:01 +01:00
test_metadata.py Collapse single line docstrings 2022-02-20 03:13:45 +00:00
test_parser.py Collapse single line docstrings 2022-02-20 03:13:45 +00:00
test_project.py .write_text(...) -> .write_text(..., encoding='utf8') 2022-04-27 03:11:08 +01:00
test_pycode_ast.py Special case ** 2022-06-15 10:15:53 +01:00
test_pycode_parser.py Remove traces of Python 2 and 3.5 (#10560) 2022-06-16 21:37:46 +01:00
test_pycode.py Collapse single line docstrings 2022-02-20 03:13:45 +00:00
test_quickstart.py .read_text() -> .read_text(encoding='utf8') 2022-04-27 03:04:19 +01:00
test_roles.py Collapse single line docstrings 2022-02-20 03:13:45 +00:00
test_search.py Support searching for index entries (#10819) 2022-09-20 22:08:03 +01:00
test_setup_command.py Remove always-false branches 2022-05-02 17:47:46 +01:00
test_smartquotes.py .read_text() -> .read_text(encoding='utf8') 2022-04-27 03:04:19 +01:00
test_templating.py .read_text() -> .read_text(encoding='utf8') 2022-04-27 03:04:19 +01:00
test_theming.py Close #9974: html: Updated jQuery version from 3.5.1 to 3.6.0 2022-05-07 22:18:00 +09:00
test_toctree.py .write_text(...) -> .write_text(..., encoding='utf8') 2022-04-27 03:11:08 +01:00
test_transforms_post_transforms_code.py .read_text() -> .read_text(encoding='utf8') 2022-04-27 03:04:19 +01:00
test_transforms_post_transforms.py Review comments 2022-06-01 18:10:55 +01:00
test_util_docstrings.py Collapse single line docstrings 2022-02-20 03:13:45 +00:00
test_util_docutils.py Collapse single line docstrings 2022-02-20 03:13:45 +00:00
test_util_fileutil.py Use the flake8-comprehensions lint plugin (#10601) 2022-06-26 14:43:05 +01:00
test_util_i18n.py .write_text(...) -> .write_text(..., encoding='utf8') 2022-04-27 03:11:08 +01:00
test_util_images.py Collapse single line docstrings 2022-02-20 03:13:45 +00:00
test_util_inspect.py Remove unneeded noqa lint suppression comments (#10772) 2022-08-28 20:03:17 +01:00
test_util_inventory.py Collapse single line docstrings 2022-02-20 03:13:45 +00:00
test_util_logging.py logging: always show source locations as absolute paths (#10460) 2022-06-16 19:51:49 +01:00
test_util_matching.py Update include_patterns implementation (#10680) 2022-07-23 21:19:35 +01:00
test_util_nodes.py Catch DeprecationWarning for docutils.frontend.OptionParser 2022-04-22 04:21:38 +01:00
test_util_rst.py Collapse single line docstrings 2022-02-20 03:13:45 +00:00
test_util_template.py Collapse single line docstrings 2022-02-20 03:13:45 +00:00
test_util_typing.py Remove unneeded noqa lint suppression comments (#10772) 2022-08-28 20:03:17 +01:00
test_util.py Collapse single line docstrings 2022-02-20 03:13:45 +00:00
test_versioning.py Collapse single line docstrings 2022-02-20 03:13:45 +00:00
test_writer_latex.py Collapse single line docstrings 2022-02-20 03:13:45 +00:00
typing_test_data.py refactor: Fix flake8 violations under tests/ directory 2020-11-15 17:15:40 +09:00
utils.py refactor: ssl.wrap_context() has been deprecated now 2021-12-11 11:38:24 +09:00