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

    stop_events_device()