Easily open or delete vcrpy cassettes within your tests. Bulk delete cassettes from the current file or the entire workspace.
test_
. (can be changed with testFileNameStartsWith
setting)Deletes all cassettes in the current file. Asks for confirmation before deleting.
Deletes all cassettes in the current workspace. Asks for confirmation before deleting.
vcrpy-cassette-mgr.testFileNameStartsWith
: The prefix of your test files. This is used to determine which files are test files and which are not. Defaults to test_
.vcrpy-cassette-mgr.cassetteDirectoryName
: The name of the directory where your cassettes are stored. The directory will be automatically located in any subdirectories of your workspace. Defaults to cassettes
.vcrpy-cassette-mgr.vcrDecoratorMatchText
: The text that should be matched to determine if a line is a vcrpy decorator. The default is for pytest, but can be changed to match any decorator such as @vcr.use_cassette
. Defaults to @pytest.mark.vcr
.vcrpy-cassette-mgr.deleteConfirmation
: Choose when to confirm before deleting cassettes.. Defaults to Workspace, Current File, Tests
.vcrpy-cassette-mgr.cassetteButtonOpen
: Show a button in the editor to open the cassette file. Defaults to true
.vcrpy-cassette-mgr.cassetteButtonDelete
: Show a button in the editor to delete the cassette file. Defaults to true
.python.testing.pytestArgs
vs code setting override) and change it from the status bar.None at this time.
Added planned features section to README.
@pytest.mark.parametrize
decorator is used #1vcrpy-cassette-mgr.deleteConfirmation
vcrpy-cassette-mgr.cassetteButtonOpen
vcrpy-cassette-mgr.cassetteButtonDelete