Update tests/test_utils_elog.py
Run CI Tests / test (push) Successful in 1m42s

This commit is contained in:
2025-08-11 13:09:25 +02:00
parent ce28da4a39
commit 43289b45ea
+3 -4
View File
@@ -8,7 +8,7 @@ from getpass import getuser, getpass
from pathlib import Path
from slic.utils.elog import Elog, get_default_elog_instance
from unittest.mock import patch
'''
# Helper pour extraire uniquement le mot de passe comme dans la vraie fonction
def get_default_elog_password(url, **kwargs):
@@ -44,7 +44,7 @@ def test_post_local():
}
message = "Hello from local test"
msg_id = logbook.post(message, attributes=attributes, encoding="HTML")
print("Posted with msg_id =", msg_id)
print("Posted with msg_id =", msg_id)
# Connexion basique avec credentials connus
@@ -151,5 +151,4 @@ def test_screenshot(mock_screenshot_class):
filename = os.path.basename(fake_path)
assert filename in html, f"Attachment '{filename}' not found in post HTML"
os.remove(fake_path)
'''
os.remove(fake_path)