How to create Events for test fixtures? #441
-
I'm trying to write tests for a function that processes Stripe events. Running into a problem creating test fixture data for these event types: https://docs.rs/async-stripe/0.23.0/stripe/struct.Event.html At the moment, I'm stuck on how to even create a mock EventID. https://docs.rs/async-stripe/0.23.0/stripe/struct.EventId.html I see in the repo there's a test that uses a mock client, but this seems complicated for what I'm trying to do. https://github.com/arlyon/async-stripe/blob/master/tests/checkout.rs Any advice? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
You may be interested in this (stalled) PR #374 If you'd like to open a new one with the same contents I will try to get it merged for you. |
Beta Was this translation helpful? Give feedback.
You may be interested in this (stalled) PR #374
If you'd like to open a new one with the same contents I will try to get it merged for you.