Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update subscriptions tests to pass with new API changes #426

Merged
merged 1 commit into from
Feb 13, 2018

Conversation

brandur
Copy link
Contributor

@brandur brandur commented Feb 13, 2018

Version 2018-02-05 came with a major change to plans and products:

  • Products now have a type which is service or good.
  • Plans have name change to nickname.
  • Plans now take a product (of type=service) on creation.

Testing on master is currently broken. This patch updates some test suites to
allow for the new API changes and fixes the suite.

r? @ob-stripe

currency: CURRENCY,
interval: 'month',
nickname: 'Gold Super Amazing Tier',
product: product.id,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can create the plan and product in a single API request, by passing a dictionary for the product parameter. In the interest of making the test suite faster (until we move to stripe-mock 🤞 ), maybe that'd be preferable?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, excellent point! Updated.

ptal @ob-stripe

Version 2018-02-05 came with a major change to plans and products:

* Products now have a `type` which is `service` or `good`.
* Plans have `name` change to `nickname`.
* Plans now take a product (of `type=service`) on creation.
@ob-stripe
Copy link
Contributor

👍 LGTM

@brandur-stripe brandur-stripe merged commit dc667cf into master Feb 13, 2018
@brandur-stripe brandur-stripe deleted the brandur-fix-plans branch February 13, 2018 22:39
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.

3 participants