1
0
mirror of https://github.com/kevin1024/vcrpy.git synced 2025-12-08 16:53:23 +00:00

Add a rewind method to reset a cassette.

This commit is contained in:
Karim Hamidou
2018-12-20 12:44:07 +01:00
parent c74a857aa4
commit 472bc3aea1
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}