def test_index_redirect_to_contacts(client): response = client.get("/") assert response.status_code == 302 assert response.headers.get("Location") == "/contacts" def test_get_contacts(client): response = client.get("/contacts") assert response.status_code == 200 assert "htmx" in response.text.lower()