Skip to content

Add integration tests for holdings and creator list pagination correctness and stable ordering #596

Description

@Chucks1093

Summary

Two separate pagination concerns — holdings total value accuracy across price changes and stable creator list ordering when sort values are tied — both benefit from integration test coverage. Addressing them together establishes a consistent test pattern for all paginated endpoints.

Scope

  • Holdings accuracy: seed a wallet holding keys for one creator, update the price snapshot three times, assert total_value reflects the latest snapshot after each update and no previous values bleed through
  • Creator list ordering: seed three creators with identical current prices, fetch all pages sorted by price, assert all three appear exactly once across pages with no duplicates or skips, assert order is consistent across two identical requests
  • Both test suites should share the same database seed helper so setup is reusable

Acceptance Criteria

  • Holdings total_value correct after each of three price snapshot updates
  • No stale snapshot values in holdings response
  • All tied-price creators appear exactly once across paginated pages
  • Creator list order stable across repeated identical requests
  • Shared seed helper used by both suites

ETA: 12 hours


Coordinate on Telegram

Metadata

Metadata

Labels

GrantFox OSSIssue tracked in GrantFox OSSMaybe RewardedIssue may be eligible for a GrantFox rewardOfficial Campaign | FWC26Campaign: Official Campaign | FWC26

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions