참고소스 수정본
This commit is contained in:
15
참고/instructor-main/tests/llm/test_vertexai/conftest.py
Normal file
15
참고/instructor-main/tests/llm/test_vertexai/conftest.py
Normal file
@@ -0,0 +1,15 @@
|
||||
import os
|
||||
import pytest
|
||||
|
||||
if not os.getenv("GOOGLE_API_KEY"):
|
||||
pytest.skip(
|
||||
"GOOGLE_API_KEY environment variable not set",
|
||||
allow_module_level=True,
|
||||
)
|
||||
|
||||
try:
|
||||
import vertexai # noqa: F401
|
||||
except ImportError: # pragma: no cover - optional dependency
|
||||
pytest.skip(
|
||||
"google-cloud-aiplatform package is not installed", allow_module_level=True
|
||||
)
|
||||
Reference in New Issue
Block a user