diff --git a/backend/tests/test_auth.py b/backend/tests/test_auth.py index 4377c31..18ccd83 100644 --- a/backend/tests/test_auth.py +++ b/backend/tests/test_auth.py @@ -37,7 +37,7 @@ def test_login_inactive_user(client, db): """Test login with inactive user returns 400.""" from app.auth import hash_password from app.models.user import User - + user = User( username="inactive", hashed_password=hash_password("password"), @@ -46,7 +46,7 @@ def test_login_inactive_user(client, db): ) db.add(user) db.commit() - + response = client.post( "/api/v1/auth/login", data={"username": "inactive", "password": "password"}, diff --git a/backend/tests/test_techniques.py b/backend/tests/test_techniques.py index cd2684f..6749835 100644 --- a/backend/tests/test_techniques.py +++ b/backend/tests/test_techniques.py @@ -53,7 +53,7 @@ def test_create_duplicate_technique(client, auth_headers): json={"mitre_id": "T1001", "name": "First"}, headers=auth_headers, ) - + # Try to create duplicate response = client.post( "/api/v1/techniques", @@ -71,7 +71,7 @@ def test_get_technique_by_mitre_id(client, auth_headers): json={"mitre_id": "T1059", "name": "Test Technique"}, headers=auth_headers, ) - + # Get it by mitre_id response = client.get("/api/v1/techniques/T1059", headers=auth_headers) assert response.status_code == 200 @@ -92,7 +92,7 @@ def test_update_technique(client, auth_headers): json={"mitre_id": "T1059", "name": "Original Name"}, headers=auth_headers, ) - + # Update it response = client.patch( "/api/v1/techniques/T1059", @@ -116,7 +116,7 @@ def test_filter_techniques_by_tactic(client, auth_headers): json={"mitre_id": "T1002", "name": "Persist", "tactic": "persistence"}, headers=auth_headers, ) - + # Filter by execution response = client.get( "/api/v1/techniques?tactic=execution",