Skip to content

Guard history receipt plan_id before path construction - #59

Merged
Li-Sanze merged 1 commit into
mainfrom
fix/issue-58-history-receipt-plan-id-guard
Jun 26, 2026
Merged

Guard history receipt plan_id before path construction#59
Li-Sanze merged 1 commit into
mainfrom
fix/issue-58-history-receipt-plan-id-guard

Conversation

@Li-Sanze

Copy link
Copy Markdown
Collaborator

Summary

Changes

  • sopify_writer/store.py: Add plan_id non-empty guard at top of write_history_receipt; add month non-empty guard after None default assignment.
  • tests/test_sopify_writer.py: Add test_empty_plan_id_rejected (covers "" and " ") and test_empty_month_rejected.

Test plan

  • python3 -m pytest tests/test_sopify_writer.py -v — 35/35 passed (including 2 new tests)

@Li-Sanze
Li-Sanze merged commit 211ea66 into main Jun 26, 2026
4 checks passed
@Li-Sanze
Li-Sanze deleted the fix/issue-58-history-receipt-plan-id-guard branch July 19, 2026 08:35
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.

write_history_receipt() skips the plan_id validation that write_plan_receipt() enforces

1 participant