mirror of
https://github.com/jihe520/MathModelAgent.git
synced 2026-10-23 06:19:51 +08:00
- 后端按 Google Python Style Guide 重构注释,修复 ruff 和 pyright 错误(161→0) - 前端按 Vue.js Style Guide 重构注释,修复 biome 错误 - 添加 PostToolUse lint hook(ruff + biome 自动检查) - 更新 CLAUDE.md 覆盖 Commands/Testing/Structure/CodeStyle/GitWorkflow/Boundaries - 修复 tsconfig.json 废弃的 baseUrl 配置
22 lines
511 B
Python
22 lines
511 B
Python
"""配置模板获取测试脚本。"""
|
|
|
|
import sys
|
|
import os
|
|
|
|
sys.path.append(os.path.dirname(os.path.dirname(os.path.dirname(__file__))))
|
|
|
|
from app.schemas.enums import CompTemplate
|
|
|
|
|
|
def test_get_config_template():
|
|
"""测试获取中国竞赛模板配置。"""
|
|
from app.utils.common_utils import get_config_template
|
|
|
|
comp_template = CompTemplate.CHINA
|
|
config_template = get_config_template(comp_template)
|
|
print(config_template)
|
|
|
|
|
|
if __name__ == "__main__":
|
|
test_get_config_template()
|