Table of Contents
Test Report
View CI Run 2300 | Commit dcd555d
🧪 Test Report
Generated on 2025-08-15 16:35:23 CEST
🧾 General Info
- duration: 5.820757865905762
- root: /workspace/tligui_y/slic
- environment: {}
📋 Summary
- Passed: 4
- Failed: 1
- Total: 5
- Collected: 5
🔎 Tests
✅ Passed (4)
-
📄 test_utils_elog.py
↳ Function: test_get_default_elog_instance_with_direct_password_and_real_check
-
✅ Test 1
📌 Setup phase
duration:
0.00040274299681186676outcome:
passed📌 Call phase
duration:
0.028056988958269358outcome:
passed📌 Teardown phase
duration:
0.0003647678531706333outcome:
passed
↳ Function: test_get_default_elog_instance_with_wrong_password_and_real_check
-
✅ Test 2
📌 Setup phase
duration:
0.00015607383102178574outcome:
passed📌 Call phase
duration:
0.007034820970147848outcome:
passed📌 Teardown phase
duration:
0.0001819501630961895outcome:
passed
↳ Function: test_get_default_elog_instance_asks_password_and_opens
-
✅ Test 3
📌 Setup phase
duration:
0.00014816690236330032outcome:
passed📌 Call phase
duration:
0.020676088985055685outcome:
passed📌 Teardown phase
duration:
0.00022316491231322289outcome:
passed
↳ Function: test_get_default_elog_with_path_home
-
✅ Test 4
📌 Setup phase
duration:
0.00015623308718204498outcome:
passed📌 Call phase
duration:
0.02211932698264718outcome:
passed📌 Teardown phase
duration:
0.0002025519497692585outcome:
passed
-
❌ Failed (1)
-
📄 test_utils_elog.py
↳ Function: test_screenshot
-
❌ Test 5
📌 Setup phase
duration:
0.0002111019566655159outcome:
passed📌 Call phase
duration:
0.030790230259299278outcome:
failedcrash:
path: /workspace/tligui_y/slic/tests/test_utils_elog.py lineno: 123 message: AssertionError: assert 'fake_screenshot.png' in ['250815_143520_fake_screenshot.png']traceback:
- path: tests/test_utils_elog.py lineno: 123 message: AssertionErrorlongrepr:
mock_screenshot_class = <MagicMock name='Screenshot' id='139951369368336'> @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") test_msg = "SCREENSHOT_INTEGRATION_TEST_MSG_456" msg_id = elog.screenshot(message=test_msg) filename = os.path.basename(fake_path) message, attributes, attachments = elog.read(msg_id) assert test_msg in message > assert filename in [os.path.basename(a) for a in attachments] E AssertionError: assert 'fake_screenshot.png' in ['250815_143520_fake_screenshot.png'] tests/test_utils_elog.py:123: AssertionError📌 Teardown phase
duration:
0.00028186989948153496outcome:
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: 13 - nodeid: tests/test_utils_elog.py::test_get_default_elog_instance_with_wrong_password_and_real_check type: Function lineno: 32 - nodeid: tests/test_utils_elog.py::test_get_default_elog_instance_asks_password_and_opens type: Function lineno: 43 - nodeid: tests/test_utils_elog.py::test_get_default_elog_with_path_home type: Function lineno: 70 - nodeid: tests/test_utils_elog.py::test_screenshot type: Function lineno: 104 - 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