Skip to content

use mock requests for better reliability and isolation#46

Merged
wozozo merged 3 commits intomasterfrom
mock-tests
Apr 30, 2025
Merged

use mock requests for better reliability and isolation#46
wozozo merged 3 commits intomasterfrom
mock-tests

Conversation

@wozozo
Copy link
Contributor

@wozozo wozozo commented Apr 18, 2025

  • HTTP通信が発生している箇所をモックに差し替え
  • 空文字を値にセットした際に InvalidArgumentException を投げていたが、受け入れるように変更

wozozo added 2 commits April 18, 2025 10:12
- Updated EventTest to mock event data retrieval and assertions.
- Enhanced InvalidRequestErrorTest to mock error responses for invalid requests.
- Refactored PlanTest to utilize mock data for plan creation, retrieval, and deletion.
- Improved SubscriptionTest with mock data for customer and subscription lifecycle tests.
- Added mock data generation methods in TokenTest for token creation and retrieval.
- Enhanced TransferTest to mock transfer and charge data for testing.
- Updated UtilTest to mock customer data for utility function tests.
@wozozo wozozo requested a review from nonz250 April 23, 2025 06:29
@wozozo wozozo merged commit e8e1e00 into master Apr 30, 2025
10 checks passed
@wozozo wozozo deleted the mock-tests branch April 30, 2025 00:16
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

Comments