WIP: PYTHON

This commit is contained in:
2026-03-05 14:07:04 -05:00
parent a13a6c5cd0
commit e81843b11b
10 changed files with 97 additions and 106 deletions

View File

@@ -30,6 +30,7 @@ def test_mcp_blacklist() -> None:
from src import mcp_client
from src.models import CONFIG_PATH
# CONFIG_PATH is usually something like 'config.toml'
# We check against the string name because Path objects can be tricky with blacklists
assert mcp_client._is_allowed(Path("src/gui_2.py")) is True
# config.toml should be blacklisted for reading by the AI
assert mcp_client._is_allowed(Path(CONFIG_PATH)) is False
@@ -44,8 +45,6 @@ def test_aggregate_blacklist() -> None:
# which already had blacklisted files filtered out by aggregate.run
md = aggregate.build_markdown_no_history(file_items, Path("."), [])
assert "src/gui_2.py" in md
# Even if it was passed, the build_markdown function doesn't blacklist
# It's the build_file_items that does the filtering.
def test_migration_on_load(tmp_path: Path) -> None:
"""Tests that legacy configuration is correctly migrated on load"""