MCPcopy Create free account
hub / github.com/IBM/mcp-cli / sample_data

Function sample_data

tests/chat/test_session_store.py:15–28  ·  view source on GitHub ↗

Sample session data for testing.

()

Source from the content-addressed store, hash-verified

13
14@pytest.fixture
15def sample_data():
16 """Sample session data for testing."""
17 return SessionData(
18 metadata=SessionMetadata(
19 session_id="test-abc123",
20 provider="openai",
21 model="gpt-4",
22 ),
23 messages=[
24 {"role": "system", "content": "You are helpful."},
25 {"role": "user", "content": "Hello"},
26 {"role": "assistant", "content": "Hi there!"},
27 ],
28 )
29
30
31class TestSessionStore:

Callers

nothing calls this directly

Calls 2

SessionDataClass · 0.90
SessionMetadataClass · 0.90

Tested by

no test coverage detected