mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-12-12 20:12:33 +00:00
11 lines
375 B
Python
11 lines
375 B
Python
import os
|
|
import warnings
|
|
|
|
|
|
def pytest_sessionstart(session) -> None:
|
|
if "LLAMA_STACK_LOGGING" not in os.environ:
|
|
os.environ["LLAMA_STACK_LOGGING"] = "all=WARNING"
|
|
|
|
# Silence common deprecation spam during unit tests.
|
|
warnings.filterwarnings("ignore", category=DeprecationWarning)
|
|
warnings.filterwarnings("ignore", category=PendingDeprecationWarning)
|