feat(ui): 添加AI协作页签

新增AI协作功能模块,并在主界面中添加了对应的页签。
更新了OpenBB集成文档的路径,将其从单独的Markdown文件迁移到目录结构中。
为项目添加了新的测试依赖,包括pytest相关工具、locust和memory-profiler等。
This commit is contained in:
ben
2025-08-23 14:06:22 +00:00
parent 21128299a4
commit 09de1f782a
61 changed files with 5324 additions and 11 deletions

View File

@@ -0,0 +1,24 @@
class TestCulturalAccuracy:
"""文化准确性测试"""
def test_immortal_characteristics(self):
"""验证八仙特征的准确性"""
# immortals = get_immortal_configs()
#
# # 验证吕洞宾的技术分析特色
# assert immortals['吕洞宾'].specialty == 'technical_analysis'
# assert immortals['吕洞宾'].element == '乾'
#
# # 验证何仙姑的风险控制特色
# assert immortals['何仙姑'].specialty == 'risk_metrics'
# assert immortals['何仙姑'].element == '坤'
pass
def test_debate_cultural_context(self):
"""验证辩论的文化背景准确性"""
# debate = create_test_debate('AAPL')
#
# # 确保辩论遵循稷下学宫的传统
# assert 'jixia' in debate.context
# assert len(debate.participants) == 8 # 八仙
pass

View File

@@ -0,0 +1,3 @@
class TestDebateDataQuality:
"""辩论数据质量测试"""
pass

View File

@@ -0,0 +1,14 @@
class TestImmortalDataRouting:
"""八仙数据路由测试"""
def test_lv_dongbin_technical_analysis(self):
"""测试吕洞宾的技术分析数据获取"""
pass
def test_he_xiangu_risk_metrics(self):
"""测试何仙姑的风险指标数据"""
pass
def test_immortal_data_consistency(self):
"""测试八仙数据的一致性"""
pass

View File

@@ -0,0 +1,3 @@
class TestImmortalPreferences:
"""八仙偏好测试"""
pass