Skip to content

test: checkpointer save_extra and deserialization coverage - #54

Merged
xfgong merged 1 commit into
mainfrom
test/checkpointer-coverage
May 10, 2026
Merged

test: checkpointer save_extra and deserialization coverage#54
xfgong merged 1 commit into
mainfrom
test/checkpointer-coverage

Conversation

@xfgong

@xfgong xfgong commented May 10, 2026

Copy link
Copy Markdown
Collaborator

Summary

Closes #50

  • SQLiteCheckpointer: add tests for save_extra update/merge path (second call merges, not replaces), save_extra creating a thread with no prior messages, and _deserialize_message returning unknown roles as plain dicts
  • MemoryCheckpointer: add test for save_extra when the thread does not yet exist (line 22 coverage)

Test plan

  • pytest tests/ -q -- 303 passed
  • ruff check cubepi/ tests/ -- all checks passed
  • ruff format --check cubepi/ tests/ -- 48 files already formatted

@xfgong
xfgong merged commit a243017 into main May 10, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Test coverage: SQLiteCheckpointer save_extra and deserialization

1 participant