From bd26f3c607b5102e276a4758a43b68ada4c34fcc Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 30 Mar 2026 08:32:56 +0000 Subject: [PATCH] fix: remove unused imports (flake8 F401) and replace hardcoded test password Agent-Logs-Url: https://github.com/christianlouis/dmarq/sessions/72367edf-35f7-4c7c-a5ff-bbe4909b2139 Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com> --- backend/app/tests/test_imap_endpoints.py | 1 - backend/app/tests/test_security_extra.py | 2 -- backend/app/tests/test_setup_endpoints.py | 2 +- backend/app/tests/test_stats_endpoints.py | 1 - 4 files changed, 1 insertion(+), 5 deletions(-) diff --git a/backend/app/tests/test_imap_endpoints.py b/backend/app/tests/test_imap_endpoints.py index d0fcebd..d868917 100644 --- a/backend/app/tests/test_imap_endpoints.py +++ b/backend/app/tests/test_imap_endpoints.py @@ -6,7 +6,6 @@ Covers connection testing, report fetching (foreground and background), and stat from unittest.mock import MagicMock, patch -import pytest from fastapi.testclient import TestClient diff --git a/backend/app/tests/test_security_extra.py b/backend/app/tests/test_security_extra.py index 8702891..48183d1 100644 --- a/backend/app/tests/test_security_extra.py +++ b/backend/app/tests/test_security_extra.py @@ -6,14 +6,12 @@ create_access_token, and require_admin_auth branches not yet exercised. from datetime import timedelta import pytest -from fastapi.testclient import TestClient from jose import jwt from app.core.security import ( add_api_key, create_access_token, generate_api_key, - verify_api_key, verify_token, ) diff --git a/backend/app/tests/test_setup_endpoints.py b/backend/app/tests/test_setup_endpoints.py index 3d79531..e66f8b9 100644 --- a/backend/app/tests/test_setup_endpoints.py +++ b/backend/app/tests/test_setup_endpoints.py @@ -51,7 +51,7 @@ class TestSetupAdmin: json={ "email": "admin@example.com", "username": "admin", - "password": "s3cr3tpass", + "password": "test-placeholder-password", }, ) assert response.status_code == 201 diff --git a/backend/app/tests/test_stats_endpoints.py b/backend/app/tests/test_stats_endpoints.py index 950158f..bdf5e35 100644 --- a/backend/app/tests/test_stats_endpoints.py +++ b/backend/app/tests/test_stats_endpoints.py @@ -6,7 +6,6 @@ Covers dashboard statistics and per-domain statistics with cache refresh. from unittest.mock import MagicMock, patch -import pytest from fastapi.testclient import TestClient