Пример #1
0
 def setUp(self) -> None:
     gm = GlobalManager()
     gm.start()
     self.board_manager = gm.board_manager
     self.log = logging.getLogger("BoardManagerTest")
Пример #2
0
import asyncio
from managers.global_manager import GlobalManager

gm = GlobalManager()
gm.start()


async def main():
    print("hi")
    await gm.discussion_manager.call_test()
    print("bye")


#asyncio.run(main())
if __name__ == '__main__':
    loop = asyncio.get_event_loop()
    loop.run_until_complete(main())
"""
try:
    loop.run_until_complete(asyncio.wait([main()]))
except asyncio.CancelledError:
    print('Tasks has been canceled')
finally:
    loop.close()
"""
Пример #3
0
 def setUp(self) -> None:
     gm = GlobalManager()
     gm.start()
     self.user_manager = gm.user_manager
     self.log = logging.getLogger("UserManagerTest")