mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-13 21:47:12 +00:00
core[minor],community[minor]: Upgrade all @root_validator() to @pre_init (#23841)
This PR introduces a @pre_init decorator that's a @root_validator(pre=True) but with all the defaults populated!
This commit is contained in:
@@ -277,9 +277,12 @@ async def async_gen_mock_streaming_response() -> AsyncGenerator[Dict, None]:
|
||||
async def test_bedrock_async_streaming_call() -> None:
|
||||
# Mock boto3 import
|
||||
mock_boto3 = MagicMock()
|
||||
session = MagicMock()
|
||||
session.region_name = "region"
|
||||
mock_boto3.Session.return_value = session
|
||||
mock_boto3.Session.return_value.client.return_value = (
|
||||
MagicMock()
|
||||
) # Mocking the client method of the Session object
|
||||
session # Mocking the client method of the Session object
|
||||
)
|
||||
|
||||
with patch.dict(
|
||||
"sys.modules", {"boto3": mock_boto3}
|
||||
|
Reference in New Issue
Block a user