Conversation
Reviewer's GuideReplaces jupyter-sphinx/pytest-doctestplus based documentation tests with Sybil-based doctest collection for usage.rst, configures Sphinx and matplotlib for plot rendering, and adjusts development/pytest configuration accordingly. Sequence diagram for Sybil-based doctest collection of usage.rstsequenceDiagram
actor Developer
participant pytest
participant Sybil
participant DocTestParser
participant PythonCodeBlockParser
participant usage_rst as usage_rst
participant namespace
Developer->>pytest: run tests
pytest->>Sybil: call pytest_collect_file
Sybil->>Sybil: apply patterns usage.rst
Sybil->>usage_rst: open and read content
Sybil->>DocTestParser: parse doctest blocks
Sybil->>PythonCodeBlockParser: parse python code blocks
DocTestParser-->>Sybil: doctest examples
PythonCodeBlockParser-->>Sybil: code block examples
Sybil->>namespace: call setup imports
namespace-->>Sybil: namespace with audresample and plot_signal
Sybil-->>pytest: pytest items for doctests
loop run doctests
pytest->>namespace: execute doctest example
end
Flow diagram for pytest and Sybil doctest executionflowchart TD
A[Developer runs pytest] --> B[pytest configuration
addopts: -p no:doctest]
B --> C[pytest test discovery]
C --> D[Sybil pytest_collect_file in docs_conftest]
D --> E[Sybil parses usage.rst
via DocTestParser and PythonCodeBlockParser]
E --> F[Sybil calls imports setup
populate namespace]
F --> G[pytest runs generated doctest items]
G --> H[Tests include calls to audresample and plot_signal]
H --> I[matplotlib uses Agg backend
no GUI windows]
I --> J[Test results reported by pytest]
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Replaces
jupyter-sphinxwithsybilfor testing usage documentation.