Skip to content

Commit 1775419

Browse files
committed
Added regression test for importing a class from a private submodule into a public one
1 parent 7e5e6fa commit 1775419

File tree

7 files changed

+41
-0
lines changed

7 files changed

+41
-0
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Importing a class from a private submodule to a public submodule
2+
at the same level of hierarchy in the module.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.. automodapi:: sphinx_automodapi.tests.example_module.public
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
Camelot
2+
=======
3+
4+
.. currentmodule:: sphinx_automodapi.tests.example_module.public
5+
6+
.. autoclass:: Camelot
7+
:show-inheritance:
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
2+
sphinx_automodapi.tests.example_module.public Module
3+
----------------------------------------------------
4+
5+
.. automodule:: sphinx_automodapi.tests.example_module.public
6+
7+
Classes
8+
^^^^^^^
9+
10+
.. automodsumm:: sphinx_automodapi.tests.example_module.public
11+
:classes-only:
12+
:toctree: api
13+
14+
Class Inheritance Diagram
15+
^^^^^^^^^^^^^^^^^^^^^^^^^
16+
17+
.. automod-diagram:: sphinx_automodapi.tests.example_module.public
18+
:private-bases:
19+
:parts: 1
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
.. currentmodule:: sphinx_automodapi.tests.example_module.public
2+
3+
.. autosummary::
4+
:toctree: api
5+
6+
Camelot
7+
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
class Camelot:
2+
"""
3+
It's a silly place anyway
4+
"""
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
from ._private import Camelot

0 commit comments

Comments
 (0)