mirror of
https://github.com/kevin1024/vcrpy.git
synced 2025-12-10 09:35:34 +00:00
Merge pull request #78 from mshytikov/feature/cassette-all-played
Feature/Cassette#all_played
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