Migration from Docker to Standalone Python Server (#73)
* Migration from docker to standalone server Migration handling Fixed tests Use simpler in-memory storage Support for concurrent logging to disk Simplified direct connections to localhost * Migration from docker / redis to standalone script Updated tests Updated run script Fixed requirements Use dotenv Ask if user would like to install MCP in Claude Desktop once Updated docs * More cleanup and references to docker removed * Cleanup * Comments * Fixed tests * Fix GitHub Actions workflow for standalone Python architecture - Install requirements-dev.txt for pytest and testing dependencies - Remove Docker setup from simulation tests (now standalone) - Simplify linting job to use requirements-dev.txt - Update simulation tests to run directly without Docker Fixes unit test failures in CI due to missing pytest dependency. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com> * Remove simulation tests from GitHub Actions - Removed simulation-tests job that makes real API calls - Keep only unit tests (mocked, no API costs) and linting - Simulation tests should be run manually with real API keys - Reduces CI costs and complexity GitHub Actions now only runs: - Unit tests (569 tests, all mocked) - Code quality checks (ruff, black) 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com> * Fixed tests * Fixed tests --------- Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
committed by
GitHub
parent
9d72545ecd
commit
4151c3c3a5
@@ -80,11 +80,11 @@ class TestImageSupportIntegration:
|
||||
expected = ["shared.png", "new_diagram.png", "middle.png", "old_diagram.png"]
|
||||
assert image_list == expected
|
||||
|
||||
@patch("utils.conversation_memory.get_redis_client")
|
||||
def test_add_turn_with_images(self, mock_redis):
|
||||
@patch("utils.conversation_memory.get_storage")
|
||||
def test_add_turn_with_images(self, mock_storage):
|
||||
"""Test adding a conversation turn with images."""
|
||||
mock_client = Mock()
|
||||
mock_redis.return_value = mock_client
|
||||
mock_storage.return_value = mock_client
|
||||
|
||||
# Mock the Redis operations to return success
|
||||
mock_client.set.return_value = True
|
||||
@@ -348,11 +348,11 @@ class TestImageSupportIntegration:
|
||||
importlib.reload(config)
|
||||
ModelProviderRegistry._instance = None
|
||||
|
||||
@patch("utils.conversation_memory.get_redis_client")
|
||||
def test_cross_tool_image_context_preservation(self, mock_redis):
|
||||
@patch("utils.conversation_memory.get_storage")
|
||||
def test_cross_tool_image_context_preservation(self, mock_storage):
|
||||
"""Test that images are preserved across different tools in conversation."""
|
||||
mock_client = Mock()
|
||||
mock_redis.return_value = mock_client
|
||||
mock_storage.return_value = mock_client
|
||||
|
||||
# Mock the Redis operations to return success
|
||||
mock_client.set.return_value = True
|
||||
@@ -521,11 +521,11 @@ class TestImageSupportIntegration:
|
||||
result = tool._validate_image_limits(None, "test_model")
|
||||
assert result is None
|
||||
|
||||
@patch("utils.conversation_memory.get_redis_client")
|
||||
def test_conversation_memory_thread_chaining_with_images(self, mock_redis):
|
||||
@patch("utils.conversation_memory.get_storage")
|
||||
def test_conversation_memory_thread_chaining_with_images(self, mock_storage):
|
||||
"""Test that images work correctly with conversation thread chaining."""
|
||||
mock_client = Mock()
|
||||
mock_redis.return_value = mock_client
|
||||
mock_storage.return_value = mock_client
|
||||
|
||||
# Mock the Redis operations to return success
|
||||
mock_client.set.return_value = True
|
||||
|
||||
Reference in New Issue
Block a user