test(#7548): mark the monkeypatch-target import as intentional (ruff F401)
Co-authored-by: webtecnica <webtecnica@users.noreply.github.com>
This commit is contained in:
1 parent
afcb1bf420
commit
5ecf92382a
1 file changed
+1
-1
@@ -81,7 +81,7 @@ def test_cli_archived_session_without_sidecar_retains_archived_state(tmp_path, m
|
||||
clear_cli_sessions_cache()
|
||||
monkeypatch.setenv("HERMES_HOME", str(tmp_path))
|
||||
try:
|
||||
import api.profiles
|
||||
import api.profiles # noqa: F401 # makes the monkeypatch target below importable
|
||||
monkeypatch.setattr("api.profiles.get_active_hermes_home", lambda: str(tmp_path))
|
||||
except Exception:
|
||||
pass
|
||||
|
||||
Reference in new issue
Block a user