From 91942d0dbcf13e96acb2048fd35f083eaf66408a Mon Sep 17 00:00:00 2001 From: mateo-berri <277851410+mateo-berri@users.noreply.github.com> Date: Fri, 30 Oct 2026 05:33:04 -0700 Subject: [PATCH] test(streaming): cover a ClassVar declared without a value in the extra-field parity test --- tests/unit/litellm_core_utils/test_hidden_params.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/unit/litellm_core_utils/test_hidden_params.py b/tests/unit/litellm_core_utils/test_hidden_params.py index 74eb10f4d1d..b32692c67ba 100644 --- a/tests/unit/litellm_core_utils/test_hidden_params.py +++ b/tests/unit/litellm_core_utils/test_hidden_params.py @@ -321,6 +321,7 @@ class _ExtraModel(BaseModel): # frozen-ok: the assignment tests need a model th declared: str | None = None marker: ClassVar[str | None] = None + unset_marker: ClassVar[int] _secret: str = PrivateAttr(default="hidden") @property @@ -384,6 +385,7 @@ def _assignment_outcome(model: BaseModel, assign: Callable[[], None], name: str) pytest.param(lambda: _ExtraModel(existing=1, later=3), "_free", 1, id="undeclared-underscore-name"), pytest.param(lambda: _ExtraModel(existing=1, later=3), "_secret", "x", id="private-attribute"), pytest.param(lambda: _ExtraModel(existing=1, later=3), "marker", 1, id="class-var"), + pytest.param(lambda: _ExtraModel(existing=1, later=3), "unset_marker", 1, id="class-var-without-value"), pytest.param(lambda: _ExtraModel(existing=1, later=3), "model_config", 1, id="class-attribute"), pytest.param(_FrozenExtraModel, "fresh", 1, id="frozen"), pytest.param(_ValidatedExtraModel, "fresh", "5", id="validate-assignment"),