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

The @use_cassette() decorator make methods always return None #219

Closed
raff opened this issue Oct 7, 2015 · 4 comments
Closed

The @use_cassette() decorator make methods always return None #219

raff opened this issue Oct 7, 2015 · 4 comments

Comments

@raff
Copy link

raff commented Oct 7, 2015

For regular tests, this works fine:

@vcr.use_cassette
def test_something(self):

run test

pass

But when trying to use the decorator like this:

@vcr.use_cassette
def test_with_return(self):

do something

return 42

calling the decorated method always return None, while it should be returning the method result.

@colonelpanic8
Copy link
Collaborator

This has already been fixed in #217, but it hasn't yet made it in to a release.

I'll make a new one now so you can get the update.

@dopplershift
Copy link

Any word on this release? I've got test failures induced by this and I'm trying to figure out what to do about it...

@colonelpanic8
Copy link
Collaborator

Sorry that took so long. New release (1.7.4) with a fix is out.

@dopplershift
Copy link

No worries, thanks for maintaining such an awesome package.

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

No branches or pull requests

3 participants