Test add_user_message.
(chat_context)
| 228 | |
| 229 | @pytest.mark.asyncio |
| 230 | async def test_add_user_message(chat_context): |
| 231 | """Test add_user_message.""" |
| 232 | await chat_context.initialize() |
| 233 | initial_len = len(chat_context.conversation_history) |
| 234 | await chat_context.add_user_message("Hello!") |
| 235 | assert len(chat_context.conversation_history) == initial_len + 1 |
| 236 | assert chat_context.conversation_history[-1].content == "Hello!" |
| 237 | assert chat_context.conversation_history[-1].role.value == "user" |
| 238 | |
| 239 | |
| 240 | @pytest.mark.asyncio |
nothing calls this directly
no test coverage detected