Files
slic/markdown/pytest-report.json
T
2025-08-15 14:35:23 +00:00

1 line
5.0 KiB
JSON

{"created": 1755268521.3470886, "duration": 5.820757865905762, "exitcode": 1, "root": "/workspace/tligui_y/slic", "environment": {}, "summary": {"passed": 4, "failed": 1, "total": 5, "collected": 5}, "collectors": [{"nodeid": "", "outcome": "passed", "result": [{"nodeid": "tests/test_utils_elog.py", "type": "Module"}]}, {"nodeid": "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}]}], "tests": [{"nodeid": "tests/test_utils_elog.py::test_get_default_elog_instance_with_direct_password_and_real_check", "lineno": 13, "outcome": "passed", "keywords": ["test_get_default_elog_instance_with_direct_password_and_real_check", "test_utils_elog.py", "tests", "slic", ""], "setup": {"duration": 0.00040274299681186676, "outcome": "passed"}, "call": {"duration": 0.028056988958269358, "outcome": "passed"}, "teardown": {"duration": 0.0003647678531706333, "outcome": "passed"}}, {"nodeid": "tests/test_utils_elog.py::test_get_default_elog_instance_with_wrong_password_and_real_check", "lineno": 32, "outcome": "passed", "keywords": ["test_get_default_elog_instance_with_wrong_password_and_real_check", "test_utils_elog.py", "tests", "slic", ""], "setup": {"duration": 0.00015607383102178574, "outcome": "passed"}, "call": {"duration": 0.007034820970147848, "outcome": "passed"}, "teardown": {"duration": 0.0001819501630961895, "outcome": "passed"}}, {"nodeid": "tests/test_utils_elog.py::test_get_default_elog_instance_asks_password_and_opens", "lineno": 43, "outcome": "passed", "keywords": ["test_get_default_elog_instance_asks_password_and_opens", "__wrapped__", "patchings", "test_utils_elog.py", "tests", "slic", ""], "setup": {"duration": 0.00014816690236330032, "outcome": "passed"}, "call": {"duration": 0.020676088985055685, "outcome": "passed"}, "teardown": {"duration": 0.00022316491231322289, "outcome": "passed"}}, {"nodeid": "tests/test_utils_elog.py::test_get_default_elog_with_path_home", "lineno": 70, "outcome": "passed", "keywords": ["test_get_default_elog_with_path_home", "__wrapped__", "patchings", "test_utils_elog.py", "tests", "slic", ""], "setup": {"duration": 0.00015623308718204498, "outcome": "passed"}, "call": {"duration": 0.02211932698264718, "outcome": "passed"}, "teardown": {"duration": 0.0002025519497692585, "outcome": "passed"}}, {"nodeid": "tests/test_utils_elog.py::test_screenshot", "lineno": 104, "outcome": "failed", "keywords": ["test_screenshot", "__wrapped__", "patchings", "test_utils_elog.py", "tests", "slic", ""], "setup": {"duration": 0.0002111019566655159, "outcome": "passed"}, "call": {"duration": 0.030790230259299278, "outcome": "failed", "crash": {"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": "AssertionError"}], "longrepr": "mock_screenshot_class = <MagicMock name='Screenshot' id='139951369368336'>\n\n @patch(\"slic.utils.elog.Screenshot\")\n def test_screenshot(mock_screenshot_class):\n fake_path = \"/tmp/fake_screenshot.png\"\n with open(fake_path, \"wb\") as f:\n f.write(b\"fake image data\")\n \n mock_instance = mock_screenshot_class.return_value\n mock_instance.shoot.return_value = [fake_path]\n \n elog = elog = Elog(\"http://localhost:8080/demo\", user=\"robot\", password=\"testpassword\")\n \n test_msg = \"SCREENSHOT_INTEGRATION_TEST_MSG_456\"\n msg_id = elog.screenshot(message=test_msg)\n \n filename = os.path.basename(fake_path)\n message, attributes, attachments = elog.read(msg_id)\n \n assert test_msg in message\n> assert filename in [os.path.basename(a) for a in attachments]\nE AssertionError: assert 'fake_screenshot.png' in ['250815_143520_fake_screenshot.png']\n\ntests/test_utils_elog.py:123: AssertionError"}, "teardown": {"duration": 0.00028186989948153496, "outcome": "passed"}}], "warnings": [{"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}, {"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}]}