fix(platform): 汇总知识库问答与图表展示修复

This commit is contained in:
HTEWJ\26070045 committed 2026-08-06 17:28:08 +08:00
1 parent f615e56bb9
commit 59ff2dd9c7
41 files changed
+4579 -766

No files matched your search

+8
View File
@@ -18,6 +18,14 @@ def test_word_still_uses_word_timeout(monkeypatch):
assert _file_timeout_sec(Path('manual.docx')) == 420
def test_pdf_uses_dedicated_timeout_for_figure_rich_handbooks(monkeypatch):
monkeypatch.setenv('EDKB_FILE_TIMEOUT_SEC', '300')
monkeypatch.setenv('EDKB_PDF_FILE_TIMEOUT_SEC', '900')
# 断言大型图文手册不会被通用 300 秒时限提前终止。
assert _file_timeout_sec(Path('mechanical-design-handbook.pdf')) == 900
def test_other_formats_use_global_timeout(monkeypatch):
monkeypatch.setenv('EDKB_FILE_TIMEOUT_SEC', '180')
assert _file_timeout_sec(Path('slides.pptx')) == 180