Skip to content

Commit

Permalink
Make jwt optional import in conftest
Browse files Browse the repository at this point in the history
  • Loading branch information
nick863 committed Jul 10, 2024
1 parent b3ee5fd commit 073ff02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/promptflow-evals/tests/evals/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
from typing import Dict
from unittest.mock import patch

import jwt
import pytest

from pytest_mock import MockerFixture
Expand Down Expand Up @@ -40,6 +39,7 @@ def is_replay():
# Import of optional packages
AZURE_INSTALLED = True
try:
import jwt
from azure.ai.ml._ml_client import MLClient
except ImportError:
AZURE_INSTALLED = False
Expand Down

0 comments on commit 073ff02

Please sign in to comment.