"""Tests for schedule calendar routes.""" from fastapi.testclient import TestClient class TestSchedule: """Tests for GET /schedule.""" def test_schedule_requires_profile(self, client: TestClient) -> None: """GET /schedule should redirect to / without profile cookie.""" response = client.get("/schedule", follow_redirects=False) assert response.status_code == 302 assert response.headers["location"] == "/"