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:
@@ -6,7 +6,6 @@ Covers connection testing, report fetching (foreground and background), and stat
|
|||||||
|
|
||||||
from unittest.mock import MagicMock, patch
|
from unittest.mock import MagicMock, patch
|
||||||
|
|
||||||
import pytest
|
|
||||||
from fastapi.testclient import TestClient
|
from fastapi.testclient import TestClient
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -6,14 +6,12 @@ create_access_token, and require_admin_auth branches not yet exercised.
|
|||||||
from datetime import timedelta
|
from datetime import timedelta
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
from fastapi.testclient import TestClient
|
|
||||||
from jose import jwt
|
from jose import jwt
|
||||||
|
|
||||||
from app.core.security import (
|
from app.core.security import (
|
||||||
add_api_key,
|
add_api_key,
|
||||||
create_access_token,
|
create_access_token,
|
||||||
generate_api_key,
|
generate_api_key,
|
||||||
verify_api_key,
|
|
||||||
verify_token,
|
verify_token,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -51,7 +51,7 @@ class TestSetupAdmin:
|
|||||||
json={
|
json={
|
||||||
"email": "admin@example.com",
|
"email": "admin@example.com",
|
||||||
"username": "admin",
|
"username": "admin",
|
||||||
"password": "s3cr3tpass",
|
"password": "test-placeholder-password",
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
assert response.status_code == 201
|
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
|
from unittest.mock import MagicMock, patch
|
||||||
|
|
||||||
import pytest
|
|
||||||
from fastapi.testclient import TestClient
|
from fastapi.testclient import TestClient
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user