Skip to content

Commit a79f8d9

Browse files
Copilotpontemonti
andcommitted
Use consistent datetime import style in test_send_chat_history.py
Co-authored-by: pontemonti <[email protected]>
1 parent 1b6f196 commit a79f8d9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/tooling/services/test_send_chat_history.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
"""Unit tests for send_chat_history method in McpToolServerConfigurationService."""
55

6-
from datetime import UTC, datetime
6+
from datetime import datetime, timezone
77
from unittest.mock import AsyncMock, MagicMock, Mock, patch
88

99
import pytest
@@ -32,7 +32,7 @@ def mock_turn_context(self):
3232
@pytest.fixture
3333
def chat_history_messages(self):
3434
"""Create sample chat history messages."""
35-
timestamp = datetime.now(UTC)
35+
timestamp = datetime.now(timezone.utc)
3636
return [
3737
ChatHistoryMessage("msg-1", "user", "Hello", timestamp),
3838
ChatHistoryMessage("msg-2", "assistant", "Hi there!", timestamp),

0 commit comments

Comments
 (0)