From c7d04b2855ad231c8c9e9d7ee4b45e4fe240bb1a Mon Sep 17 00:00:00 2001 From: OoO Date: Mon, 4 May 2026 11:16:30 +0800 Subject: [PATCH] =?UTF-8?q?test(p26):=20=E4=BF=AE=20libreoffice=20not=20in?= =?UTF-8?q?stalled=20test=20patch=20path?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/test_ppt_vision_audit.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_ppt_vision_audit.py b/tests/test_ppt_vision_audit.py index 83d2552..ab5a919 100644 --- a/tests/test_ppt_vision_audit.py +++ b/tests/test_ppt_vision_audit.py @@ -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)