tests.mkdocs packageΒΆ
SubmodulesΒΆ
tests.mkdocs.conftest moduleΒΆ
Fixtures and helpers for MkDocs tests.
Separated from the root tests/conftest.py so that the MkDocs dependency
(and mkdocs-click, pymdown-extensions) is only imported when running
the tests in this subdirectory. Downstream packagers can skip these tests
with --ignore=tests/mkdocs without affecting the rest of the test suite.
tests.mkdocs.test_mkdocs moduleΒΆ
Tests for the MkDocs ANSI color plugin.
- tests.mkdocs.test_mkdocs.test_mkdocs_entry_point()[source]ΒΆ
Verify the
mkdocs.pluginsentry point is declared inpyproject.toml.
- tests.mkdocs.test_mkdocs.test_on_config_patches_formatters()[source]ΒΆ
After
on_config, both formatter classes inherit fromAnsiHtmlFormatter.
- tests.mkdocs.test_mkdocs.test_on_config_idempotent()[source]ΒΆ
Calling
on_configtwice does not create a new class each time.
- tests.mkdocs.test_mkdocs.test_patched_formatter_preserves_pymdownx_mro()[source]ΒΆ
The patched formatters still inherit from the original pymdownx classes.
- tests.mkdocs.test_mkdocs.test_patched_formatter_renders_ansi()[source]ΒΆ
The patched block formatter decomposes compound ANSI tokens into CSS classes.
- tests.mkdocs.test_mkdocs.test_patch_mkdocs_click_usage()[source]ΒΆ
After patching,
_make_usageyieldsansi-outputfences.
- tests.mkdocs.test_mkdocs.test_patch_mkdocs_click_plain_options()[source]ΒΆ
After patching,
_make_plain_optionsyieldsansi-outputfences.