feat(mma): Implement Role-Scoped Document selection logic

This commit is contained in:
2026-02-25 19:12:02 -05:00
parent 067cfba7f3
commit 55c0fd1c52
2 changed files with 21 additions and 2 deletions

View File

@@ -1,5 +1,5 @@
import pytest
from scripts.mma_exec import create_parser
from scripts.mma_exec import create_parser, get_role_documents
def test_parser_role_choices():
"""Test that the parser accepts valid roles and the prompt argument."""
@@ -29,4 +29,11 @@ def test_parser_help():
parser = create_parser()
with pytest.raises(SystemExit) as excinfo:
parser.parse_args(['--help'])
assert excinfo.value.code == 0
assert excinfo.value.code == 0
def test_get_role_documents():
"""Test that get_role_documents returns the correct documentation paths for each tier."""
assert get_role_documents('tier1') == ['conductor/product.md', 'conductor/product-guidelines.md']
assert get_role_documents('tier2') == ['conductor/tech-stack.md', 'conductor/workflow.md']
assert get_role_documents('tier3') == ['conductor/workflow.md']
assert get_role_documents('tier4') == []