From 409abb66be7e48a9f3c4644e3b133dd447f5dfb6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=AC=A8=E7=AC=A8?= Date: Tue, 21 Apr 2026 19:32:43 +0800 Subject: [PATCH] test: remove absolute path from llm helper test --- tests/test_llm_helper_testcall.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_llm_helper_testcall.py b/tests/test_llm_helper_testcall.py index ae7082ac..6633382b 100644 --- a/tests/test_llm_helper_testcall.py +++ b/tests/test_llm_helper_testcall.py @@ -1,8 +1,8 @@ import asyncio -import importlib import importlib.util import sys import unittest +from pathlib import Path from types import ModuleType, SimpleNamespace from unittest.mock import Mock, patch @@ -45,7 +45,7 @@ _stub_module( ) _stub_module("app.log", logger=_DummyLogger()) -module_path = "/Users/sdongmaker/VScode/MoviePilot/app/helper/llm.py" +module_path = Path(__file__).resolve().parents[1] / "app" / "helper" / "llm.py" spec = importlib.util.spec_from_file_location("test_llm_module", module_path) llm_module = importlib.util.module_from_spec(spec) assert spec and spec.loader