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

This commit is contained in:
2025-08-07 11:19:10 +02:00
parent 39cc9324eb
commit 1ca5589ae9
+1 -5
View File
@@ -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