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

This commit is contained in:
2025-08-06 23:23:13 +02:00
parent 75e5979049
commit 93453db2e9
+2 -3
View File
@@ -111,14 +111,13 @@ def test_post():
text = "This is a message"
author = "robot"
resp = elog.post(text, title=title, author=author, category="General", type="Other")
resp = elog.post(text, Author=author)
print("RRRRRRRRRRRRRRRRRRR : ", resp, file=sys.__stdout__)
assert resp is not None
url = f"http://localhost:8080/demo/{resp}"
html = requests.get(url).text
assert title in html, "Title not found"
assert text in html, "Message not found"
assert author in html, f"Author not found"
@@ -135,7 +134,7 @@ def test_screenshot(mock_screenshot_class):
elog = get_test_elog()
test_msg = "SCREENSHOT_INTEGRATION_TEST_MSG_456"
entry_id = elog.screenshot(message=test_msg, type="Other")
entry_id = elog.screenshot(message=test_msg)
assert entry_id is not None