From 1ca5589ae96eba16bdff991a353e5c441a7a3afd Mon Sep 17 00:00:00 2001 From: tligui_y Date: Thu, 7 Aug 2025 11:19:10 +0200 Subject: [PATCH] Update tests/test_utils_elog.py --- tests/test_utils_elog.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/tests/test_utils_elog.py b/tests/test_utils_elog.py index 3e82941e5..3cab562b2 100644 --- a/tests/test_utils_elog.py +++ b/tests/test_utils_elog.py @@ -30,7 +30,6 @@ def get_default_elog_password(url, **kwargs): def get_test_elog(): return Elog("http://localhost:8080/demo", user="robot", password="testpassword") - def test_get_default_elog_instance_with_direct_password_and_real_check(): url = "http://localhost:8080/demo" user = "robot" @@ -44,7 +43,6 @@ def test_get_default_elog_instance_with_direct_password_and_real_check(): r = requests.get(url, auth=(user, password)) assert r.status_code == 200 - @patch("slic.utils.elog.getpass") @patch("slic.utils.elog.Path.home") def test_get_default_elog_instance_asks_password_and_opens(mock_home, mock_getpass): @@ -101,9 +99,7 @@ def test_post(): text = "This is a message" author = "robot" - resp = elog.post(text, Author=author) - print("RRRRRRRRRRRRRRRRRRR : ", resp, file=sys.__stdout__) - assert resp is not None + elog.post(text, Author=author) url = "http://localhost:8080/demo" html = requests.get(url).text