Private
Public Access
0
0

refactor(test): live_gui workspace via tmp_path_factory

This commit is contained in:
2026-06-09 15:51:35 -04:00
parent c32ae33817
commit c64da95ef5
+3 -3
View File
@@ -444,7 +444,7 @@ class _LiveGuiHandle:
@pytest.fixture(scope="session")
def live_gui() -> Generator["_LiveGuiHandle", None, None]:
def live_gui(request, tmp_path_factory) -> Generator["_LiveGuiHandle", None, None]:
"""
@@ -455,8 +455,8 @@ def live_gui() -> Generator["_LiveGuiHandle", None, None]:
diag = VerificationLogger("live_gui_startup", "live_gui_diag")
diag.log_state("GUI Script", "N/A", "gui_2.py")
# 1. Create a isolated workspace for the live GUI
temp_workspace = Path("tests/artifacts/live_gui_workspace")
# 1. Create a isolated workspace for the live GUI (in pytest tmp dir, not project tree)
temp_workspace = tmp_path_factory.mktemp("live_gui_workspace")
if temp_workspace.exists():
for _ in range(5):
try: