@pytest.fixture
def win_registry():
 helper = WinRegistryHelper()
 helper.add_window(0)
 (yield helper)
 helper.cleanup()

@ pytest . fixture def win_registry ( ) : helper = WinRegistryHelper ( ) helper . add_window ( 0 ) ( yield helper ) helper . cleanup ( )
fixture providing a window registry for win_id 0 and 1 .