sphinx/tests/test_extensions
Trevor Bekolay 2c0943784c
Disallow module cycles in autosummary (#6792)
Consider the following piece of reST::

  .. automodule:: sphinx.ext.autosummary
     :members:

     .. autosummary::

        sphinx.ext.autosummary.Autosummary

This inserts an autosummary after the module docstring, but before
the members of the module. Without the change in this commit, this
would fail because `import_by_name` would attempt to import::

    sphinx.ext.autosummary.sphinx.ext.autosummary.Autosumary

because the prefix (from the parent) is `sphinx.ext.autosummary`,
and the name is `sphinx.ext.autosummary.Autosummary`, which is able
to be imported from `sphinx.ext.autosummary`, but is not the way
that anyone would want to refer to it.

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2024-07-13 06:37:50 +01:00
..
__init__.py Organise tests into directories 2024-01-17 03:56:35 +00:00
autodoc_util.py [tests] move utilities and static data into dedicated modules and remove `html5lib` (#12173) 2024-03-25 11:03:44 +01:00
ext_napoleon_pep526_data_google.py Organise tests into directories 2024-01-17 03:56:35 +00:00
ext_napoleon_pep526_data_numpy.py Organise tests into directories 2024-01-17 03:56:35 +00:00
test_ext_apidoc.py Bump Ruff to 0.5.1 (#12530) 2024-07-10 14:13:10 +01:00
test_ext_autodoc_autoattribute.py [tests] move utilities and static data into dedicated modules and remove `html5lib` (#12173) 2024-03-25 11:03:44 +01:00
test_ext_autodoc_autoclass.py Don't render types with `Optional[...]` 2024-04-15 01:35:47 +01:00
test_ext_autodoc_autodata.py [tests] move utilities and static data into dedicated modules and remove `html5lib` (#12173) 2024-03-25 11:03:44 +01:00
test_ext_autodoc_autofunction.py [tests] move utilities and static data into dedicated modules and remove `html5lib` (#12173) 2024-03-25 11:03:44 +01:00
test_ext_autodoc_automodule.py Improve type hints for `sphinx.ext.autodoc.mock` (#12280) 2024-04-22 23:23:57 +01:00
test_ext_autodoc_autoproperty.py [tests] move utilities and static data into dedicated modules and remove `html5lib` (#12173) 2024-03-25 11:03:44 +01:00
test_ext_autodoc_configs.py 🧪 Fix python 3.13 tests (#12373) 2024-05-15 06:28:40 +02:00
test_ext_autodoc_events.py [tests] move utilities and static data into dedicated modules and remove `html5lib` (#12173) 2024-03-25 11:03:44 +01:00
test_ext_autodoc_mock.py Organise tests into directories 2024-01-17 03:56:35 +00:00
test_ext_autodoc_preserve_defaults.py [tests] move utilities and static data into dedicated modules and remove `html5lib` (#12173) 2024-03-25 11:03:44 +01:00
test_ext_autodoc_private_members.py [tests] move utilities and static data into dedicated modules and remove `html5lib` (#12173) 2024-03-25 11:03:44 +01:00
test_ext_autodoc.py Bump Ruff to 0.5.1 (#12530) 2024-07-10 14:13:10 +01:00
test_ext_autosectionlabel.py Use long `re` flags 2024-01-19 02:28:06 +00:00
test_ext_autosummary_imports.py Disallow module cycles in autosummary (#6792) 2024-07-13 06:37:50 +01:00
test_ext_autosummary.py Rewrite `usage/configuration.rst` (#12537) 2024-07-10 21:43:14 +01:00
test_ext_coverage.py Allow explicitly specifying modules in the coverage builder (#11592) 2024-07-11 07:36:36 +01:00
test_ext_doctest.py Organise tests into directories 2024-01-17 03:56:35 +00:00
test_ext_duration.py Organise tests into directories 2024-01-17 03:56:35 +00:00
test_ext_extlinks.py Organise tests into directories 2024-01-17 03:56:35 +00:00
test_ext_githubpages.py Organise tests into directories 2024-01-17 03:56:35 +00:00
test_ext_graphviz.py Rewrite `usage/configuration.rst` (#12537) 2024-07-10 21:43:14 +01:00
test_ext_ifconfig.py Organise tests into directories 2024-01-17 03:56:35 +00:00
test_ext_imgconverter.py Rewrite `usage/configuration.rst` (#12537) 2024-07-10 21:43:14 +01:00
test_ext_imgmockconverter.py Rewrite `usage/configuration.rst` (#12537) 2024-07-10 21:43:14 +01:00
test_ext_inheritance_diagram.py Rewrite `usage/configuration.rst` (#12537) 2024-07-10 21:43:14 +01:00
test_ext_intersphinx.py Intersphinx: log warnings for ambiguous target resolutions. (#12329) 2024-06-17 12:42:22 +02:00
test_ext_math.py Allow configuring the separator used in numbering equations (#12523) 2024-07-10 22:23:38 +01:00
test_ext_napoleon_docstring.py [tests] move utilities and static data into dedicated modules and remove `html5lib` (#12173) 2024-03-25 11:03:44 +01:00
test_ext_napoleon.py Organise tests into directories 2024-01-17 03:56:35 +00:00
test_ext_todo.py Rewrite `usage/configuration.rst` (#12537) 2024-07-10 21:43:14 +01:00
test_ext_viewcode.py Disallow module cycles in autosummary (#6792) 2024-07-13 06:37:50 +01:00
test_extension.py Organise tests into directories 2024-01-17 03:56:35 +00:00