1#!/usr/bin/env python3 2# coding=utf-8 3 4# 5# Copyright (c) 2020-2023 Huawei Device Co., Ltd. 6# Licensed under the Apache License, Version 2.0 (the "License"); 7# you may not use this file except in compliance with the License. 8# You may obtain a copy of the License at 9# 10# http://www.apache.org/licenses/LICENSE-2.0 11# 12# Unless required by applicable law or agreed to in writing, software 13# distributed under the License is distributed on an "AS IS" BASIS, 14# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15# See the License for the specific language governing permissions and 16# limitations under the License. 17# 18 19from _core.logger import platform_logger 20from _core.executor.source import TestDictSource 21 22LOG = platform_logger("TDD") 23 24 25class TSD: 26 @classmethod 27 def update_test_type_in_source(cls, key, value): 28 LOG.debug("update test type dict in source") 29 TestDictSource.test_type[key] = value 30 31 @classmethod 32 def update_ext_type_in_source(cls, key, value): 33 LOG.debug("update ext type dict in source") 34 TestDictSource.exe_type[key] = value 35 36 @classmethod 37 def clear_test_dict_source(cls): 38 TestDictSource.clear() 39 40 @classmethod 41 def reset_test_dict_source(cls): 42 TestDictSource.reset() 43