test(p26): 修 libreoffice not installed test patch path
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user