diff --git a/documentation/test_python/content/content.py b/documentation/test_python/content/content.py
index ea2d6f1b..185d93a0 100644
--- a/documentation/test_python/content/content.py
+++ b/documentation/test_python/content/content.py
@@ -3,4 +3,7 @@
class Class:
"""And this class summary, not shown either"""
+class AnotherClass:
+ """This class has summary from the docstring"""
+
CONSTANT: float = 3.14
diff --git a/documentation/test_python/content/docs.rst b/documentation/test_python/content/docs.rst
index 3c6ceb05..0161c2ce 100644
--- a/documentation/test_python/content/docs.rst
+++ b/documentation/test_python/content/docs.rst
@@ -10,5 +10,9 @@
This is detailed class docs. Here I *also* hate how it needs to be
indented.
+.. py:class:: content.AnotherClass
+
+ This class has external details but summary from the docstring.
+
.. py:data:: content.CONSTANT
:summary: This is finally a docstring for ``content.CONSTANT``
diff --git a/documentation/test_python/test_content.py b/documentation/test_python/test_content.py
index bdb77724..e61778a1 100644
--- a/documentation/test_python/test_content.py
+++ b/documentation/test_python/test_content.py
@@ -38,3 +38,4 @@ class Content(BaseInspectTestCase):
self.assertEqual(*self.actual_expected_contents('classes.html'))
self.assertEqual(*self.actual_expected_contents('content.html'))
self.assertEqual(*self.actual_expected_contents('content.Class.html'))
+ self.assertEqual(*self.actual_expected_contents('content.AnotherClass.html'))
--
2.30.2