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

Unit test resource classes instead of hitting the API #94

Merged
merged 1 commit into from
Jul 18, 2014

Conversation

kyleconroy
Copy link
Contributor

On my machine, tests now take 10 seconds instead of 70.

r? @metcalf @wangjohn

@bct
Copy link

bct commented Jul 18, 2014

Looks sane to me. Would be nice if we had code coverage statistics to verify all error cases, parser paths, etc. are still being tested, but c'est la vie.

kyleconroy added a commit that referenced this pull request Jul 18, 2014
Unit test resource classes instead of hitting the API
@kyleconroy kyleconroy merged commit 7605521 into master Jul 18, 2014
@kyleconroy kyleconroy deleted the faster-tests branch July 18, 2014 23:13
@metcalf
Copy link
Contributor

metcalf commented Jul 21, 2014

I think the improved test speeds and reliability are a big win here. I did like the property of the old tests that I was really sure it interacted properly with the actual API.

@danielchatfield
Copy link
Contributor

I wonder if it is feasible to test against the actual API before doing a release but use the new tests at other times.

@kyleconroy
Copy link
Contributor Author

@metcalf Note that we still make live API requests in the test suite, so we can be quite confidant that the library interacts correctly with the API.

speedplane pushed a commit to speedplane/stripe-python that referenced this pull request Jul 9, 2015
Unit test resource classes instead of hitting the API
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.

5 participants