(self, store, sample_data)
| 58 | assert sessions == [] |
| 59 | |
| 60 | def test_list_sessions(self, store, sample_data): |
| 61 | store.save(sample_data) |
| 62 | |
| 63 | # Save another session |
| 64 | data2 = SessionData( |
| 65 | metadata=SessionMetadata( |
| 66 | session_id="test-def456", |
| 67 | provider="anthropic", |
| 68 | model="claude-3", |
| 69 | ), |
| 70 | messages=[{"role": "user", "content": "Test"}], |
| 71 | ) |
| 72 | store.save(data2) |
| 73 | |
| 74 | sessions = store.list_sessions() |
| 75 | assert len(sessions) == 2 |
| 76 | ids = {s.session_id for s in sessions} |
| 77 | assert "test-abc123" in ids |
| 78 | assert "test-def456" in ids |
| 79 | |
| 80 | def test_delete_existing(self, store, sample_data): |
| 81 | store.save(sample_data) |
nothing calls this directly
no test coverage detected