mirror of
https://github.com/Such-Software/adaptive-multi-protocol-gateway.git
synced 2026-10-17 07:31:32 +02:00
Add interaction capability policy docs
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
from pathlib import Path
|
||||
import unittest
|
||||
|
||||
|
||||
ROOT = Path(__file__).resolve().parents[1]
|
||||
PRIVATE_TARGET_TERMS = (
|
||||
"wowrace",
|
||||
"wowngeon",
|
||||
"smirk-monorepo",
|
||||
"medusa-multi-tenant-platform",
|
||||
"ai-gen-bot",
|
||||
)
|
||||
|
||||
|
||||
class PublicPrivateSplitTest(unittest.TestCase):
|
||||
def test_private_target_names_do_not_appear_in_public_docs(self):
|
||||
failures = []
|
||||
for path in sorted((ROOT / "docs").rglob("*.md")):
|
||||
rel = path.relative_to(ROOT)
|
||||
if "private" in rel.parts:
|
||||
continue
|
||||
text = path.read_text(encoding="utf-8").lower()
|
||||
for term in PRIVATE_TARGET_TERMS:
|
||||
if term in text:
|
||||
failures.append(f"{rel}: contains private target term {term!r}")
|
||||
self.assertEqual([], failures)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
unittest.main()
|
||||
Reference in New Issue
Block a user