feat: add README document contract
This commit is contained in:
@@ -17,6 +17,23 @@ class StructureTests(unittest.TestCase):
|
||||
self.assertEqual(len(intents), len(set(intents)), document_type.value)
|
||||
self.assertGreaterEqual(len(intents), 7, document_type.value)
|
||||
|
||||
def test_readme_outline_preserves_reader_onboarding_order(self) -> None:
|
||||
brief = Brief.from_dict(brief_dict("readme"))
|
||||
outline = create_outline(brief, make_sources())
|
||||
self.assertEqual(
|
||||
[section.intent for section in outline.sections],
|
||||
[
|
||||
"problem_value",
|
||||
"principles",
|
||||
"workflow",
|
||||
"installation",
|
||||
"quickstart",
|
||||
"configuration",
|
||||
"verification",
|
||||
"limits_next",
|
||||
],
|
||||
)
|
||||
|
||||
def test_reconcile_preserves_contract_order(self) -> None:
|
||||
brief = Brief.from_dict(brief_dict())
|
||||
sources = make_sources()
|
||||
|
||||
Reference in New Issue
Block a user