def test_callbacks(self): wrapper = Wrapper() sched = reactor.Scheduler() thread = reactor.Thread(sched, 'state', lambda: wrapper.callback_test()) sched.run()
def test_transaction_list(self): wrapper = Wrapper() sched = reactor.Scheduler() thread = reactor.Thread(sched, 'state', lambda: wrapper.transaction_list_test()) sched.run()
#! /usr/bin/env python3 import datetime import infinit.oracles.servers import reactor import time def main(): with infinit.oracles.servers.Oracles() as o: reactor.sleep(datetime.timedelta(seconds=2)) s = reactor.Scheduler() t = reactor.Thread(s, 'main', main) s.run()
def test_login_logout(self): wrapper = Wrapper() sched = reactor.Scheduler() thread = reactor.Thread(sched, 'state', lambda: wrapper.login_logout_test()) sched.run()
def run(f): import reactor s = reactor.Scheduler() t = reactor.Thread(s, 'main', f) s.run()