Exemple #1
0
 def test_callbacks(self):
     wrapper = Wrapper()
     sched = reactor.Scheduler()
     thread = reactor.Thread(sched, 'state',
                             lambda: wrapper.callback_test())
     sched.run()
Exemple #2
0
 def test_transaction_list(self):
     wrapper = Wrapper()
     sched = reactor.Scheduler()
     thread = reactor.Thread(sched, 'state',
                             lambda: wrapper.transaction_list_test())
     sched.run()
Exemple #3
0
#! /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()
Exemple #4
0
 def test_login_logout(self):
     wrapper = Wrapper()
     sched = reactor.Scheduler()
     thread = reactor.Thread(sched, 'state',
                             lambda: wrapper.login_logout_test())
     sched.run()
Exemple #5
0
def run(f):
    import reactor
    s = reactor.Scheduler()
    t = reactor.Thread(s, 'main', f)
    s.run()