1
0
mirror of https://github.com/kevin1024/vcrpy.git synced 2025-12-09 17:15:35 +00:00

Add Decorator Support

This commit is contained in:
Kevin McCarthy
2013-12-15 16:43:11 -10:00
parent 0d08157e5d
commit 144d25bc66
4 changed files with 30 additions and 3 deletions

View File

@@ -6,6 +6,8 @@ except ImportError:
from .compat.counter import Counter
from .compat.ordereddict import OrderedDict
from contextdecorator import ContextDecorator
# Internal imports
from .patch import install, reset
from .persist import load_cassette, save_cassette
@@ -13,7 +15,7 @@ from .serializers import yamlserializer
from .matchers import requests_match, url, method
class Cassette(object):
class Cassette(ContextDecorator):
'''A container for recorded requests and responses'''
@classmethod