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