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>
This commit is contained in:
copilot-swe-agent[bot]
2026-03-30 08:32:56 +00:00
parent dc4e8377ee
commit bd26f3c607
4 changed files with 1 additions and 5 deletions
-1
View File
@@ -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
-2
View File
@@ -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,
)
+1 -1
View File
@@ -51,7 +51,7 @@ class TestSetupAdmin:
json={
"email": "admin@example.com",
"username": "admin",
"password": "s3cr3tpass",
"password": "test-placeholder-password",
},
)
assert response.status_code == 201
@@ -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