WIP: PYTHON
This commit is contained in:
@@ -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"""
|
||||
|
||||
Reference in New Issue
Block a user