mirror of
https://github.com/lightbroker/llmsecops-research.git
synced 2026-04-30 15:27:51 +02:00
troubleshoot
This commit is contained in:
+6
-6
@@ -71,12 +71,12 @@ def pytest_deselected(items):
|
||||
def setup_test_environment():
|
||||
"""Setup run before every test automatically."""
|
||||
|
||||
if "HF_TOKEN" in os.environ:
|
||||
hf_token = os.environ.get("HF_TOKEN", "").strip()
|
||||
if not hf_token:
|
||||
raise ValueError("conftest.py: HF_TOKEN environment variable is empty or not found")
|
||||
else:
|
||||
raise ValueError("conftest.py: HF_TOKEN environment variable not found")
|
||||
# if "HF_TOKEN" in os.environ:
|
||||
# hf_token = os.environ.get("HF_TOKEN", "").strip()
|
||||
# if not hf_token:
|
||||
# raise ValueError("conftest.py: HF_TOKEN environment variable is empty or not found")
|
||||
# else:
|
||||
# raise ValueError("conftest.py: HF_TOKEN environment variable not found")
|
||||
|
||||
# Set test environment variables
|
||||
os.environ["TESTING"] = "true"
|
||||
|
||||
Reference in New Issue
Block a user