From 0e2e9d0bb0d93fb0fe76428ea02b0316e22a37b8 Mon Sep 17 00:00:00 2001 From: kitos Date: Fri, 12 Jun 2026 11:00:42 +0200 Subject: [PATCH] fix(lint): remove trailing whitespace from blank lines in test files --- backend/tests/test_auth.py | 4 ++-- backend/tests/test_techniques.py | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) 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",