Merge pull request #1375 from MemPalace/fix/lint-e402-test-hooks-cli

fix(lint): hoist hooks_cli_mod import to top of test_hooks_cli (E402)
This commit is contained in:
Igor Lins e Silva
2026-05-06 01:58:29 -03:00
committed by GitHub
+1 -3
View File
@@ -8,6 +8,7 @@ from unittest.mock import MagicMock, patch
import pytest
import mempalace.hooks_cli as hooks_cli_mod
from mempalace.hooks_cli import (
SAVE_INTERVAL,
_count_human_messages,
@@ -969,9 +970,6 @@ def test_stop_hook_rejects_injected_stop_hook_active(tmp_path):
# STATE_DIR.mkdir() on its own.
import mempalace.hooks_cli as hooks_cli_mod
def _redirect_palace_root(monkeypatch, tmp_path):
"""Point PALACE_ROOT and STATE_DIR at a tmp location that does NOT exist."""
fake_root = tmp_path / "absent-mempalace"