Home / Function/ mock_aws_config() — anthropic-sdk-python Function Reference

mock_aws_config() — anthropic-sdk-python Function Reference

Architecture documentation for the mock_aws_config() function in test_bedrock.py from the anthropic-sdk-python codebase.

Entity Profile

Dependency Diagram

graph TD
  088e20fd_bc1f_b98d_fd74_5a4156858e40["mock_aws_config()"]
  ba53edc6_e72a_dfe0_42d5_c2a06c57d6a1["test_bedrock.py"]
  088e20fd_bc1f_b98d_fd74_5a4156858e40 -->|defined in| ba53edc6_e72a_dfe0_42d5_c2a06c57d6a1
  adbbc449_ab1c_7138_a24f_3e386ac3bc7b["profile_to_ini()"]
  088e20fd_bc1f_b98d_fd74_5a4156858e40 -->|calls| adbbc449_ab1c_7138_a24f_3e386ac3bc7b
  style 088e20fd_bc1f_b98d_fd74_5a4156858e40 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

tests/lib/test_bedrock.py lines 52–61

def mock_aws_config(
    profiles: t.List[AwsConfigProfile],
    monkeypatch: t.Any,
) -> t.Iterable[None]:
    with tempfile.NamedTemporaryFile(mode="w+", delete=True) as temp_file:
        for profile in profiles:
            temp_file.write(profile_to_ini(profile))
        temp_file.flush()
        monkeypatch.setenv("AWS_CONFIG_FILE", str(temp_file.name))
        yield

Subdomains

Frequently Asked Questions

What does mock_aws_config() do?
mock_aws_config() is a function in the anthropic-sdk-python codebase, defined in tests/lib/test_bedrock.py.
Where is mock_aws_config() defined?
mock_aws_config() is defined in tests/lib/test_bedrock.py at line 52.
What does mock_aws_config() call?
mock_aws_config() calls 1 function(s): profile_to_ini.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free