Private
Public Access
0
0

test(workspace): update fixture test to assert tests/artifacts/ not tmp dir

This commit is contained in:
2026-06-09 21:06:06 -04:00
parent ccc2aa0be9
commit aa776224f2
+5 -5
View File
@@ -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: