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)