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

This commit is contained in:
2025-08-14 10:46:28 +02:00
parent ec09e72770
commit d4cb33564d
+4 -2
View File
@@ -2,7 +2,6 @@ import os
import sys
import tempfile
import requests
from elog import LogbookAuthenticationError
import elog
import pytest
from getpass import getuser, getpass
@@ -83,8 +82,11 @@ def test_get_default_elog_instance_with_wrong_password():
user = "robot"
wrong_password = "wrongpassword"
lb, returned_user = get_default_elog_instance(url, user=user, password=wrong_password)
assert returned_user == user
with pytest.raises(elog.LogbookAuthenticationError):
get_default_elog_instance(url, user=user, password=wrong_password)
lb.get_message_ids(timeout=5)
def test_post():