fix(platform): 汇总知识库问答与图表展示修复
This commit is contained in:
1 parent
9838b77441
commit
e7ff6bc2dd
41 files changed
+2100
-795
No files matched your search
@@ -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
|
||||
Reference in new issue
Block a user