예제 #1
0
파일: support.py 프로젝트: sthagen/molotov
 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[:] = self.old
     _FIXTURES.clear()
     _FIXTURES.update(self.oldsetup)
예제 #5
0
파일: support.py 프로젝트: loads/ailoads
 def tearDown(self):
     _SCENARIO.clear()
     _FIXTURES.clear()
     _FIXTURES.update(self.oldsetup)
     asyncio.set_event_loop_policy(self.policy)