Table of Contents
Test Report
View CI Run 2210 | Commit ec02211
🧪 Test Report
Generated on 2025-08-14 11:23:09 CEST
🧾 General Info
- duration: 5.6603569984436035
- root: /workspace/tligui_y/slic
- environment: {}
📋 Summary
- Passed: 3
- Failed: 2
- Total: 5
- Collected: 5
🔎 Tests
✅ Passed (3)
-
📄 test_utils_elog.py
↳ Function: test_get_default_elog_instance_with_direct_password_and_real_check
-
✅ Test 1
📌 Setup phase
duration:
0.0003913799300789833outcome:
passed📌 Call phase
duration:
0.05048290407285094outcome:
passed📌 Teardown phase
duration:
0.00032587721943855286outcome:
passed
↳ Function: test_get_default_elog_instance_asks_password_and_opens
-
✅ Test 3
📌 Setup phase
duration:
0.00014454219490289688outcome:
passed📌 Call phase
duration:
0.04324961779639125outcome:
passed📌 Teardown phase
duration:
0.0002143988385796547outcome:
passed
↳ Function: test_get_default_elog_with_path_home
-
✅ Test 4
📌 Setup phase
duration:
0.00014457060024142265outcome:
passed📌 Call phase
duration:
0.044555905275046825outcome:
passed📌 Teardown phase
duration:
0.00019263289868831635outcome:
passed
-
❌ Failed (2)
-
📄 test_utils_elog.py
↳ Function: test_get_default_elog_instance_with_wrong_password_and_real_check
-
❌ Test 2
📌 Setup phase
duration:
0.00014429166913032532outcome:
passed📌 Call phase
duration:
0.008520205039530993outcome:
failedcrash:
path: /workspace/tligui_y/slic/tests/test_utils_elog.py lineno: 46 message: Failed: DID NOT RAISE <class 'elog.logbook_exceptions.LogbookAuthenticationError'>traceback:
- path: tests/test_utils_elog.py lineno: 46 message: Failedlongrepr:
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) with pytest.raises(LogbookAuthenticationError): > elog.post("This should fail due to wrong password") E Failed: DID NOT RAISE <class 'elog.logbook_exceptions.LogbookAuthenticationError'> tests/test_utils_elog.py:46: Failed📌 Teardown phase
duration:
0.0002639368176460266outcome:
passed
↳ Function: test_screenshot
-
❌ Test 5
📌 Setup phase
duration:
0.00016663828864693642outcome:
passed📌 Call phase
duration:
0.0016373321413993835outcome:
failedcrash:
path: /workspace/tligui_y/slic/tests/test_utils_elog.py lineno: 131 message: NameError: name 'get_test_elog' is not definedtraceback:
- path: tests/test_utils_elog.py lineno: 131 message: NameErrorlongrepr:
mock_screenshot_class = <MagicMock name='Screenshot' id='139803425942112'> @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 = get_test_elog() E NameError: name 'get_test_elog' is not defined tests/test_utils_elog.py:131: NameError📌 Teardown phase
duration:
0.0001946510747075081outcome:
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