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

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
  7f40da3b_2231_c518_76e4_a7283df9ed87["test_basic_initialization_with_api_key()"]
  c9055898_f4e8_516f_40b3_e818e75c1549["TestAnthropicFoundry"]
  7f40da3b_2231_c518_76e4_a7283df9ed87 -->|defined in| c9055898_f4e8_516f_40b3_e818e75c1549
  cbdd7287_26cf_9961_7469_28cec6ed9dae["test_basic_initialization_with_api_key()"]
  cbdd7287_26cf_9961_7469_28cec6ed9dae -->|calls| 7f40da3b_2231_c518_76e4_a7283df9ed87
  cbdd7287_26cf_9961_7469_28cec6ed9dae["test_basic_initialization_with_api_key()"]
  7f40da3b_2231_c518_76e4_a7283df9ed87 -->|calls| cbdd7287_26cf_9961_7469_28cec6ed9dae
  style 7f40da3b_2231_c518_76e4_a7283df9ed87 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

tests/lib/test_azure.py lines 10–18

    def test_basic_initialization_with_api_key(self) -> None:
        """Test basic client initialization with API key."""
        client = AnthropicFoundry(
            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/"

Subdomains

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 10.
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