From 073ff027a922e7670298499d0e575b35a1fe82b2 Mon Sep 17 00:00:00 2001 From: nick863 <30440255+nick863@users.noreply.github.com> Date: Wed, 10 Jul 2024 16:44:44 -0700 Subject: [PATCH] Make jwt optional import in conftest --- src/promptflow-evals/tests/evals/conftest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/promptflow-evals/tests/evals/conftest.py b/src/promptflow-evals/tests/evals/conftest.py index dc1014c8082..2e303ffb4b7 100644 --- a/src/promptflow-evals/tests/evals/conftest.py +++ b/src/promptflow-evals/tests/evals/conftest.py @@ -4,7 +4,6 @@ from typing import Dict from unittest.mock import patch -import jwt import pytest from pytest_mock import MockerFixture @@ -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