[PR #5853] test: add missing tests for before and limit params #4684

Closed
opened 2026-02-20 17:50:35 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/langchain-ai/langgraph/pull/5853

State: closed
Merged: No


Summary

Completes the TODO at libs/checkpoint-sqlite/tests/test_sqlite.py:119 by adding comprehensive test coverage for
before and limit parameters in SqliteSaver.list().

Changes

  • Added tests for limit parameter (restricts number of results)
  • Added tests for before parameter (pagination before specific checkpoint)
  • Added tests for combining both parameters
  • Uses 5 test checkpoints to verify pagination behavior

Testing

make format  # ✅ Code formatted
make lint    # ✅ No issues found
make test TEST=tests/test_sqlite.py::TestSqliteSaver::test_search  # ✅ Tests pass
**Original Pull Request:** https://github.com/langchain-ai/langgraph/pull/5853 **State:** closed **Merged:** No --- ## Summary Completes the TODO at `libs/checkpoint-sqlite/tests/test_sqlite.py:119` by adding comprehensive test coverage for `before` and `limit` parameters in `SqliteSaver.list()`. ## Changes - Added tests for `limit` parameter (restricts number of results) - Added tests for `before` parameter (pagination before specific checkpoint) - Added tests for combining both parameters - Uses 5 test checkpoints to verify pagination behavior ## Testing ```bash make format # ✅ Code formatted make lint # ✅ No issues found make test TEST=tests/test_sqlite.py::TestSqliteSaver::test_search # ✅ Tests pass
yindo added the pull-request label 2026-02-20 17:50:35 -05:00
yindo closed this issue 2026-02-20 17:50:35 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langchain-ai/langgraph#4684