mirror of
https://github.com/kevin1024/vcrpy.git
synced 2025-12-09 17:15:35 +00:00
dont append to cassette file
This commit is contained in:
@@ -15,5 +15,5 @@ def save_cassette(cassette_path, data):
|
||||
dirname, filename = os.path.split(cassette_path)
|
||||
if not os.path.exists(dirname):
|
||||
os.makedirs(dirname)
|
||||
with open(cassette_path, 'a') as cassette_file:
|
||||
with open(cassette_path, 'w') as cassette_file:
|
||||
cassette_file.write(yaml.dump(data, Dumper=Dumper))
|
||||
|
||||
Reference in New Issue
Block a user