From c8246dea361cfe40cc012a2c7e1ad2df80d2522f Mon Sep 17 00:00:00 2001 From: tligui_y Date: Wed, 6 Aug 2025 23:08:46 +0200 Subject: [PATCH] Update tests/test_utils_elog.py --- tests/test_utils_elog.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/test_utils_elog.py b/tests/test_utils_elog.py index 0343c060d..6a26d395b 100644 --- a/tests/test_utils_elog.py +++ b/tests/test_utils_elog.py @@ -29,8 +29,12 @@ def get_default_elog_password(url, **kwargs): def test_check_required_attributes(): url = "http://localhost:8080/demo?cmd=Config" response = requests.get(url, auth=("robot", "testpassword")) - print(response.text, file=sys.__stdout__) # Cherchez "Required Attributes" dans l'output + print("AAAAAAAAAAAAAAAAAAAAA : ", response.text, file=sys.__stdout__) # Cherchez "Required Attributes" dans l'output +def test_post(): + logbook = elog.open('localhost', 'demo', port=8080, use_ssl=False) + new_msg_id = logbook.post('This is message text', author='me', type='Routine') + print("BBBBBBBBBBBBBBBBBBBBB : ", new_msg_id) # Connexion basique avec credentials connus def get_test_elog():