style(project): 🎨 improve all docstrings and centralize mail variables in mail_utils

This commit is contained in:
2026-09-17 12:59:07 +02:00
parent 6909ee7acf
commit 5e43a0cbb8
17 changed files with 116 additions and 101 deletions
+3 -3
View File
@@ -110,7 +110,7 @@ class OkProtocol:
class OkAccount:
"""Account with a protocol that returns a version successfully."""
def __init__(self): # noqa: D102
def __init__(self): # noqa: D107
self.protocol = OkProtocol()
@@ -380,7 +380,7 @@ def test_fetch_log_messages_folder_path(make_mock_account):
# extract_log_lines(content) #
##############################
def test_extract_log_lines_split_and_clean(original_log_dir: Path):
"""Splits content, strips \r\n, removes empty lines."""
r"""Split content, strips '\r\n', removes empty lines."""
file = original_log_dir / "CR_20260727110008.txt"
content = file.read_text(encoding="windows-1252")
lines = extract_log_lines(content)
@@ -412,7 +412,7 @@ def test_extract_log_lines_no_trailing_newline():
def test_extract_log_lines_crlf():
"""Handles Windows \r\n line endings."""
r"""Handles Windows \r\n line endings."""
content = (
"Répertoire scanné : \\192.168.60.40\\e$\\MDC_1110\\Logs\n"
"\\192.168.60.40\\e$\\MDC_1110\\Logs\\26\\07\\27\\20260727083117.txt [27/07/2026 08:31:26] DOSSIER EN COURS : FLAMMIER [27/07/2026 08:31:53] Erreur FTP commande : Requested action not taken\r\n"