import pytest from fastapi.testclient import TestClient @pytest.mark.integration def test_create_ssh_key_requires_authentication(test_client: TestClient) -> None: response = test_client.post("/ssh-keys", json={"name": "test-key"}) assert response.status_code == 401 @pytest.mark.integration def test_list_ssh_keys_requires_authentication(test_client: TestClient) -> None: response = test_client.get("/ssh-keys") assert response.status_code == 401