This commit is contained in:
@@ -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)
|
||||
Reference in New Issue
Block a user