litellm/tests/unit/llms/xai/search/conftest.py
ishaan-j-berri 4ad5a003b1
feat(search): add native xAI X Search support (#38505) (#48677)
* feat(search): add native xAI X Search support (#38505)

* fix(search): support xAI search on Python 3.10 (#38505)
2026-10-28 00:28:51 +00:00

8 lines
269 B
Python

import pytest
@pytest.fixture(autouse=True)
def _search_environment(monkeypatch: pytest.MonkeyPatch) -> None:
monkeypatch.setenv("DISABLE_AIOHTTP_TRANSPORT", "true")
for name in ("XAI_API_KEY", "XAI_API_BASE"):
monkeypatch.delenv(name, raising=False)