MCPcopy
hub / github.com/openai/openai-python / test_enforce_credentials_false_sync

Function test_enforce_credentials_false_sync

tests/lib/test_azure.py:82–91  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

80
81
82def test_enforce_credentials_false_sync() -> None:
83 with update_env(AZURE_OPENAI_API_KEY=Omit(), AZURE_OPENAI_AD_TOKEN=Omit()):
84 AzureOpenAI(
85 api_version="2024-02-01",
86 api_key=None,
87 azure_ad_token=None,
88 azure_ad_token_provider=None,
89 azure_endpoint="https://example-resource.azure.openai.com",
90 _enforce_credentials=False,
91 )
92
93
94@pytest.mark.respx()

Callers

nothing calls this directly

Calls 3

update_envFunction · 0.90
OmitClass · 0.90
AzureOpenAIClass · 0.90

Tested by

no test coverage detected