chore: ran linter & formatter again
This commit is contained in:
@@ -10,8 +10,8 @@ class TestChatCompletionsEdgeCases:
|
||||
|
||||
def test_very_long_message(self, memory):
|
||||
"""Should handle very long user message."""
|
||||
from alfred.app import app
|
||||
from alfred.agent import agent
|
||||
from alfred.app import app
|
||||
|
||||
# Patch the agent's LLM directly
|
||||
mock_llm = Mock()
|
||||
@@ -33,8 +33,8 @@ class TestChatCompletionsEdgeCases:
|
||||
|
||||
def test_unicode_message(self, memory):
|
||||
"""Should handle unicode in message."""
|
||||
from alfred.app import app
|
||||
from alfred.agent import agent
|
||||
from alfred.app import app
|
||||
|
||||
mock_llm = Mock()
|
||||
mock_llm.complete.return_value = {
|
||||
@@ -59,8 +59,8 @@ class TestChatCompletionsEdgeCases:
|
||||
|
||||
def test_special_characters_in_message(self, memory):
|
||||
"""Should handle special characters."""
|
||||
from alfred.app import app
|
||||
from alfred.agent import agent
|
||||
from alfred.app import app
|
||||
|
||||
mock_llm = Mock()
|
||||
mock_llm.complete.return_value = {"role": "assistant", "content": "Response"}
|
||||
@@ -187,8 +187,8 @@ class TestChatCompletionsEdgeCases:
|
||||
|
||||
def test_many_messages(self, memory):
|
||||
"""Should handle many messages in conversation."""
|
||||
from alfred.app import app
|
||||
from alfred.agent import agent
|
||||
from alfred.app import app
|
||||
|
||||
mock_llm = Mock()
|
||||
mock_llm.complete.return_value = {"role": "assistant", "content": "Response"}
|
||||
@@ -301,8 +301,8 @@ class TestChatCompletionsEdgeCases:
|
||||
|
||||
def test_extra_fields_in_request(self, memory):
|
||||
"""Should ignore extra fields in request."""
|
||||
from alfred.app import app
|
||||
from alfred.agent import agent
|
||||
from alfred.app import app
|
||||
|
||||
mock_llm = Mock()
|
||||
mock_llm.complete.return_value = {"role": "assistant", "content": "Response"}
|
||||
@@ -325,8 +325,8 @@ class TestChatCompletionsEdgeCases:
|
||||
|
||||
def test_streaming_with_tool_call(self, memory, real_folder):
|
||||
"""Should handle streaming with tool execution."""
|
||||
from alfred.app import app
|
||||
from alfred.agent import agent
|
||||
from alfred.app import app
|
||||
from alfred.infrastructure.persistence import get_memory
|
||||
|
||||
mem = get_memory()
|
||||
@@ -371,8 +371,8 @@ class TestChatCompletionsEdgeCases:
|
||||
|
||||
def test_concurrent_requests_simulation(self, memory):
|
||||
"""Should handle rapid sequential requests."""
|
||||
from alfred.app import app
|
||||
from alfred.agent import agent
|
||||
from alfred.app import app
|
||||
|
||||
mock_llm = Mock()
|
||||
mock_llm.complete.return_value = {"role": "assistant", "content": "Response"}
|
||||
@@ -392,8 +392,8 @@ class TestChatCompletionsEdgeCases:
|
||||
|
||||
def test_llm_returns_json_in_response(self, memory):
|
||||
"""Should handle LLM returning JSON in text response."""
|
||||
from alfred.app import app
|
||||
from alfred.agent import agent
|
||||
from alfred.app import app
|
||||
|
||||
mock_llm = Mock()
|
||||
mock_llm.complete.return_value = {
|
||||
|
||||
Reference in New Issue
Block a user