Skip to content

Commit

Permalink
fixing CI errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt Gotteiner committed Sep 22, 2023
1 parent ef7835c commit 7059f14
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion scripts/manageacl.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import asyncio
import json
import logging
from typing import Union

from azure.core.credentials import AzureKeyCredential
from azure.core.credentials_async import AsyncTokenCredential
Expand All @@ -27,7 +28,7 @@ def __init__(
acl_action: str,
acl_type: str,
acl: str,
credentials: AsyncTokenCredential | AzureKeyCredential,
credentials: Union[AsyncTokenCredential, AzureKeyCredential],
):
"""
Initializes the command
Expand Down
4 changes: 3 additions & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import argparse
import json
import os
from collections import namedtuple
from unittest import mock

Expand Down Expand Up @@ -168,7 +169,8 @@ async def client(monkeypatch, mock_openai_chatcompletion, mock_openai_embedding,
monkeypatch.setenv("AZURE_OPENAI_CHATGPT_MODEL", "gpt-35-turbo")
for key, value in request.param.items():
monkeypatch.setenv(key, value)
monkeypatch.delenv("AZURE_USE_AUTHENTICATION")
if os.getenv("AZURE_USE_AUTHENTICATION") is not None:
monkeypatch.delenv("AZURE_USE_AUTHENTICATION")

with mock.patch("app.DefaultAzureCredential") as mock_default_azure_credential:
mock_default_azure_credential.return_value = MockAzureCredential()
Expand Down

0 comments on commit 7059f14

Please sign in to comment.