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

+ @bhartin - now vcr can handle multiple requests

This commit is contained in:
Sri Prasanna
2013-02-21 13:04:55 +03:00
parent 1d3fe5c33e
commit ed682cf354
2 changed files with 15 additions and 4 deletions

View File

@@ -16,5 +16,5 @@ def save_cassette(cassette_path, cassette):
dirname, filename = os.path.split(cassette_path)
if not os.path.exists(dirname):
os.makedirs(dirname)
with open(cassette_path, 'wc') as cassette_file:
with open(cassette_path, 'a') as cassette_file:
cassette_file.write(yaml.dump(cassette.serialize()))