# apps/api/tests/api
dir: apps/api/tests/api

index: apps/api/tests/api/.pi-map.index.md

## role
Integration tests for multi-session terminal WebSocket routes and authentication requirements on REST API endpoints
## files
- test_terminal_ws_multi.py | Integration tests verifying multi-session terminal WebSocket routes exist and REST API endpoints require authentication | exp: class:TestTerminalWebSocketMultiSession, method:test_specific_session_websocket_route_exists(self, client), call:client.get, method:test_default_session_alias_route_exists(self, client), call:client.get, class:TestTerminalRestApi, method:test_list_sessions_requires_auth(self, client), call:client.get, method:test_create_session_requires_auth(self, client), call:client.post, method:test_close_session_requires_auth(self, client), call:client.delete, method:test_reset_session_requires_auth(self, client), call:client.post, method:test_rename_session_requires_auth(self, client), call:client.post, method:test_legacy_reset_alias_requires_auth(self, client), call:client.post, func:client(), call:TestClient | dep: pytest, fastapi.testclient, src.main
## arch
Test-driven validation using pytest with WebSocket client testing and HTTP authentication assertion patterns
## tags
test, session, requires, auth, call:client.post, terminal, call:client.get, multi
## symbols
- TestTerminalWebSocketMultiSession
- TestTerminalRestApi
- test_specific_session_websocket_route_exists
- test_default_session_alias_route_exists
- test_list_sessions_requires_auth
- test_create_session_requires_auth
- test_close_session_requires_auth
- test_reset_session_requires_auth
## workflows
- change api behavior
  read: test_terminal_ws_multi.py
## dirty
-
