Skip to content

chore(subscription): add dummy seed data for snapshot/restore tests - #807

Merged
aji70 merged 1 commit into
MyFanss:mainfrom
favourawaku:feat/subscription-snapshot-restore-tests
Apr 24, 2026
Merged

chore(subscription): add dummy seed data for snapshot/restore tests#807
aji70 merged 1 commit into
MyFanss:mainfrom
favourawaku:feat/subscription-snapshot-restore-tests

Conversation

@favourawaku

@favourawaku favourawaku commented Apr 24, 2026

Copy link
Copy Markdown
Contributor

- Add src/dummy_data.rs with named constants:
    DUMMY_PLAN_AMOUNT, DUMMY_INTERVAL_DAYS, DUMMY_FAN_BALANCE,
    DUMMY_FEE_BPS, DUMMY_PRICE, LEDGERS_PER_DAY, DUMMY_EXPIRY_OFFSET,
    DUMMY_CONTENT_ID_1/2, DUMMY_CONTENT_PRICE_1/2,
    CANCEL_REASON_* (0-4)
- Expose dummy_data module from lib.rs under #[cfg(test)]
- Wire test_subscription_state_after_snapshot_restore and
  test_cancel_after_snapshot_restore to use dummy constants
- 48/48 unit tests + 1 integration test pass
@drips-wave

drips-wave Bot commented Apr 24, 2026

Copy link
Copy Markdown

@favourawaku Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@aji70
aji70 merged commit 3c25ddc into MyFanss:main Apr 24, 2026
2 of 10 checks passed
aji70 added a commit that referenced this pull request Apr 30, 2026
…estore-tests

chore(subscription): add dummy seed data for snapshot/restore tests
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.

Subscription: snapshot/restore tests

2 participants