Skip to content

The agent that grows with you

test: Windows MEDIA shell-path test seeds the store its missing-session check reads

Teknium8bba0efd3fa3
diff --git a/tests/hermes_cli/test_web_server_fs.py b/tests/hermes_cli/test_web_server_fs.py
index 24cfc5ddca3..1b7693c0a00 100644
--- a/tests/hermes_cli/test_web_server_fs.py
+++ b/tests/hermes_cli/test_web_server_fs.py
@@ -292,6 +292,9 @@ def test_fs_media_shell_paths_deliver_files_and_preserve_access_checks(client, t
assert response.status_code == expected, response.text
assert "must-not-be-delivered" not in response.text
+ from hermes_constants import get_hermes_home
+ from hermes_state import SessionDB
+ SessionDB(db_path=get_hermes_home() / "state.db").close() # read-only lookups need an initialized store
invalid_session = client.get(endpoint, params={
"path": shell_path(target), "profile": "default", "session_id": "missing-session",
})