Migrate Policy retention interfaces
This commit is contained in:
@@ -58,6 +58,20 @@ class PolicyModuleContractTests(unittest.TestCase):
|
||||
set(manifest.capability_factories),
|
||||
)
|
||||
|
||||
def test_retention_documentation_exposes_stable_help_contexts(self) -> None:
|
||||
topic = next(
|
||||
item
|
||||
for item in manifest.documentation
|
||||
if item.id == "policy.hierarchy-overrides-and-retention"
|
||||
)
|
||||
|
||||
self.assertEqual(
|
||||
["policy.retention", "privacy.retention"],
|
||||
topic.metadata["help_contexts"],
|
||||
)
|
||||
self.assertEqual("workflow", topic.metadata["kind"])
|
||||
self.assertIn("/admin", topic.metadata["route"])
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
unittest.main()
|
||||
|
||||
Reference in New Issue
Block a user