MCPcopy Create free account
hub / github.com/AgentOps-AI/agentops / test_trace_context_properties

Function test_trace_context_properties

tests/unit/test_session.py:351–361  ·  view source on GitHub ↗

Test that TraceContext properties work correctly

(mock_trace_context)

Source from the content-addressed store, hash-verified

349
350
351def 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
364def test_session_decorator_async_function(mock_tracing_core, mock_api_client, mock_trace_context, reset_client):

Callers

nothing calls this directly

Calls 1

SessionClass · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…