Skip to content

Commit f35dcd3

Browse files
author
Jesus Terrazas
committed
Remove setting cached version
1 parent 3166829 commit f35dcd3

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

tests/runtime/test_utility.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55

66
import uuid
77
from unittest.mock import Mock
8+
import platform
9+
import re
810

911
import jwt
1012
import pytest
11-
import platform
12-
import re
1313
from microsoft_agents_a365.runtime.utility import Utility
1414

1515

@@ -130,8 +130,6 @@ def test_resolve_agent_identity_exception_handling(create_test_jwt, mock_context
130130

131131
def test_get_user_agent_header_default():
132132
"""Test get_user_agent_header returns expected format with default orchestrator."""
133-
# Patch version to a known value
134-
Utility._cached_version = "1.2.3"
135133
os_type = platform.system()
136134
py_version = platform.python_version()
137135

@@ -144,7 +142,6 @@ def test_get_user_agent_header_default():
144142

145143
def test_get_user_agent_header_with_orchestrator():
146144
"""Test get_user_agent_header includes orchestrator when provided."""
147-
Utility._cached_version = "2.0.0"
148145
orchestrator = "TestOrchestrator"
149146
os_type = platform.system()
150147
py_version = platform.python_version()

0 commit comments

Comments
 (0)