tests.test_frontmatter module¶
Tests for the shared YAML frontmatter splitter.
- tests.test_frontmatter.test_splits_frontmatter_and_body()[source]¶
A well-formed block yields its mapping and the body below it.
- tests.test_frontmatter.test_values_keep_yaml_types()[source]¶
Nested mappings and lists read back as structures, not strings.
- tests.test_frontmatter.test_value_containing_delimiter_survives()[source]¶
A
---inside a value does not truncate the block.The naive “split on the first two
---runs” approach cuts the block short here, dropping every field afterargument-hintand leaking the remainder into the body.