コード例 #1
0
 def tearDownClass(cls):
     stop_events_device()
コード例 #2
0
 def teardown_events_processes(cls):
     stop_events_device(_registry=cls.events_processes_registry)
     if cls.events_processes_registry_patcher:
         cls.events_processes_registry_patcher.stop()
     shutil.rmtree(cls.temp_dir)
コード例 #3
0
def events():
    temp_dir = tempfile.mkdtemp()
    start_events_device(temp_dir)
    yield EventsLogUtils(temp_dir=temp_dir)

    stop_events_device()