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

substiture IOError with more appropriate ValueError

This commit is contained in:
Julien Funk
2017-01-19 13:10:08 -05:00
parent 6887e2cff9
commit 9e70993d57
3 changed files with 11 additions and 6 deletions

View File

@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
'''Tests for cassettes with overriden persistence'''
'''Tests for cassettes with custom persistence'''
# External imports
import os
@@ -11,7 +11,7 @@ from vcr.persisters.filesystem import FilesystemPersister
def test_save_cassette_with_custom_persister(tmpdir, httpbin):
'''Ensure you can save a cassette using save_callback'''
'''Ensure you can save a cassette using custom persister'''
my_vcr = vcr.VCR()
my_vcr.register_persister(FilesystemPersister)
@@ -28,7 +28,7 @@ def test_save_cassette_with_custom_persister(tmpdir, httpbin):
def test_load_cassette_with_custom_persister(tmpdir, httpbin):
'''
Ensure you can load a cassette using load_callback
Ensure you can load a cassette using custom persister
'''
my_vcr = vcr.VCR()
my_vcr.register_persister(FilesystemPersister)