Skip to content

test(coupon): cover optional coupon period usages - #1112

Merged
habara-k merged 1 commit into
masterfrom
test/coupon-period-usages
Dec 3, 2026
Merged

habara-k merged 1 commit into
masterfrom
test/coupon-period-usages

Conversation

@habara-k

@habara-k habara-k commented Dec 3, 2026

Copy link
Copy Markdown
Contributor

Why

Test the supported Coupon period usages added in #1111 and line-openapi#134.

What changed

  • Exercise MessagingApi.create_coupon with an acquisition deadline and ticket expiration, ticket expiration alone, and no period fields.
  • Compare the entire HTTP request JSON to verify omitted endTimestamp stays absent. The existing fixed-deadline test covers an explicit value.
  • Read populated and null period fields through get_coupon_detail, including the response's usage deadline.

Verification

  • Coupon tests: 7 passed and 6 subtests passed.
  • tox: Python 3.11, 3.12, 3.14, and both flake8 environments passed. Python 3.10 and 3.13 skipped under the repository's missing-interpreter policy.

@habara-k
habara-k added this pull request to the merge queue Dec 3, 2026
Merged via the queue into master with commit 9b19ec4 Dec 3, 2026
24 checks passed
@habara-k
habara-k deleted the test/coupon-period-usages branch December 3, 2026 08:31
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.

2 participants