1
0
mirror of https://github.com/kevin1024/vcrpy.git synced 2025-12-08 16:53:23 +00:00

Load Old Cassettes

Add backwards-compatible cassette loading code that can load
the old style header dicts from response cassettes.
This commit is contained in:
Kevin McCarthy
2014-01-11 09:26:34 -10:00
parent 2cf779d776
commit 84bf7b6132
5 changed files with 140 additions and 118 deletions

View File

@@ -3,6 +3,5 @@ from config import VCR
default_vcr = VCR()
# Also, make a 'load' function available
def use_cassette(path, **kwargs):
return default_vcr.use_cassette(path, **kwargs)