feat: Add intelligent auto-router and enhanced integrations
- Add intelligent-router.sh hook for automatic agent routing - Add AUTO-TRIGGER-SUMMARY.md documentation - Add FINAL-INTEGRATION-SUMMARY.md documentation - Complete Prometheus integration (6 commands + 4 tools) - Complete Dexto integration (12 commands + 5 tools) - Enhanced Ralph with access to all agents - Fix /clawd command (removed disable-model-invocation) - Update hooks.json to v5 with intelligent routing - 291 total skills now available - All 21 commands with automatic routing 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
35
prometheus/tests/lang_graph/nodes/test_git_diff_node.py
Normal file
35
prometheus/tests/lang_graph/nodes/test_git_diff_node.py
Normal file
@@ -0,0 +1,35 @@
|
||||
from unittest.mock import Mock
|
||||
|
||||
import pytest
|
||||
|
||||
from prometheus.git.git_repository import GitRepository
|
||||
from prometheus.lang_graph.nodes.git_diff_node import GitDiffNode
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def mock_git_repo():
|
||||
git_repo = Mock(spec=GitRepository)
|
||||
git_repo.get_diff.return_value = "sample diff content"
|
||||
return git_repo
|
||||
|
||||
|
||||
def test_git_diff_node(mock_git_repo):
|
||||
node = GitDiffNode(mock_git_repo, "patch")
|
||||
|
||||
# Execute
|
||||
result = node({})
|
||||
|
||||
# Assert
|
||||
assert result == {"patch": "sample diff content"}
|
||||
mock_git_repo.get_diff.assert_called_with(None)
|
||||
|
||||
|
||||
def test_git_diff_node_with_excluded_files(mock_git_repo):
|
||||
node = GitDiffNode(mock_git_repo, "patch", "excluded_file")
|
||||
|
||||
# Execute
|
||||
result = node({"excluded_file": "/foo/bar.py"})
|
||||
|
||||
# Assert
|
||||
assert result == {"patch": "sample diff content"}
|
||||
mock_git_repo.get_diff.assert_called_with(["/foo/bar.py"])
|
||||
Reference in New Issue
Block a user