mirror of
https://github.com/kevin1024/vcrpy.git
synced 2025-12-09 17:15:35 +00:00
fix lints
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
import logging
|
import logging
|
||||||
from .config import VCR
|
from .config import VCR
|
||||||
from logging import NullHandler
|
from logging import NullHandler
|
||||||
from .record_mode import RecordMode as mode
|
from .record_mode import RecordMode as mode # noqa import is not used in this file
|
||||||
|
|
||||||
__version__ = "4.0.2"
|
__version__ = "4.0.2"
|
||||||
|
|
||||||
|
|||||||
@@ -5,15 +5,17 @@ class RecordMode(str, Enum):
|
|||||||
"""
|
"""
|
||||||
Configues when VCR will record to the cassette.
|
Configues when VCR will record to the cassette.
|
||||||
|
|
||||||
Can be declared by either using the enumerated value (`vcr.mode.ONCE`) or by simply using the defined string (`once`).
|
Can be declared by either using the enumerated value (`vcr.mode.ONCE`)
|
||||||
|
or by simply using the defined string (`once`).
|
||||||
|
|
||||||
`ALL`: Every request is recorded.
|
`ALL`: Every request is recorded.
|
||||||
`ANY`: ?
|
`ANY`: ?
|
||||||
`NEW_EPISODES`: Any request not found in the cassette is recorded.
|
`NEW_EPISODES`: Any request not found in the cassette is recorded.
|
||||||
`NONE`: No requests are recorded.
|
`NONE`: No requests are recorded.
|
||||||
`ONCE`: First set of requests is recorded, all others are replayed. Attempting to add a new episode fails.
|
`ONCE`: First set of requests is recorded, all others are replayed.
|
||||||
|
Attempting to add a new episode fails.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
ALL = "all"
|
ALL = "all"
|
||||||
ANY = "any"
|
ANY = "any"
|
||||||
NEW_EPISODES = "new_episodes"
|
NEW_EPISODES = "new_episodes"
|
||||||
|
|||||||
Reference in New Issue
Block a user