Skip to content

Commit 7ead79d

Browse files
committed
wip: fix test for CI env
1 parent 23f37dd commit 7ead79d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/models/test_openai.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -634,15 +634,15 @@ async def test_stream_with_embedded_thinking_sets_metadata(allow_model_requests:
634634
# Verify ThinkingPart has id='content' and provider_name='openai' (covers lines 1748-1749)
635635
assert result.all_messages() == snapshot(
636636
[
637-
ModelRequest(parts=[UserPromptPart(content='', timestamp=IsDatetime())]),
637+
ModelRequest(parts=[UserPromptPart(content='', timestamp=IsNow(tz=timezone.utc))]),
638638
ModelResponse(
639639
parts=[
640640
ThinkingPart(content='reasoning', id='content', provider_name='openai'),
641641
TextPart(content='response'),
642642
],
643643
usage=RequestUsage(input_tokens=10, output_tokens=5),
644644
model_name='gpt-4o-123',
645-
timestamp=IsDatetime(),
645+
timestamp=datetime(2024, 1, 1, 0, 0, tzinfo=timezone.utc),
646646
provider_name='openai',
647647
provider_response_id='123',
648648
),

0 commit comments

Comments
 (0)