Skip to content

Add pagination tests (step 10)#7

Merged
whitewalls86 merged 1 commit into
masterfrom
step-10-pagination-tests
Jun 13, 2026
Merged

Add pagination tests (step 10)#7
whitewalls86 merged 1 commit into
masterfrom
step-10-pagination-tests

Conversation

@whitewalls86

Copy link
Copy Markdown
Owner

Summary

  • Adds 5 missing dealer edge-case tests to tests/test_pagination.py that were tracked in the FIXES.md backlog:
    • test_paginate_dealers_stops_on_none_next_offset
    • test_paginate_dealers_max_pages_zero_yields_nothing
    • test_paginate_dealers_none_filter_uses_defaults
    • test_iter_dealers_max_pages_zero_yields_nothing
    • test_iter_dealers_none_filter_uses_defaults
  • Tightens test_iter_dealers_two_pages to assert offset advancement (0 → 2), matching the symmetry of the listings tests.
  • No changes to _pagination.py — the implementation already handled all cases correctly.

Test plan

  • pytest tests/test_pagination.py — 22 passed (was 17)
  • pytest — 192 passed
  • ruff check src/ tests/ — clean
  • mypy src/ — clean

🤖 Generated with Claude Code

Expand dealer edge-case coverage to match listings: stops_on_none_next_offset,
max_pages=0, and None filter for both paginate_dealers and iter_dealers.
Tighten iter_dealers_two_pages to assert offset advancement.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@whitewalls86
whitewalls86 merged commit ff7e0ef into master Jun 13, 2026
2 checks passed
@whitewalls86
whitewalls86 deleted the step-10-pagination-tests branch June 13, 2026 03:58
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.

1 participant