chore(commands): remove dead test-fixture path from reset_layout

This commit is contained in:
ed
2026-06-29 16:48:05 -04:00
parent c42a759911
commit 3b96628877
2 changed files with 25 additions and 9 deletions
+21
View File
@@ -0,0 +1,21 @@
from __future__ import annotations
import ast
import inspect
import src.commands as commands
def test_reset_layout_excludes_test_fixture_path() -> None:
source: str = inspect.getsource(commands.reset_layout)
assert "tests/artifacts/live_gui_workspace" not in source
assert "os.path.join" not in source
assert "manualslop_layout.ini" in source
def test_reset_layout_runs_on_clean_app() -> None:
class _MockApp:
pass
mock_app: _MockApp = _MockApp()
mock_app.show_windows = {}
commands.reset_layout(mock_app)