Skip to content

Commit dc72aa0

Browse files
fix: update dev test assertions to match new 4-word title truncation behavior
1 parent c3814ad commit dc72aa0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

content-gen/src/tests/services/test_cosmos_service.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -699,7 +699,7 @@ async def mock_query(*_args, **_kwargs):
699699

700700
@pytest.mark.asyncio
701701
async def test_get_user_conversations_no_title_fallback(mock_cosmos_service):
702-
"""Test conversation title falls back to Untitled when no info available."""
702+
"""Test conversation title falls back to New Conversation when no info available."""
703703
conversations = [
704704
{
705705
"id": "conv-1",
@@ -720,7 +720,7 @@ async def mock_query(*_args, **_kwargs):
720720
await mock_cosmos_service.initialize()
721721
result = await mock_cosmos_service.get_user_conversations("user-123", limit=10)
722722

723-
assert result[0]["title"] == "Untitled Conversation"
723+
assert result[0]["title"] == "New Conversation"
724724

725725

726726
@pytest.mark.asyncio
@@ -749,8 +749,8 @@ async def mock_query(*_args, **_kwargs):
749749
await mock_cosmos_service.initialize()
750750
result = await mock_cosmos_service.get_user_conversations("user-123", limit=10)
751751

752-
# Title should be from first user message, truncated to 50 chars
753-
assert result[0]["title"] == "Create a marketing campaign for summer"
752+
# Title should be from first user message, truncated to 4 words
753+
assert result[0]["title"] == "Create a marketing campaign"
754754

755755

756756
@pytest.mark.asyncio

0 commit comments

Comments
 (0)