From c64da95ef5ac4d0e844a13fa8afdb5d82b51eaa5 Mon Sep 17 00:00:00 2001 From: Ed_ Date: Tue, 9 Jun 2026 15:51:35 -0400 Subject: [PATCH] refactor(test): live_gui workspace via tmp_path_factory --- tests/conftest.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/conftest.py b/tests/conftest.py index 8938bd94..d9b33fc2 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -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: