Test that TraceContext properties work correctly
(mock_trace_context)
| 349 | |
| 350 | |
| 351 | def test_trace_context_properties(mock_trace_context): |
| 352 | """Test that TraceContext properties work correctly""" |
| 353 | from agentops.legacy import Session |
| 354 | |
| 355 | # Create a legacy session with the mock trace context |
| 356 | session = Session(mock_trace_context) |
| 357 | |
| 358 | # Test that properties are accessible |
| 359 | assert session.span == mock_trace_context.span |
| 360 | assert session.token == mock_trace_context.token |
| 361 | assert session.trace_context == mock_trace_context |
| 362 | |
| 363 | |
| 364 | def test_session_decorator_async_function(mock_tracing_core, mock_api_client, mock_trace_context, reset_client): |
nothing calls this directly
no test coverage detected
searching dependent graphs…