Ejemplo n.º 1
0
    def __init__(self, **kwargs):

        #
        # Import various AppDaemon bits and pieces now to avoid circular import
        #

        from appdaemontestframework.appdaemon_mock.scheduler import MockScheduler

        # Use UTC timezone just for testing.
        self.tz = pytz.timezone('UTC')

        self.sched = MockScheduler(self)
def scheduler() -> MockScheduler:
    return MockScheduler(MockAppDaemon())