MCPcopy Create free account
hub / github.com/agentforce314/clawcodex / test_write_raw

Method test_write_raw

tests/test_session_storage.py:140–148  ·  view source on GitHub ↗
(self, tmp_path)

Source from the content-addressed store, hash-verified

138 assert replaced["content"][0]["content"] == "short"
139
140 def test_write_raw(self, tmp_path):
141 storage = SessionStorage(sessions_dir=tmp_path)
142 storage.init_metadata()
143 storage.write_raw({"custom": "data"})
144 storage.flush()
145
146 entries = storage.read_transcript()
147 assert len(entries) == 1
148 assert entries[0]["custom"] == "data"
149
150 def test_delete_session(self, tmp_path):
151 storage = SessionStorage(sessions_dir=tmp_path)

Callers

nothing calls this directly

Calls 5

init_metadataMethod · 0.95
write_rawMethod · 0.95
flushMethod · 0.95
read_transcriptMethod · 0.95
SessionStorageClass · 0.90

Tested by

no test coverage detected