mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-13 23:11:40 +00:00
test(ocr): isolate Azure auth precedence coverage
This commit is contained in:
parent
fa6bdf2e2c
commit
af77246920
1 changed files with 1 additions and 0 deletions
|
|
@ -141,6 +141,7 @@ def test_document_intelligence_environment_key_is_not_replaced_by_generic_azure_
|
|||
) -> None:
|
||||
monkeypatch.setenv("AZURE_AI_API_KEY", "generic-key")
|
||||
monkeypatch.setenv("AZURE_DOCUMENT_INTELLIGENCE_API_KEY", "document-key")
|
||||
monkeypatch.setenv("AZURE_DOCUMENT_INTELLIGENCE_ENDPOINT", "https://document.example.com")
|
||||
prepared: Final = _prepare_ocr_request(
|
||||
model="azure_ai/doc-intelligence/prebuilt-layout",
|
||||
document={"type": "document_url", "document_url": "https://example.com/file.pdf"},
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue