Private
Public Access
0
0

refactor(test): 5 test files use live_gui_workspace fixture instead of hardcoded path

This commit is contained in:
2026-06-09 16:14:40 -04:00
parent 91313451a2
commit 006bb11488
5 changed files with 12 additions and 13 deletions
+4 -5
View File
@@ -5,13 +5,13 @@ from pathlib import Path
import tomli_w
from src.api_hook_client import ApiHookClient
def test_preset_switching(live_gui):
def test_preset_switching(live_gui, live_gui_workspace):
client = ApiHookClient()
client.click("btn_reset")
time.sleep(2)
# Paths for presets
temp_workspace = Path("tests/artifacts/live_gui_workspace")
temp_workspace = live_gui_workspace
global_presets_path = temp_workspace / "presets.toml"
project_presets_path = temp_workspace / "project_presets.toml"
manual_slop_path = temp_workspace / "manual_slop.toml"
@@ -96,7 +96,7 @@ def test_preset_switching(live_gui):
if global_presets_path.exists(): global_presets_path.unlink()
if project_presets_path.exists(): project_presets_path.unlink()
def test_preset_manager_modal(live_gui):
def test_preset_manager_modal(live_gui, live_gui_workspace):
client = ApiHookClient()
client.click("btn_reset")
time.sleep(2)
@@ -118,7 +118,6 @@ def test_preset_manager_modal(live_gui):
time.sleep(1)
# Verify it exists in file
temp_workspace = Path("tests/artifacts/live_gui_workspace")
global_presets_path = temp_workspace / "presets.toml"
global_presets_path = live_gui_workspace / "presets.toml"
# assert global_presets_path.exists(), f"Global presets file not found at {global_presets_path}. Full state: {client.get_gui_state()}"