Comments (6)
This seems to have a strong relation with #71
from stripity-stripe.
Just a thought: You may even want to distribute mock modules as part of the package itself. Even when the package is used by other code, that code then has to perform integration testing. By providing a mock module that can easily be substituted, implementers don't have to write their own mocks. They just substitute Stripe
with FakeStripe
(or whatever the mock module name) using application configuration.
from stripity-stripe.
@DavidAntaramian this is definitely my ideal here. I would rather not do this for the package as a consumer and would rather have the library expose some of those modules along with test helpers.
cc @dmvt ☝️
from stripity-stripe.
I wrote the idea of never hitting the API as part of our testing into the Version 2 RFC. I also think the idea of the mock module is an interesting one. Perhaps we should leave this open until we see how the Version 2 testing approach plays out?
from stripity-stripe.
Conversation has moved to #102.
from stripity-stripe.
Closing in favor of #124.
from stripity-stripe.
Related Issues (20)
- FunctionClauseError when using Stripe.PaymentMethod.attach HOT 2
- [Proposal] Make param from Stripe.Error to be a string instead of atom HOT 2
- Cutting a Release HOT 16
- OpenApi struct is undefined HOT 7
- [Question] How to guarantee order of body params HOT 1
- Stripe.TestClock is undefined HOT 1
- Odd url generation for BillingPortal.Session HOT 5
- `Stripe.Account.create_login_link` has wrong return type spec HOT 3
- Open api url issue with stripe invoice finalization HOT 5
- Stripe.Webhook fails to process message for "financial_connections.account.created" HOT 5
- Stripe.Account.create has an incomplete spec HOT 7
- Request.put_endpoint/2 doesn't function as described HOT 3
- warning: Stripe.Session.retrieve/1 is undefined (module Stripe.Session is not available or is yet) HOT 1
- `Stripe.Account.retrieve` does not allow for account id HOT 4
- Possibly missing `id` (for SubscriptionItem) on `items` type signature for `Subscription`. HOT 7
- Custom fields checkout typespec is wrong HOT 4
- Unable to retrieve test clocks from Stripe due to invalid struct name HOT 4
- Stripe API Version table in README is years outdated HOT 3
- Add STRIPE_LOG support HOT 2
- Add conn as expected second argument in StripeHandler handle_event callbacks HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from stripity-stripe.