You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 31, 2021. It is now read-only.
I have defined a custom VCRTestCase class which sets record_mode to new_episodes but it will not replay recorded episodes.
This is the class:
fromvcr_unittestimportVCRTestCaseasBaseVCRTestCaseclassVCRTestCase(BaseVCRTestCase):
""" A TestCase that provides VCR integration and records new episodes. """def_get_vcr_kwargs(self, **kwargs):
kwargs['record_mode'] ='new_episodes'returnkwargs
When set up like that VCR records new episodes but will not use stored recordings.
I am using vcrpy-unittest=0.1.7 and vcrpy=2.0.1
The text was updated successfully, but these errors were encountered:
If I change the record_mode to once and run the tests again, then VCR will replay the stored recordings, so it is actually storing them correctly, but when I change it back to new_episodes while keeping the YAML files, it refuses to replay them.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I have defined a custom
VCRTestCase
class which setsrecord_mode
to new_episodes but it will not replay recorded episodes.This is the class:
When set up like that VCR records new episodes but will not use stored recordings.
I am using vcrpy-unittest=0.1.7 and vcrpy=2.0.1
The text was updated successfully, but these errors were encountered: