mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-06 08:16:43 +00:00
test: use __file__-relative sys.path for stable test imports
Address Greptile review — resolve sys.path relative to the test file location instead of the process working directory.
This commit is contained in:
parent
23b69eea62
commit
b0c317e6d0
1 changed files with 1 additions and 1 deletions
|
|
@ -12,7 +12,7 @@ import sys
|
|||
import pytest
|
||||
from unittest.mock import MagicMock, patch
|
||||
|
||||
sys.path.insert(0, os.path.abspath("../../.."))
|
||||
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), "../../..")))
|
||||
|
||||
from litellm.proxy.utils import (
|
||||
_check_and_merge_model_level_guardrails,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue