1
0
mirror of https://github.com/gsi-upm/senpy synced 2024-11-14 04:32:29 +00:00
senpy/tests/sleep_plugin/sleep.py

17 lines
423 B
Python
Raw Normal View History

from senpy.plugins import SenpyPlugin
2015-02-23 01:13:31 +00:00
from senpy.models import Response
from time import sleep
class SleepPlugin(SenpyPlugin):
def __init__(self, info, *args, **kwargs):
super(SleepPlugin, self).__init__(info, *args, **kwargs)
self.timeout = int(info["timeout"])
def activate(self, *args, **kwargs):
sleep(self.timeout)
2015-02-23 01:13:31 +00:00
def analyse(self, *args, **kwargs):
return Response()