def tearDownClass(cls):
     stop_events_device()
Exemplo n.º 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)
Exemplo n.º 3
0
def events():
    temp_dir = tempfile.mkdtemp()
    start_events_device(temp_dir)
    yield EventsLogUtils(temp_dir=temp_dir)

    stop_events_device()