Skip to content

The agent engineering platform.

test(partners): account for warning behavior in partner tests (#38046)

Mason Daugherty21eeadf27475
diff --git a/libs/partners/openrouter/tests/unit_tests/test_chat_models.py b/libs/partners/openrouter/tests/unit_tests/test_chat_models.py
index 424453075b..0c9671a19b 100644
--- a/libs/partners/openrouter/tests/unit_tests/test_chat_models.py
+++ b/libs/partners/openrouter/tests/unit_tests/test_chat_models.py
@@ -492,6 +492,7 @@ class TestSerialization:
"""Test that ChatOpenRouter declares itself as serializable."""
assert ChatOpenRouter.is_lc_serializable() is True
+ @pytest.mark.filterwarnings("ignore:The function `load` is in beta")
def test_dumpd_load_roundtrip(self) -> None:
"""Test that dumpd/load round-trip preserves model config."""
model = _make_model(temperature=0.7, max_tokens=100)
diff --git a/libs/partners/openrouter/uv.lock b/libs/partners/openrouter/uv.lock
index aab7d8c586..fb3e80e2de 100644
--- a/libs/partners/openrouter/uv.lock
+++ b/libs/partners/openrouter/uv.lock
@@ -346,7 +346,7 @@ wheels = [
[[package]]
name = "langchain-core"
-version = "1.4.2"
+version = "1.4.4"
source = { editable = "../../core" }
dependencies = [
{ name = "jsonpatch" },
diff --git a/libs/partners/xai/tests/unit_tests/test_chat_models.py b/libs/partners/xai/tests/unit_tests/test_chat_models.py
index 1e4b3d3067..1bbdc9d659 100644
--- a/libs/partners/xai/tests/unit_tests/test_chat_models.py
+++ b/libs/partners/xai/tests/unit_tests/test_chat_models.py
@@ -48,12 +48,14 @@ def test_chat_xai_invalid_streaming_params() -> None:
def test_chat_xai_extra_kwargs() -> None:
"""Test extra kwargs to chat xai."""
# Check that foo is saved in extra_kwargs.
- llm = ChatXAI(model=MODEL_NAME, foo=3, max_tokens=10) # type: ignore[call-arg]
+ with pytest.warns(UserWarning, match="foo is not default parameter"):
+ llm = ChatXAI(model=MODEL_NAME, foo=3, max_tokens=10) # type: ignore[call-arg]
assert llm.max_tokens == 10
assert llm.model_kwargs == {"foo": 3}
# Test that if extra_kwargs are provided, they are added to it.
- llm = ChatXAI(model=MODEL_NAME, foo=3, model_kwargs={"bar": 2}) # type: ignore[call-arg]
+ with pytest.warns(UserWarning, match="foo is not default parameter"):
+ llm = ChatXAI(model=MODEL_NAME, foo=3, model_kwargs={"bar": 2}) # type: ignore[call-arg]
assert llm.model_kwargs == {"foo": 3, "bar": 2}
# Test that if provided twice it errors
diff --git a/libs/partners/xai/uv.lock b/libs/partners/xai/uv.lock
index cfdebdbf92..d09c376cf4 100644
--- a/libs/partners/xai/uv.lock
+++ b/libs/partners/xai/uv.lock
@@ -679,7 +679,7 @@ wheels = [
[[package]]
name = "langchain-core"
-version = "1.4.2"
+version = "1.4.4"
source = { editable = "../../core" }
dependencies = [
{ name = "jsonpatch" },