Files
SuperCharged-Claude-Code-Up…/prometheus/tests/lang_graph/nodes/test_update_container_node.py
admin b52318eeae 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>
2026-01-28 00:27:56 +04:00

25 lines
1.0 KiB
Python

from pathlib import Path
from unittest.mock import Mock
from prometheus.docker.general_container import GeneralContainer
from prometheus.git.git_repository import GitRepository
from prometheus.lang_graph.nodes.update_container_node import UpdateContainerNode
def test_update_container_node():
mocked_container = Mock(spec=GeneralContainer)
mocked_container.is_running.return_value = True
mocked_git_repo = Mock(spec=GitRepository)
mocked_git_repo.get_diff.return_value = "--- /dev/null\n+++ b/newfile\n@@ -0,0 +1 @@\n+content"
mocked_git_repo.get_working_directory.return_value = Path("/test/working/dir/repositories/repo")
update_container_node = UpdateContainerNode(mocked_container, mocked_git_repo)
update_container_node(None)
assert mocked_git_repo.get_diff.call_count == 1
assert mocked_container.is_running.call_count == 1
assert mocked_container.update_files.call_count == 1
mocked_container.update_files.assert_called_with(
Path("/test/working/dir/repositories/repo"), [Path("newfile")], []
)