test: 修复测试静默跳过问题,统一conftest行为
- 移除 test_readers/conftest.py 中重复的 temp_docx/temp_pdf/temp_pptx/temp_xlsx fixtures - 统一测试行为:依赖缺失时测试失败而非静默跳过 - 修复根 conftest.py 中裸露的 except 子句,改为 except Exception - 保留 temp_html 和静态文件相关 fixtures
This commit is contained in:
@@ -109,7 +109,7 @@ def temp_pdf(tmp_path):
|
||||
# 使用系统字体
|
||||
pdfmetrics.registerFont(TTFont('SimSun', 'simsun.ttc'))
|
||||
c.setFont('SimSun', 12)
|
||||
except:
|
||||
except Exception:
|
||||
# 回退到默认字体
|
||||
c.setFont('Helvetica', 12)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user