Skip to content

docs: add docstrings to nested test helpers (#64) - #76

Open
tschm wants to merge 1 commit into
alihaskar:masterfrom
tschm:fix/64-test-helper-docstrings
Open

docs: add docstrings to nested test helpers (#64)#76
tschm wants to merge 1 commit into
alihaskar:masterfrom
tschm:fix/64-test-helper-docstrings

Conversation

@tschm

@tschm tschm commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

Summary

Rhiza v1.2.2 widens the docs-coverage gate from ${SOURCE_FOLDER} to src tests .rhiza/tests, so helpers defined inside test bodies are now scanned by interrogate --fail-under 100. Eight were undocumented, putting the gate at 97.4%.

Adds a one-line docstring to each:

File Helper
tests/pycharting/api/test_interface.py _Event, _Event.is_set, _Event.wait
tests/pycharting/api/test_interface.py _InterruptingEvent, .is_set, .wait
tests/pycharting/core/test_lifecycle.py _healthy (×2)

__init__ needs none — the gate runs with --ignore-init-method.

Verification

$ interrogate --fail-under 100 --ignore-init-method --ignore-magic src tests
RESULT: PASSED (minimum: 100.0%, actual: 100.0%)

$ make test
154 passed — Total coverage: 100.00%

Note: on master (rhiza v0.18.8) the gate only scans src/, so it passes there already; this was verified against the v1.2.2 scope that surfaced it.

Tests-only change — no src/ or behaviour touched.

Closes #64

Rhiza v1.2.2 widens the docs-coverage gate from ${SOURCE_FOLDER} to
"src tests .rhiza/tests", so helper classes and functions defined inside
test bodies are now scanned by interrogate --fail-under 100.

Documents the eight that were missing:
  - _Event and its is_set/wait     (test_interface.py)
  - _InterruptingEvent and its is_set/wait (test_interface.py)
  - _healthy x2                    (test_lifecycle.py)

Tests-only change; no src/ or behaviour is touched.

Closes alihaskar#64

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings July 28, 2026 08:58

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR restores interrogate --fail-under 100 docstring coverage after the docs-coverage gate began scanning nested helpers inside tests/ by adding concise docstrings to helper classes/methods and nested helper functions within test bodies.

Changes:

  • Added docstrings to nested helper event classes and their is_set/wait methods used by blocking-plot tests.
  • Added docstrings to nested _healthy() retry helpers used by lifecycle integration tests.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
tests/pycharting/api/test_interface.py Adds docstrings to nested fake event helpers used to drive blocking/interrupt test behavior.
tests/pycharting/core/test_lifecycle.py Adds docstrings to nested _healthy() polling helpers used by server health integration tests.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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.

Add docstrings to 8 nested test helpers to restore 100% docs coverage

2 participants