forked from Rockachopa/Timmy-time-dashboard
@@ -77,7 +77,7 @@ async def test_chat_records_error_on_exception():
|
||||
):
|
||||
from timmy.session import chat
|
||||
|
||||
result = await chat("Hi Timmy")
|
||||
await chat("Hi Timmy")
|
||||
|
||||
# Verify error was recorded
|
||||
mock_session_logger.record_error.assert_called_once()
|
||||
@@ -101,7 +101,7 @@ async def test_chat_records_error_on_connection_error():
|
||||
):
|
||||
from timmy.session import chat
|
||||
|
||||
result = await chat("Hi Timmy")
|
||||
await chat("Hi Timmy")
|
||||
|
||||
# Verify error was recorded
|
||||
mock_session_logger.record_error.assert_called_once()
|
||||
@@ -204,7 +204,7 @@ async def test_chat_with_tools_records_error():
|
||||
):
|
||||
from timmy.session import chat_with_tools
|
||||
|
||||
result = await chat_with_tools("Use a tool")
|
||||
await chat_with_tools("Use a tool")
|
||||
|
||||
# Verify error was recorded
|
||||
mock_session_logger.record_error.assert_called_once()
|
||||
@@ -271,7 +271,7 @@ async def test_continue_chat_records_error():
|
||||
):
|
||||
from timmy.session import continue_chat
|
||||
|
||||
result = await continue_chat(mock_run_output)
|
||||
await continue_chat(mock_run_output)
|
||||
|
||||
# Verify error was recorded
|
||||
mock_session_logger.record_error.assert_called_once()
|
||||
|
||||
@@ -292,7 +292,7 @@ class TestSemanticMemory:
|
||||
conn = sqlite3.connect(str(mem.db_path))
|
||||
cursor = conn.execute(
|
||||
"SELECT COUNT(*) FROM memories WHERE source = ? AND memory_type = 'vault_chunk'",
|
||||
(str(md_file),)
|
||||
(str(md_file),),
|
||||
)
|
||||
stored_count = cursor.fetchone()[0]
|
||||
conn.close()
|
||||
|
||||
Reference in New Issue
Block a user