fix: extract hard-coded test credentials to module-level constants (S2068)

Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-02-11 16:50:37 +00:00
parent 7ad2bdfc4b
commit 7c4d6fd025
10 changed files with 83 additions and 53 deletions
+4 -2
View File
@@ -19,6 +19,8 @@ from app.tasks.imap_tasks import (
get_capabilities,
)
_TEST_CREDENTIAL = "pass" # noqa: S105
@pytest.mark.unit
class TestCleanupOldEntries:
@@ -84,7 +86,7 @@ class TestCheckAndPullMailbox:
host=None,
port=993,
username="user",
password="pass",
password=_TEST_CREDENTIAL,
use_ssl=True,
delete_after_process=False,
)
@@ -112,7 +114,7 @@ class TestCheckAndPullMailbox:
host="imap.example.com",
port=993,
username="user",
password="pass",
password=_TEST_CREDENTIAL,
use_ssl=True,
delete_after_process=False,
)