Skip to content

Commit

Permalink
Fix get version for werkzeug
Browse files Browse the repository at this point in the history
  • Loading branch information
luigiw committed Dec 20, 2024
1 parent f8dd7c2 commit 7406d2f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pylintrc
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[MASTER]
py-version=3.9
ignore-patterns=test_*,conftest,setup,.*_utils\.py
ignore-paths=src\promptflow-evals\tests,src\promptflow-evals\samples,promptflow\evals\evaluate\_telemetry,promptflow\evals\evaluate\_batch_run_client\code_client.py,promptflow\evals\evaluate\_batch_run_client\proxy_client.py
ignore-paths=src\promptflow-evals\tests,src\promptflow-evals\samples,promptflow\evals\evaluate\_telemetry,promptflow\evals\evaluate\_batch_run_client\code_client.py,promptflow\evals\evaluate\_batch_run_client\proxy_client.py,src/promptflow-devkit/tests/sdk_pfs_test/utils.py
reports=no

[MESSAGES CONTROL]
Expand Down
4 changes: 2 additions & 2 deletions src/promptflow-devkit/tests/sdk_pfs_test/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
# ---------------------------------------------------------
import contextlib
import getpass
import importlib.metadata
import json
from typing import Any, Dict, List, Optional
from unittest import mock

import werkzeug
from flask.testing import FlaskClient

from promptflow._sdk._service.utils.utils import encrypt_flow_path
Expand All @@ -34,7 +34,7 @@ def check_activity_end_telemetry(
"first_call": True,
"activity_type": "PublicApi",
"completion_status": "Success",
"user_agent": [f"Werkzeug/{werkzeug.__version__}", f"local_pfs/{VERSION}"],
"user_agent": [f"Werkzeug/{importlib.metadata.version('werkzeug')}", f"local_pfs/{VERSION}"],
}
for i, expected_activity in enumerate(expected_activities):
temp = default_expected_call.copy()
Expand Down

0 comments on commit 7406d2f

Please sign in to comment.