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

enumerate record_mode values

This commit is contained in:
Aaron Bannin
2020-05-24 20:15:01 -07:00
parent 2e5fdd36d5
commit 0c2bbe0d51
9 changed files with 51 additions and 30 deletions

View File

@@ -45,7 +45,7 @@ def test_disk_saver_write(tmpdir, httpbin):
# the mtime doesn't change
time.sleep(1)
with vcr.use_cassette(fname, record_mode="any") as cass:
with vcr.use_cassette(fname, record_mode=vcr.mode.ANY) as cass:
urlopen(httpbin.url).read()
urlopen(httpbin.url + "/get").read()
assert cass.play_count == 1