CodeToRestSphinx_test.py - Unit testing for CodeToRestSphinx.py - a Sphinx extension to translate source code to reST¶
Imports¶
These are listed in the order prescribed by PEP 8.
Library imports¶
Third-party imports¶
None.
Local application imports¶
None.
Tests¶
See codechat_config.yaml - Configuration for a CodeChat project for an explanation of these arguments.
Check errors and warnings.
Myst cross-refs don’t work. TOOD: fix this!
Check styling.
Check Markdown rendering.
Check CodeChat_lexer_for_glob rendering.
Print out the Sphinx results on any test failure.
Root of this repo.
The actual file produced by Sphinx, relative to the Sphinx output directory.
The expected results, relative to the test directory.
Compare rendering of style_test.py - Styling tests for CodeChat to a known good copy.
If the files differ, show the diff.
We didn’t find the navigation heading.