test(p26): 修 libreoffice not installed test patch path

This commit is contained in:
OoO
2026-05-04 11:16:30 +08:00
parent 72a7c385d5
commit c7d04b2855

View File

@@ -78,7 +78,7 @@ def test_check_ppt_file_libreoffice_not_installed(monkeypatch):
ppt_path = f.name
try:
with patch('services.ppt_vision_service.subprocess.run',
with patch('subprocess.run',
side_effect=FileNotFoundError('libreoffice')):
svc = PPTVisionService()
result = svc.check_ppt_file(ppt_path)