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

17
vcr/record_mode.py Normal file
View File

@@ -0,0 +1,17 @@
from enum import Enum
class RecordMode(str, Enum):
"""
Configues when VCR will record to the cassette.
`ALL`: Every request is recorded.
`ANY`: ?
`NEW_EPISODES`: Any request not found in the cassette is recorded.
`NONE`: No requests are recorded.
`ONCE`: First set of requests is recorded, all others are replayed. Attempting to add a new episode fails.
"""
ALL = "all"
ANY = "any"
NEW_EPISODES = "new_episodes"
NONE = "none"
ONCE = "once"