Skip to content

Commit fcfaa15

Browse files
authored
Refactor test_wrapper_langchain.py with updates
1 parent de68723 commit fcfaa15

1 file changed

Lines changed: 7 additions & 6 deletions

File tree

tests/observability/extensions/langchain/test_wrapper_langchain.py

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,15 +39,15 @@ def tearDown(self):
3939
pass
4040

4141
def test_instrumentor_initialization_and_Agent365_integration(self):
42-
"""Test 1: Verify InstrumentorForLangChain initializes and integrates with Agent365."""
42+
"""Test 1: Verify InstrumentorForLangChain initializes and integrates with Microsoft Agent 365."""
4343
from microsoft_agents_a365.observability.core.config import get_tracer, is_configured
4444

45-
# Verify Agent365 is configured
46-
self.assertTrue(is_configured(), "Agent365 should be configured")
45+
# Verify Microsoft Agent 365 is configured
46+
self.assertTrue(is_configured(), "Microsoft Agent 365 should be configured")
4747

4848
# Get tracer to ensure it works
4949
tracer = get_tracer()
50-
self.assertIsNotNone(tracer, "Agent365 tracer should be available")
50+
self.assertIsNotNone(tracer, "Microsoft Agent 365 tracer should be available")
5151

5252
# Create instrumentor
5353
self._test_instrumentor = CustomLangChainInstrumentor()
@@ -67,7 +67,7 @@ def test_instrumentor_initialization_and_Agent365_integration(self):
6767
self._test_instrumentor._tracer, "Tracer should be created after initialization"
6868
)
6969

70-
print("✅ Test 1: InstrumentorForLangChain initialization and Agent365 integration works")
70+
print("✅ Test 1: InstrumentorForLangChain initialization and Microsoft Agent 365 integration works")
7171

7272
def test_instrumentor_get_span_functionality(self):
7373
"""Test 2: Verify get_span method works correctly with mock data."""
@@ -122,7 +122,7 @@ def test_instrumentor_wrapping_mechanism(self):
122122

123123
def run_langchain_tests():
124124
"""Run all LangChain wrapper tests with detailed output."""
125-
print("🧪 Running Agent365 LangChain Instrumentor tests...")
125+
print("🧪 Running Microsoft Agent 365 LangChain Instrumentor tests...")
126126
print("=" * 80)
127127

128128
# Create test suite
@@ -154,3 +154,4 @@ def run_langchain_tests():
154154
if __name__ == "__main__":
155155
success = run_langchain_tests()
156156
exit(0 if success else 1)
157+

0 commit comments

Comments
 (0)