Table of Contents
Test Report
View CI Run 2232 | Commit d89ddaa
🧪 Test Report
Generated on 2025-08-14 13:44:04 CEST
🧾 General Info
- duration: 5.955425977706909
- root: /workspace/tligui_y/slic
- environment: {}
📋 Summary
- Failed: 5
- Total: 5
- Collected: 5
🔎 Tests
❌ Failed (5)
-
📄 test_utils_elog.py
↳ Function: test_get_default_elog_instance_with_direct_password_and_real_check
-
❌ Test 1
📌 Setup phase
duration:
0.00043509621173143387outcome:
passed📌 Call phase
duration:
0.0003089951351284981outcome:
failedcrash:
path: /workspace/tligui_y/slic/slic/utils/elog.py lineno: 40 message: TypeError: __init__() got an unexpected keyword argument 'encrypt'traceback:
- path: tests/test_utils_elog.py lineno: 19 message: None - path: slic/utils/elog.py lineno: 11 message: in __init__ - path: slic/utils/elog.py lineno: 40 message: TypeErrorlongrepr:
def test_get_default_elog_instance_with_direct_password_and_real_check(): url = "http://localhost:8080/demo" user = "robot" password = "testpassword" text = "This is a message1" > elog = Elog("http://localhost:8080/demo", user=user, password=password, encrypt=False) tests/test_utils_elog.py:19: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ slic/utils/elog.py:11: in __init__ self._log, self.user = get_default_elog_instance(url, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ url = 'http://localhost:8080/demo' kwargs = {'encrypt': False, 'password': 'testpassword', 'user': 'robot'} user = 'robot' def get_default_elog_instance(url, **kwargs): kwargs.setdefault("user", getuser()) user = kwargs["user"] if "password" not in kwargs: try: home = Path.home() fn = home / ".elog_psi" with fn.open() as f: pw = f.read().strip() except Exception: print(f"Enter elog password for user: {user}") pw = getpass() kwargs["password"] = pw #return elog.open(url, **kwargs), user > return Logbook(url, **kwargs), user E TypeError: __init__() got an unexpected keyword argument 'encrypt' slic/utils/elog.py:40: TypeError📌 Teardown phase
duration:
0.0003609815612435341outcome:
passed
↳ Function: test_get_default_elog_instance_with_wrong_password_and_real_check
-
❌ Test 2
📌 Setup phase
duration:
0.00017617782577872276outcome:
passed📌 Call phase
duration:
0.0002500060945749283outcome:
failedcrash:
path: /workspace/tligui_y/slic/slic/utils/elog.py lineno: 40 message: TypeError: __init__() got an unexpected keyword argument 'encrypt'traceback:
- path: tests/test_utils_elog.py lineno: 43 message: None - path: slic/utils/elog.py lineno: 11 message: in __init__ - path: slic/utils/elog.py lineno: 40 message: TypeErrorlongrepr:
def test_get_default_elog_instance_with_wrong_password_and_real_check(): url = "http://localhost:8080/demo" user = "robot" wrong_password = "wrongpassword" > elog = Elog(url, user=user, password=wrong_password, encrypt=False) tests/test_utils_elog.py:43: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ slic/utils/elog.py:11: in __init__ self._log, self.user = get_default_elog_instance(url, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ url = 'http://localhost:8080/demo' kwargs = {'encrypt': False, 'password': 'wrongpassword', 'user': 'robot'} user = 'robot' def get_default_elog_instance(url, **kwargs): kwargs.setdefault("user", getuser()) user = kwargs["user"] if "password" not in kwargs: try: home = Path.home() fn = home / ".elog_psi" with fn.open() as f: pw = f.read().strip() except Exception: print(f"Enter elog password for user: {user}") pw = getpass() kwargs["password"] = pw #return elog.open(url, **kwargs), user > return Logbook(url, **kwargs), user E TypeError: __init__() got an unexpected keyword argument 'encrypt' slic/utils/elog.py:40: TypeError📌 Teardown phase
duration:
0.0002348390407860279outcome:
passed
↳ Function: test_get_default_elog_instance_asks_password_and_opens
-
❌ Test 3
📌 Setup phase
duration:
0.00022628717124462128outcome:
passed📌 Call phase
duration:
0.0014802808873355389outcome:
failedcrash:
path: /workspace/tligui_y/slic/slic/utils/elog.py lineno: 40 message: TypeError: __init__() got an unexpected keyword argument 'encrypt'traceback:
- path: tests/test_utils_elog.py lineno: 58 message: None - path: slic/utils/elog.py lineno: 11 message: in __init__ - path: slic/utils/elog.py lineno: 40 message: TypeErrorlongrepr:
mock_home = <MagicMock name='home' id='139651690479680'> mock_getpass = <MagicMock name='getpass' id='139651685557584'> @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): mock_home.return_value = Path("/does/not/exist") # Fausse home → lecture échoue mock_getpass.return_value = "testpassword" user = "robot" text = "This is a message2" url = "http://localhost:8080/demo" > elog = Elog("http://localhost:8080/demo", user=user, encrypt=False) tests/test_utils_elog.py:58: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ slic/utils/elog.py:11: in __init__ self._log, self.user = get_default_elog_instance(url, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ url = 'http://localhost:8080/demo' kwargs = {'encrypt': False, 'password': 'testpassword', 'user': 'robot'} user = 'robot', home = PosixPath('/does/not/exist') fn = PosixPath('/does/not/exist/.elog_psi'), pw = 'testpassword' def get_default_elog_instance(url, **kwargs): kwargs.setdefault("user", getuser()) user = kwargs["user"] if "password" not in kwargs: try: home = Path.home() fn = home / ".elog_psi" with fn.open() as f: pw = f.read().strip() except Exception: print(f"Enter elog password for user: {user}") pw = getpass() kwargs["password"] = pw #return elog.open(url, **kwargs), user > return Logbook(url, **kwargs), user E TypeError: __init__() got an unexpected keyword argument 'encrypt' slic/utils/elog.py:40: TypeError📌 Teardown phase
duration:
0.0002120407298207283outcome:
passed
↳ Function: test_get_default_elog_with_path_home
-
❌ Test 4
📌 Setup phase
duration:
0.00016750209033489227outcome:
passed📌 Call phase
duration:
0.0016386844217777252outcome:
failedcrash:
path: /workspace/tligui_y/slic/slic/utils/elog.py lineno: 40 message: TypeError: __init__() got an unexpected keyword argument 'encrypt'traceback:
- path: tests/test_utils_elog.py lineno: 91 message: None - path: slic/utils/elog.py lineno: 11 message: in __init__ - path: slic/utils/elog.py lineno: 40 message: TypeErrorlongrepr:
mock_home = <MagicMock name='home' id='139651685636176'> mock_getuser = <MagicMock name='getuser' id='139651690556240'> mock_getpass = <MagicMock name='getpass' id='139651685709424'> @patch("slic.utils.elog.getpass") @patch("slic.utils.elog.getuser") @patch("slic.utils.elog.Path.home") def test_get_default_elog_with_path_home(mock_home, mock_getuser, mock_getpass): fake_user = "robot" fake_pw = "testpassword" mock_getuser.return_value = fake_user mock_getpass.return_value = fake_pw # fallback safety text = "This is a message3" url = "http://localhost:8080/demo" tmp_home = Path("/tmp/fake_home_for_robot") tmp_home.mkdir(parents=True, exist_ok=True) pw_file = tmp_home / ".elog_psi" pw_file.write_text(fake_pw) mock_home.return_value = tmp_home try: > elog = Elog("http://localhost:8080/demo", encrypt=False) tests/test_utils_elog.py:91: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ slic/utils/elog.py:11: in __init__ self._log, self.user = get_default_elog_instance(url, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ url = 'http://localhost:8080/demo' kwargs = {'encrypt': False, 'password': 'testpassword', 'user': 'robot'} user = 'robot', home = PosixPath('/tmp/fake_home_for_robot') fn = PosixPath('/tmp/fake_home_for_robot/.elog_psi') f = <_io.TextIOWrapper name='/tmp/fake_home_for_robot/.elog_psi' mode='r' encoding='UTF-8'> pw = 'testpassword' def get_default_elog_instance(url, **kwargs): kwargs.setdefault("user", getuser()) user = kwargs["user"] if "password" not in kwargs: try: home = Path.home() fn = home / ".elog_psi" with fn.open() as f: pw = f.read().strip() except Exception: print(f"Enter elog password for user: {user}") pw = getpass() kwargs["password"] = pw #return elog.open(url, **kwargs), user > return Logbook(url, **kwargs), user E TypeError: __init__() got an unexpected keyword argument 'encrypt' slic/utils/elog.py:40: TypeError📌 Teardown phase
duration:
0.00016784900799393654outcome:
passed
↳ Function: test_screenshot
-
❌ Test 5
📌 Setup phase
duration:
0.0001687007024884224outcome:
passed📌 Call phase
duration:
0.0013111429288983345outcome:
failedcrash:
path: /workspace/tligui_y/slic/slic/utils/elog.py lineno: 40 message: TypeError: __init__() got an unexpected keyword argument 'encrypt'traceback:
- path: tests/test_utils_elog.py lineno: 131 message: None - path: slic/utils/elog.py lineno: 11 message: in __init__ - path: slic/utils/elog.py lineno: 40 message: TypeErrorlongrepr:
mock_screenshot_class = <MagicMock name='Screenshot' id='139651689551088'> @patch("slic.utils.elog.Screenshot") def test_screenshot(mock_screenshot_class): fake_path = "/tmp/fake_screenshot.png" with open(fake_path, "wb") as f: f.write(b"fake image data") mock_instance = mock_screenshot_class.return_value mock_instance.shoot.return_value = [fake_path] > elog = elog = Elog("http://localhost:8080/demo", user="robot", password="testpassword", encrypt=False) tests/test_utils_elog.py:131: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ slic/utils/elog.py:11: in __init__ self._log, self.user = get_default_elog_instance(url, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ url = 'http://localhost:8080/demo' kwargs = {'encrypt': False, 'password': 'testpassword', 'user': 'robot'} user = 'robot' def get_default_elog_instance(url, **kwargs): kwargs.setdefault("user", getuser()) user = kwargs["user"] if "password" not in kwargs: try: home = Path.home() fn = home / ".elog_psi" with fn.open() as f: pw = f.read().strip() except Exception: print(f"Enter elog password for user: {user}") pw = getpass() kwargs["password"] = pw #return elog.open(url, **kwargs), user > return Logbook(url, **kwargs), user E TypeError: __init__() got an unexpected keyword argument 'encrypt' slic/utils/elog.py:40: TypeError📌 Teardown phase
duration:
0.00017506396397948265outcome:
passed
-
📚 Collected files
✅ (1 tests)
-
✅
- Outcome:
passed - result:
- nodeid: tests/test_utils_elog.py type: Module - Outcome:
✅ tests (1 tests)
-
✅ tests/test_utils_elog.py
- Outcome:
passed - result:
- nodeid: tests/test_utils_elog.py::test_get_default_elog_instance_with_direct_password_and_real_check type: Function lineno: 12 - nodeid: tests/test_utils_elog.py::test_get_default_elog_instance_with_wrong_password_and_real_check type: Function lineno: 37 - nodeid: tests/test_utils_elog.py::test_get_default_elog_instance_asks_password_and_opens type: Function lineno: 48 - nodeid: tests/test_utils_elog.py::test_get_default_elog_with_path_home type: Function lineno: 72 - nodeid: tests/test_utils_elog.py::test_screenshot type: Function lineno: 121 - Outcome:
⚠️ Warnings
Warnings nº1
message: invalid escape sequence \-
category: DeprecationWarning
when: collect
filename: /workspace/tligui_y/slic/.pixi/envs/default/lib/python3.8/site-packages/bsread/h5.py
lineno: 207
Warnings nº2
message: The module numpy.dual is deprecated. Instead of using dual, use the functions directly from numpy or scipy.
category: DeprecationWarning
when: collect
filename: /workspace/tligui_y/slic/.pixi/envs/default/lib/python3.8/site-packages/scipy/fft/__init__.py
lineno: 97