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:
@@ -8,6 +8,7 @@ from unittest.mock import MagicMock, patch
|
|||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
|
import mempalace.hooks_cli as hooks_cli_mod
|
||||||
from mempalace.hooks_cli import (
|
from mempalace.hooks_cli import (
|
||||||
SAVE_INTERVAL,
|
SAVE_INTERVAL,
|
||||||
_count_human_messages,
|
_count_human_messages,
|
||||||
@@ -969,9 +970,6 @@ def test_stop_hook_rejects_injected_stop_hook_active(tmp_path):
|
|||||||
# STATE_DIR.mkdir() on its own.
|
# STATE_DIR.mkdir() on its own.
|
||||||
|
|
||||||
|
|
||||||
import mempalace.hooks_cli as hooks_cli_mod
|
|
||||||
|
|
||||||
|
|
||||||
def _redirect_palace_root(monkeypatch, tmp_path):
|
def _redirect_palace_root(monkeypatch, tmp_path):
|
||||||
"""Point PALACE_ROOT and STATE_DIR at a tmp location that does NOT exist."""
|
"""Point PALACE_ROOT and STATE_DIR at a tmp location that does NOT exist."""
|
||||||
fake_root = tmp_path / "absent-mempalace"
|
fake_root = tmp_path / "absent-mempalace"
|
||||||
|
|||||||
Reference in New Issue
Block a user