Пример #1
0
 def setUp(self):
     self.old = dict(_SCENARIO)
     self.oldsetup = dict(_FIXTURES)
     util._STOP = False
     util._STOP_WHY = []
     util._TIMER = None
     self.policy = asyncio.get_event_loop_policy()
     _SCENARIO.clear()
     _FIXTURES.clear()
Пример #2
0
 def tearDown(self):
     _SCENARIO.clear()
     _FIXTURES.clear()
     _FIXTURES.update(self.oldsetup)
     asyncio.set_event_loop_policy(self.policy)
Пример #3
0
def _init_molotov():
    from molotov.api import _SCENARIO, _FIXTURES
    _SCENARIO.clear()
    _FIXTURES.clear()
    asyncio.set_event_loop(asyncio.new_event_loop())
Пример #4
0
 def tearDown(self):
     _SCENARIO.clear()
     _FIXTURES.clear()
     _FIXTURES.update(self.oldsetup)
     asyncio.set_event_loop_policy(self.policy)