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.plugins entry point is declared in pyproject.toml.

tests.mkdocs.test_mkdocs.test_on_config_patches_formatters()[source]ΒΆ

After on_config, both formatter classes inherit from AnsiHtmlFormatter.

tests.mkdocs.test_mkdocs.test_on_config_idempotent()[source]ΒΆ

Calling on_config twice 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_usage yields ansi-output fences.

tests.mkdocs.test_mkdocs.test_patch_mkdocs_click_plain_options()[source]ΒΆ

After patching, _make_plain_options yields ansi-output fences.

tests.mkdocs.test_mkdocs.test_patch_mkdocs_click_idempotent()[source]ΒΆ

Calling _patch_mkdocs_click twice does not double-wrap.

tests.mkdocs.test_mkdocs.test_on_config_patches_mkdocs_click()[source]ΒΆ

on_config patches mkdocs-click alongside pymdownx.highlight.