Make the rate-limiting test more fancy
This commit is contained in:
parent
7cb5ecdb74
commit
b94e4971e3
|
@ -4,11 +4,11 @@ from seleniumbase.common import decorators
|
|||
|
||||
class MyTestClass(BaseCase):
|
||||
|
||||
@decorators.rate_limited(4) # The arg is max calls per second
|
||||
@decorators.rate_limited(3.5) # The arg is max calls per second
|
||||
def print_item(self, item):
|
||||
print item
|
||||
|
||||
def test_rate_limited_printing(self):
|
||||
print "\nRunning rate-limited print test:"
|
||||
for item in xrange(10):
|
||||
for item in xrange(1,11):
|
||||
self.print_item(item)
|
||||
|
|
Loading…
Reference in New Issue