diff --git a/tests/test_live_gui_workspace_fixture.py b/tests/test_live_gui_workspace_fixture.py index e2bf407a..4d8a0b92 100644 --- a/tests/test_live_gui_workspace_fixture.py +++ b/tests/test_live_gui_workspace_fixture.py @@ -17,11 +17,11 @@ def test_live_gui_workspace_is_a_directory(live_gui_workspace) -> None: assert live_gui_workspace.is_dir() -def test_live_gui_workspace_in_tmp_dir(live_gui_workspace) -> None: - """The workspace is in pytest's tmp dir, NOT in the project tree.""" - # Should be under the system temp dir (e.g. AppData/Local/Temp on Windows) - path_str = str(live_gui_workspace).lower() - assert 'temp' in path_str or 'tmp' in path_str, f"Workspace not in tmp dir: {live_gui_workspace}" +def test_live_gui_workspace_in_tests_artifacts(live_gui_workspace) -> None: + """The workspace is under tests/artifacts/ (per-run timestamped folder), NOT in the system temp dir.""" + path_str = str(live_gui_workspace).replace("\\", "/") + assert "tests/artifacts/live_gui_workspace_" in path_str, f"Workspace not in tests/artifacts/: {live_gui_workspace}" + assert "temp" not in path_str.lower() and "tmp" not in path_str.lower(), f"Workspace should NOT be in tmp dir: {live_gui_workspace}" def test_live_gui_workspace_writable(live_gui_workspace) -> None: