Currently custom persisters must be registered by called the register_persister function on an existing VCR object, for example: my_vcr = vcr.VCR(); my_vcr.register_persister(MyPersister).
From an ergonomics point of view, it would be better if persisters could be treated just like any other option.
This would make it possible to set a custom persister when using function decorators @vcr.use_cassette("foo", mode="none", persister=MyPersister).
Given that Cassette class takes a persister argument, it looks like this is supposed to work, but just doesn't? Can it be considered a bug that use_cassette doesn't pass it along?
Currently custom persisters must be registered by called the
register_persister
function on an existing VCR object, for example:my_vcr = vcr.VCR(); my_vcr.register_persister(MyPersister)
.From an ergonomics point of view, it would be better if persisters could be treated just like any other option.
This would make it possible to set a custom persister when using function decorators
@vcr.use_cassette("foo", mode="none", persister=MyPersister)
.