1
0
mirror of https://github.com/kevin1024/vcrpy.git synced 2025-12-09 01:03:24 +00:00

Merge pull request #413 from khamidou/add_rewind_method

Add a `rewind` method to reset a cassette.
This commit is contained in:
Ivan Malison
2019-06-10 17:53:37 -07:00
committed by GitHub
2 changed files with 14 additions and 0 deletions

View File

@@ -287,6 +287,9 @@ class Cassette(object):
% (self._path, request)
)
def rewind(self):
self.play_counts = collections.Counter()
def _as_dict(self):
return {"requests": self.requests, "responses": self.responses}