mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-08 22:42:05 +00:00
community[patch]: Remove usage of @root_validator(allow_reuse=True) (#25235)
Remove usage of @root_validator(allow_reuse=True)
This commit is contained in:
@@ -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()
|
||||
|
Reference in New Issue
Block a user