Skip to content

Commit

Permalink
add from_dict test
Browse files Browse the repository at this point in the history
  • Loading branch information
tstadel committed Oct 16, 2024
1 parent ca46113 commit 19f684a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions integrations/amazon_bedrock/tests/test_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,16 @@ def test_from_dict(mock_boto3_session):
"aws_profile_name": {"type": "env_var", "env_vars": ["AWS_PROFILE"], "strict": False},
"model": "anthropic.claude-v2",
"max_length": 99,
"boto3_config": {
"read_timeout": 1000,
},
},
}
)

assert generator.max_length == 99
assert generator.model == "anthropic.claude-v2"
assert generator.boto3_config == {"read_timeout": 1000}


def test_default_constructor(mock_boto3_session, set_env_variables):
Expand Down

0 comments on commit 19f684a

Please sign in to comment.