Table of Contents
Test Report
View CI Run 2208 | Commit c02a2cf
🧪 Test Report
Generated on 2025-08-14 11:02:00 CEST
🧾 General Info
- duration: 5.056724548339844
- root: /workspace/tligui_y/slic
- environment: {}
📋 Summary
- Passed: 4
- Failed: 2
- Total: 6
- Collected: 6
🔎 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.0003422941081225872outcome:
passed📌 Call phase
duration:
0.0033629629760980606outcome:
passed📌 Teardown phase
duration:
0.00023569120094180107outcome:
passed
↳ Function: test_get_default_elog_instance_asks_password_and_opens
-
✅ Test 2
📌 Setup phase
duration:
0.000117455143481493outcome:
passed📌 Call phase
duration:
0.009320445824414492outcome:
passed📌 Teardown phase
duration:
0.00014000199735164642outcome:
passed
↳ Function: test_get_default_elog_with_path_home
-
✅ Test 3
📌 Setup phase
duration:
0.00012219510972499847outcome:
passed📌 Call phase
duration:
0.004476125817745924outcome:
passed📌 Teardown phase
duration:
0.00012591900303959846outcome:
passed
↳ Function: test_post
-
✅ Test 5
📌 Setup phase
duration:
0.00013490300625562668outcome:
passed📌 Call phase
duration:
0.04661829210817814outcome:
passed📌 Teardown phase
duration:
0.00018796510994434357outcome:
passed
-
❌ Failed (2)
-
📄 test_utils_elog.py
↳ Function: test_get_default_elog_instance_with_wrong_password
-
❌ Test 4
📌 Setup phase
duration:
0.00011323997750878334outcome:
passed📌 Call phase
duration:
0.009446912910789251outcome:
failedcrash:
path: /workspace/tligui_y/slic/tests/test_utils_elog.py lineno: 90 message: Failed: DID NOT RAISE <class 'elog.logbook_exceptions.LogbookAuthenticationError'>traceback:
- path: tests/test_utils_elog.py lineno: 90 message: Failedlongrepr:
def test_get_default_elog_instance_with_wrong_password(): url = "http://localhost:8080/demo" 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): > lb.post("test message", attributes={"Author": "robot"}, timeout=5) E Failed: DID NOT RAISE <class 'elog.logbook_exceptions.LogbookAuthenticationError'> tests/test_utils_elog.py:90: Failed📌 Teardown phase
duration:
0.00022599706426262856outcome:
passed
↳ Function: test_screenshot
-
❌ Test 6
📌 Setup phase
duration:
0.00013206526637077332outcome:
passed📌 Call phase
duration:
0.036660806741565466outcome:
failedcrash:
path: /workspace/tligui_y/slic/tests/test_utils_elog.py lineno: 141 message: AssertionError: Attachment 'fake_screenshot.png' not found in post HTML assert 'fake_screenshot.png' in '\n\n\nELOG demo\n\n\n\n\n\n\n\n\n\ndemo\n\n\n\xa0\xa0demo, Page 1 of 1\xa0\n\n\n\n\xa0New\xa0|\n\xa0Find\xa0|\n\xa0Se...03\xa0\xa0\n\nThu Aug 14 09:01:57 2025\nrobot\xa0\xa0\xa0SCREENSHOT_INTEGRATION_TEST_MSG_456\n\n\n\nELOG V2.7.1-2004\n'traceback:
- path: tests/test_utils_elog.py lineno: 141 message: AssertionErrorlongrepr:
mock_screenshot_class = <MagicMock name='Screenshot' id='140328649740880'> @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() test_msg = "SCREENSHOT_INTEGRATION_TEST_MSG_456" elog.screenshot(message=test_msg) url = "http://localhost:8080/demo" response = requests.get(url) soup = BeautifulSoup(response.content, 'html.parser') content = soup.get_text() filename = os.path.basename(fake_path) print("FILE NAME : ", filename) assert test_msg in content, "Message not found" > assert filename in content, f"Attachment '{filename}' not found in post HTML" E AssertionError: Attachment 'fake_screenshot.png' not found in post HTML E assert 'fake_screenshot.png' in '\n\n\nELOG demo\n\n\n\n\n\n\n\n\n\ndemo\n\n\n\xa0\xa0demo, Page 1 of 1\xa0\n\n\n\n\xa0New\xa0|\n\xa0Find\xa0|\n\xa0Se...03\xa0\xa0\n\nThu Aug 14 09:01:57 2025\nrobot\xa0\xa0\xa0SCREENSHOT_INTEGRATION_TEST_MSG_456\n\n\n\nELOG V2.7.1-2004\n' tests/test_utils_elog.py:141: AssertionError📌 Teardown phase
duration:
0.00020387303084135056outcome:
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: 16 - nodeid: tests/test_utils_elog.py::test_get_default_elog_instance_asks_password_and_opens type: Function lineno: 31 - nodeid: tests/test_utils_elog.py::test_get_default_elog_with_path_home type: Function lineno: 49 - nodeid: tests/test_utils_elog.py::test_get_default_elog_instance_with_wrong_password type: Function lineno: 80 - nodeid: tests/test_utils_elog.py::test_post type: Function lineno: 92 - nodeid: tests/test_utils_elog.py::test_screenshot type: Function lineno: 115 - 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