community[patch]: Remove usage of @root_validator(allow_reuse=True) (#25235)

Remove usage of @root_validator(allow_reuse=True)
This commit is contained in:
Eugene Yurtsev
2024-08-09 10:57:42 -04:00
committed by GitHub
parent a2b4c33bd6
commit 6e57aa7c36
12 changed files with 76 additions and 74 deletions

View File

@@ -2,7 +2,7 @@ import os
from typing import cast
import pytest
from langchain_core.pydantic_v1 import SecretStr, ValidationError
from langchain_core.pydantic_v1 import SecretStr
from langchain_community.embeddings import SparkLLMTextEmbeddings
@@ -43,5 +43,5 @@ def test_initialization_parameters_from_env() -> None:
# Environment variable missing
del os.environ["SPARK_APP_ID"]
with pytest.raises(ValidationError):
with pytest.raises(ValueError):
SparkLLMTextEmbeddings()