mirror of
https://github.com/kevin1024/vcrpy.git
synced 2025-12-08 16:53:23 +00:00
Added implementation for Cassette#all_payed
This commit is contained in:
@@ -60,6 +60,13 @@ class Cassette(ContextDecorator):
|
||||
def play_count(self):
|
||||
return sum(self.play_counts.values())
|
||||
|
||||
@property
|
||||
def all_played(self):
|
||||
"""
|
||||
Returns True if all responses have been played, False otherwise.
|
||||
"""
|
||||
return self.play_count == len(self)
|
||||
|
||||
@property
|
||||
def requests(self):
|
||||
return [request for (request, response) in self.data]
|
||||
|
||||
Reference in New Issue
Block a user