Skip to content

Commit

Permalink
Fix patch of FliesystemPersister.load_cassette
Browse files Browse the repository at this point in the history
  • Loading branch information
colonelpanic8 committed Jan 13, 2017
1 parent a033bc7 commit 06b0083
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion tests/unit/test_cassettes.py
Expand Up @@ -86,7 +86,7 @@ def make_get_request():

@mock.patch('vcr.cassette.requests_match', return_value=True)
@mock.patch('vcr.cassette.FilesystemPersister.load_cassette',
lambda *args, **kwargs: (('foo',), (mock.MagicMock(),)))
classmethod(lambda *args, **kwargs: (('foo',), (mock.MagicMock(),))))
@mock.patch('vcr.cassette.Cassette.can_play_response_for', return_value=True)
@mock.patch('vcr.stubs.VCRHTTPResponse')
def test_function_decorated_with_use_cassette_can_be_invoked_multiple_times(*args):
Expand Down
1 change: 1 addition & 0 deletions vcr/persisters/filesystem.py
Expand Up @@ -3,6 +3,7 @@


class FilesystemPersister(object):

@classmethod
def load_cassette(cls, cassette_path, serializer):
with open(cassette_path) as f:
Expand Down

0 comments on commit 06b0083

Please sign in to comment.