1
0
mirror of https://github.com/gsi-upm/senpy synced 2024-11-25 09:32:29 +00:00
senpy/tests/sleep_plugin/sleep.py
J. Fernando Sánchez 7fd69cc690 YAPFed
2017-01-10 10:19:32 +01:00

13 lines
321 B
Python

from senpy.plugins import SenpyPlugin
from senpy.models import Results
from time import sleep
class SleepPlugin(SenpyPlugin):
def activate(self, *args, **kwargs):
sleep(self.timeout)
def analyse(self, *args, **kwargs):
sleep(float(kwargs.get("timeout", self.timeout)))
return Results()