Orchestrata Ultimate › Tests › Reference › knowledge_graph › test_adr_parser
Tests reference — tests/knowledge_graph/test_adr_parser.py
Module of tests/knowledge_graph, split out because the directory page would be too large.
Prose pending.
tests/knowledge_graph/test_adr_parser.py
source · 32 tests · 528 lines
Tests for knowledge_graph.adr_parser -- the pure text -> ParsedAdr parser
Covers: knowledge_graph.adr_parser
| Kind | Name | Line | Description |
|---|---|---|---|
| function | test_parse_adr_file_number_capture_is_digit_width_agnostic |
40 | 3-digit (wiki-width, post-renumber) and 4-digit (current repo-width) |
| function | test_parse_adr_file_register_is_always_factory |
54 | The one-ADR-per-file docs/adr corpus is always the factory register |
| function | test_parses_all_adr_sections_in_document_order |
125 | |
| function | test_parses_single_line_bullet_values |
135 | |
| function | test_missing_alternatives_bullet_defaults_to_empty_string |
151 | |
| function | test_present_alternatives_bullet_is_captured |
156 | |
| function | test_ignores_front_matter_banner_and_non_adr_headings |
161 | |
| function | test_empty_document_yields_no_adrs |
170 | |
| function | test_document_with_no_adr_sections_yields_no_adrs |
174 | |
| function | test_malformed_adr_number_raises_value_error_naming_the_heading |
178 | |
| function | test_wrapped_bullet_lines_are_folded_into_one_logical_value |
184 | |
| function | test_byte_stability_parsing_twice_yields_equal_results |
201 | |
| function | test_meta_line_section_extracts_date_and_status |
232 | |
| function | test_meta_line_prose_body_lands_in_decision_with_paragraph_breaks |
239 | |
| function | test_annotated_status_normalizes_to_canonical_token |
252 | |
| function | test_unrecognized_status_text_is_preserved_verbatim |
258 | |
| function | test_decision_bullet_wins_over_stray_prose |
267 | |
| function | test_meta_line_sections_are_byte_stable |
278 | |
| function | test_project_and_factory_registers_on_the_same_number_stay_distinct |
303 | ADR-0047: a 3-digit heading (project register) and a 4-digit heading |
| function | test_register_classification_by_heading_digit_width |
328 | |
| function | test_parse_adr_file_reads_the_standard_bullet_shape |
425 | |
| function | test_parse_adr_file_reads_the_em_dash_heading_and_bare_meta_lines |
444 | |
| function | test_parse_adr_file_status_is_normalized_for_the_immutability_guard |
454 | |
| function | test_parse_adr_file_date_preserves_reconstructed_record_provenance |
461 | |
| function | test_parse_adr_file_preamble_blockquote_folds_into_context |
469 | |
| function | test_parse_adr_file_custom_heading_folds_into_consequences_labeled |
475 | |
| function | test_parse_adr_file_raises_on_missing_heading |
483 | |
| function | test_parse_adr_file_raises_on_empty_document |
488 | |
| function | test_parse_adr_file_folds_wrapped_status_and_date_bullets |
493 | |
| function | test_parse_adr_file_raises_on_unparseable_number |
509 | |
| function | test_parse_adr_file_handles_no_blank_line_before_first_section |
514 | |
| function | test_parse_adr_file_is_byte_stable |
527 |