Skip to content

Commit 7bbf236

Browse files
author
wangyue.demon
committed
fix ut: TestRealtimeModelConfig Clear any cached properties before each test
1 parent 5f0018a commit 7bbf236

File tree

1 file changed

+14
-5
lines changed

1 file changed

+14
-5
lines changed

tests/config/test_model_config.py

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,23 @@
1+
# Copyright (c) 2025 Beijing Volcano Engine Technology Co., Ltd. and/or its affiliates.
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
115
import os
216
from unittest import TestCase, mock
317
from veadk.configs.model_configs import RealtimeModelConfig
418

519

620
class TestRealtimeModelConfig(TestCase):
7-
def setUp(self):
8-
# Clear any cached properties before each test
9-
if hasattr(RealtimeModelConfig, "api_key"):
10-
del RealtimeModelConfig.api_key
11-
1221
def test_default_values(self):
1322
"""Test that default values are set correctly"""
1423
config = RealtimeModelConfig()

0 commit comments

Comments
 (0)