tests.test_myst moduleΒΆ

Tests for the reST-to-MyST converters and the convert-to-myst command.

tests.test_myst.test_convert_xrefs(rst, expected)[source]ΒΆ
tests.test_myst.test_convert_inline_code(rst, expected)[source]ΒΆ
tests.test_myst.test_convert_directives(rst, expected_fragments)[source]ΒΆ
tests.test_myst.test_convert_directives_keeps_fenced_body()[source]ΒΆ

A directive body already holding a fence cannot nest: it stays reST.

tests.test_myst.test_convert_directives_skips_fence_interiors()[source]ΒΆ

A reST directive inside a fence is prior nested-conversion output: keep it.

tests.test_myst.test_convert_source_nested_directives_idempotent()[source]ΒΆ

Nested directives convert the outer level only, and re-runs are no-ops.

tests.test_myst.test_convert_source_fenced_samples_untouched()[source]ΒΆ

Fence bodies are sample code: reST markup inside them is data.

tests.test_myst.test_convert_comment_blocks()[source]ΒΆ

#: blocks are unwrapped, converted, and re-wrapped.

tests.test_myst.test_convert_source_scopes_to_docstrings_and_comments()[source]ΒΆ
tests.test_myst.test_convert_source_attribute_docstrings()[source]ΒΆ
tests.test_myst.test_convert_source_sharp_colon_comment_blocks()[source]ΒΆ
tests.test_myst.test_convert_file_roundtrip_and_idempotence(tmp_path)[source]ΒΆ
tests.test_myst.test_convert_directory_reports_only_changed(tmp_path)[source]ΒΆ
tests.test_myst.test_convert_to_myst_cli_explicit_directory(tmp_path)[source]ΒΆ
tests.test_myst.test_convert_to_myst_cli_autodetect(tmp_path, monkeypatch)[source]ΒΆ
tests.test_myst.test_convert_to_myst_cli_autodetect_failure(tmp_path, monkeypatch)[source]ΒΆ
tests.test_myst.test_convert_to_myst_cli_not_a_directory(tmp_path)[source]ΒΆ
tests.test_myst.test_heading_conversion(rst, expected)[source]ΒΆ
tests.test_myst.test_automodule_block_wrapped_in_eval_rst()[source]ΒΆ
tests.test_myst.test_convert_rst_files_creates_md_and_deletes_rst(tmp_path)[source]ΒΆ
tests.test_myst.test_convert_rst_files_skips_non_apidoc(tmp_path)[source]ΒΆ
tests.test_myst.test_convert_rst_files_existing_md_wins(tmp_path)[source]ΒΆ