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