test_azure_openai_api_key_is_secret_string() — langchain Function Reference
Architecture documentation for the test_azure_openai_api_key_is_secret_string() function in test_secrets.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD 0b08f7e8_04ef_78f2_03fc_dc692282d520["test_azure_openai_api_key_is_secret_string()"] 654b0dc2_a4de_700d_ff97_c27a5220678d["test_secrets.py"] 0b08f7e8_04ef_78f2_03fc_dc692282d520 -->|defined in| 654b0dc2_a4de_700d_ff97_c27a5220678d style 0b08f7e8_04ef_78f2_03fc_dc692282d520 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/partners/openai/tests/unit_tests/test_secrets.py lines 77–86
def test_azure_openai_api_key_is_secret_string(model_class: type) -> None:
"""Test that the API key is stored as a SecretStr."""
model = model_class(
openai_api_key="secret-api-key",
azure_endpoint="endpoint",
azure_ad_token=AZURE_AD_TOKEN,
api_version="version",
)
assert isinstance(model.openai_api_key, SecretStr)
assert isinstance(model.azure_ad_token, SecretStr)
Domain
Subdomains
Source
Frequently Asked Questions
What does test_azure_openai_api_key_is_secret_string() do?
test_azure_openai_api_key_is_secret_string() is a function in the langchain codebase, defined in libs/partners/openai/tests/unit_tests/test_secrets.py.
Where is test_azure_openai_api_key_is_secret_string() defined?
test_azure_openai_api_key_is_secret_string() is defined in libs/partners/openai/tests/unit_tests/test_secrets.py at line 77.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free