feat(test): autouse _check_live_gui_health recovers from degraded subprocess
This commit is contained in:
+1
-2
@@ -639,11 +639,10 @@ def live_gui() -> Generator["_LiveGuiHandle", None, None]:
|
|||||||
time.sleep(0.5)
|
time.sleep(0.5)
|
||||||
except:
|
except:
|
||||||
break
|
break
|
||||||
|
|
||||||
@pytest.fixture(autouse=True)
|
@pytest.fixture(autouse=True)
|
||||||
def _check_live_gui_health(request, live_gui) -> Generator[None, None, None]:
|
def _check_live_gui_health(request, live_gui) -> Generator[None, None, None]:
|
||||||
"""[SDM: tests/conftest.py:_check_live_gui_health] [C: every test using live_gui]"""
|
|
||||||
if "live_gui" in request.fixturenames:
|
if "live_gui" in request.fixturenames:
|
||||||
handle = live_gui
|
handle = live_gui
|
||||||
handle.ensure_alive()
|
handle.ensure_alive()
|
||||||
yield
|
yield
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user