main
py 12 lines 409 Bytes
Raw
1 # SPDX-License-Identifier: Apache-2.0
2 # SPDX-FileCopyrightText: Copyright contributors to the vLLM project
3
4 from unittest.mock import Mock
5
6 from vllm.reasoning.gptoss_reasoning_parser import GptOssReasoningParser
7
8
9 def test_gptoss_reasoning_ended_is_true():
10 parser = GptOssReasoningParser(Mock())
11 assert parser.is_reasoning_end([]) is True
12 assert parser.is_reasoning_end_streaming([], []) is True