# -*- coding: utf-8 -*-
"""
@Time : 2025/7/30 10:51
@Auth : 九月的海
@File : data_loader.py.py
@IDE : PyCharm
@Motto : Catch as catch can....
"""

import yaml
import os


def load_test_data(file_path):
    """从YAML文件加载测试数据"""
    if not os.path.exists(file_path):
        raise FileNotFoundError(f"测试数据文件不存在: {file_path}")

    with open(file_path, 'r', encoding='utf-8') as file:
        return yaml.safe_load(file)
