Skip to content

Expand the Layer base class docstring - #134

Merged
jensens merged 1 commit into
masterfrom
enrich-layer-docstring
Jul 24, 2026
Merged

Expand the Layer base class docstring#134
jensens merged 1 commit into
masterfrom
enrich-layer-docstring

Conversation

@jensens

@jensens jensens commented Jul 24, 2026

Copy link
Copy Markdown
Member

Why

plone.testing.layer.Layer — the base class of the whole testing-layer model — had a one-line docstring: "A base class for layers."

This is groundwork for an autodoc-generated API reference in the Plone documentation (a testing chapter that documents both plone.testing and plone.app.testing). autodoc can only be as good as the docstring.

What

Docstring only, no behaviour change. The Layer docstring now describes:

  • the setUp/tearDown (once) and testSetUp/testTearDown (per test) lifecycle;
  • the resource mapping (self[key] = value / self.layer[key]);
  • composition through bases / defaultBases.

🤖 Generated with Claude Code

The class had only 'A base class for layers.'. Describe the setUp/tearDown
and testSetUp/testTearDown lifecycle, the resource mapping (self[key]),
and composition through bases. Groundwork for an autodoc-generated API
reference in the Plone documentation. Docstring only, no behaviour change.
@mister-roboto

Copy link
Copy Markdown

@jensens thanks for creating this Pull Request and helping to improve Plone!

TL;DR: Finish pushing changes, pass all other checks, then paste a comment:

@jenkins-plone-org please run jobs

To ensure that these changes do not break other parts of Plone, the Plone test suite matrix needs to pass, but it takes 30-60 min. Other CI checks are usually much faster and the Plone Jenkins resources are limited, so when done pushing changes and all other checks pass either start all Jenkins PR jobs yourself, or simply add the comment above in this PR to start all the jobs automatically.

Happy hacking!

@jensens
jensens merged commit 51e369f into master Jul 24, 2026
9 of 13 checks passed
@jensens
jensens deleted the enrich-layer-docstring branch July 24, 2026 22:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants