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)
|
||||
except:
|
||||
break
|
||||
|
||||
@pytest.fixture(autouse=True)
|
||||
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:
|
||||
handle = live_gui
|
||||
handle.ensure_alive()
|
||||
yield
|
||||
|
||||
|
||||
Reference in New Issue
Block a user