test_basic_initialization_with_api_key() — anthropic-sdk-python Function Reference
Architecture documentation for the test_basic_initialization_with_api_key() function in test_azure.py from the anthropic-sdk-python codebase.
Entity Profile
Dependency Diagram
graph TD cbdd7287_26cf_9961_7469_28cec6ed9dae["test_basic_initialization_with_api_key()"] c3efad89_3ca5_2277_442f_f2552a2c3fbc["TestAsyncAnthropicFoundry"] cbdd7287_26cf_9961_7469_28cec6ed9dae -->|defined in| c3efad89_3ca5_2277_442f_f2552a2c3fbc 7f40da3b_2231_c518_76e4_a7283df9ed87["test_basic_initialization_with_api_key()"] 7f40da3b_2231_c518_76e4_a7283df9ed87 -->|calls| cbdd7287_26cf_9961_7469_28cec6ed9dae 7f40da3b_2231_c518_76e4_a7283df9ed87["test_basic_initialization_with_api_key()"] cbdd7287_26cf_9961_7469_28cec6ed9dae -->|calls| 7f40da3b_2231_c518_76e4_a7283df9ed87 style cbdd7287_26cf_9961_7469_28cec6ed9dae fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
tests/lib/test_azure.py lines 71–79
async def test_basic_initialization_with_api_key(self) -> None:
"""Test basic async client initialization with API key."""
client = AsyncAnthropicFoundry(
api_key="test-key",
resource="example-resource",
)
assert client.api_key == "test-key"
assert str(client.base_url) == "https://example-resource.services.ai.azure.com/anthropic/"
Domain
Subdomains
Defined In
Called By
Source
Frequently Asked Questions
What does test_basic_initialization_with_api_key() do?
test_basic_initialization_with_api_key() is a function in the anthropic-sdk-python codebase, defined in tests/lib/test_azure.py.
Where is test_basic_initialization_with_api_key() defined?
test_basic_initialization_with_api_key() is defined in tests/lib/test_azure.py at line 71.
What does test_basic_initialization_with_api_key() call?
test_basic_initialization_with_api_key() calls 1 function(s): test_basic_initialization_with_api_key.
What calls test_basic_initialization_with_api_key()?
test_basic_initialization_with_api_key() is called by 1 function(s): test_basic_initialization_with_api_key.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free