[Refactor] Remove dead tests code (#58916)
Signed-off-by: yewentao256 <zhyanwentao@126.com> Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
This commit is contained in:
co-authored by
mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
parent
90e13fc757
commit
834ad456d3
@@ -1,7 +1,6 @@
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
# SPDX-FileCopyrightText: Copyright contributors to the vLLM project
|
||||
|
||||
from unittest.mock import MagicMock
|
||||
|
||||
import pytest
|
||||
|
||||
@@ -13,20 +12,6 @@ from vllm.tokenizers import get_tokenizer
|
||||
REASONING_MODEL_NAME = "moonshotai/Kimi-K2.5"
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def mock_kimi_k2_tokenizer():
|
||||
tokenizer = MagicMock()
|
||||
tokenizer.get_vocab.return_value = {
|
||||
"<think>": 100,
|
||||
"</think>": 101,
|
||||
"<|tool_calls_section_begin|>": 200,
|
||||
"<|tool_calls_section_end|>": 201,
|
||||
"<|tool_call_begin|>": 202,
|
||||
"<|tool_call_end|>": 203,
|
||||
}
|
||||
return tokenizer
|
||||
|
||||
|
||||
@pytest.fixture(scope="module")
|
||||
def kimi_k2_tokenizer():
|
||||
return get_tokenizer(tokenizer_name=REASONING_MODEL_NAME, trust_remote_code=True)
|
||||
|
||||
Reference in New Issue
Block a user