1 line
31 KiB
JSON
1 line
31 KiB
JSON
{"created": 1755010173.8117924, "duration": 44.90700602531433, "exitcode": 1, "root": "/workspace/tligui_y/slic", "environment": {}, "summary": {"passed": 12, "failed": 13, "total": 25, "collected": 25}, "collectors": [{"nodeid": "", "outcome": "passed", "result": [{"nodeid": "tests/test_utils_reprate.py", "type": "Module"}]}, {"nodeid": "tests/test_utils_reprate.py", "outcome": "passed", "result": [{"nodeid": "tests/test_utils_reprate.py::test_get_beamline[alvra-aramis]", "type": "Function", "lineno": 6}, {"nodeid": "tests/test_utils_reprate.py::test_get_beamline[bernina-aramis]", "type": "Function", "lineno": 6}, {"nodeid": "tests/test_utils_reprate.py::test_get_beamline[cristallina-aramis]", "type": "Function", "lineno": 6}, {"nodeid": "tests/test_utils_reprate.py::test_get_beamline[diavolezza-athos]", "type": "Function", "lineno": 6}, {"nodeid": "tests/test_utils_reprate.py::test_get_beamline[maloja-athos]", "type": "Function", "lineno": 6}, {"nodeid": "tests/test_utils_reprate.py::test_get_beamline[furka-athos]", "type": "Function", "lineno": 6}, {"nodeid": "tests/test_utils_reprate.py::test_get_pvname_reprate_for_inferred_beamline", "type": "Function", "lineno": 19}, {"nodeid": "tests/test_utils_reprate.py::test_infer_beamline_from_ip[129.129.242-alvra]", "type": "Function", "lineno": 27}, {"nodeid": "tests/test_utils_reprate.py::test_infer_beamline_from_ip[129.129.243-bernina]", "type": "Function", "lineno": 27}, {"nodeid": "tests/test_utils_reprate.py::test_infer_beamline_from_ip[129.129.244-cristallina]", "type": "Function", "lineno": 27}, {"nodeid": "tests/test_utils_reprate.py::test_infer_beamline_from_ip[129.129.245-diavolezza]", "type": "Function", "lineno": 27}, {"nodeid": "tests/test_utils_reprate.py::test_infer_beamline_from_ip[129.129.246-maloja]", "type": "Function", "lineno": 27}, {"nodeid": "tests/test_utils_reprate.py::test_infer_beamline_from_ip[129.129.247-furka]", "type": "Function", "lineno": 27}, {"nodeid": "tests/test_utils_reprate.py::test_get_pvname_reprate_with_instrument_and_beamline[alvra-aramis-SIN-TIMAST-TMA:Bunch-1-Exp-Freq-RB]", "type": "Function", "lineno": 42}, {"nodeid": "tests/test_utils_reprate.py::test_get_pvname_reprate_with_instrument_and_beamline[bernina-aramis-SIN-TIMAST-TMA:Bunch-1-Exp-Freq-RB]", "type": "Function", "lineno": 42}, {"nodeid": "tests/test_utils_reprate.py::test_get_pvname_reprate_with_instrument_and_beamline[cristallina-aramis-SIN-TIMAST-TMA:Bunch-1-Exp-Freq-RB]", "type": "Function", "lineno": 42}, {"nodeid": "tests/test_utils_reprate.py::test_get_pvname_reprate_with_instrument_and_beamline[diavolezza-athos-SIN-TIMAST-TMA:Bunch-2-Exp-Freq-RB]", "type": "Function", "lineno": 42}, {"nodeid": "tests/test_utils_reprate.py::test_get_pvname_reprate_with_instrument_and_beamline[maloja-athos-SIN-TIMAST-TMA:Bunch-2-Exp-Freq-RB]", "type": "Function", "lineno": 42}, {"nodeid": "tests/test_utils_reprate.py::test_get_pvname_reprate_with_instrument_and_beamline[furka-athos-SIN-TIMAST-TMA:Bunch-2-Exp-Freq-RB]", "type": "Function", "lineno": 42}, {"nodeid": "tests/test_utils_reprate.py::test_invalid_instrument_or_beamline", "type": "Function", "lineno": 55}, {"nodeid": "tests/test_utils_reprate.py::test_monitor_value_update", "type": "Function", "lineno": 65}, {"nodeid": "tests/test_utils_reprate.py::test_repr_method_with_initial_values", "type": "Function", "lineno": 84}, {"nodeid": "tests/test_utils_reprate.py::test_invalid_target_handling[invalid_instrument]", "type": "Function", "lineno": 100}, {"nodeid": "tests/test_utils_reprate.py::test_invalid_target_handling[non_existing_beamline]", "type": "Function", "lineno": 100}, {"nodeid": "tests/test_utils_reprate.py::test_retrieve_pvname_for_none_instrument_and_beamline", "type": "Function", "lineno": 111}]}], "tests": [{"nodeid": "tests/test_utils_reprate.py::test_get_beamline[alvra-aramis]", "lineno": 6, "outcome": "passed", "keywords": ["test_get_beamline[alvra-aramis]", "parametrize", "pytestmark", "alvra-aramis", "test_utils_reprate.py", "tests", "slic", ""], "setup": {"duration": 0.0005506710149347782, "outcome": "passed"}, "call": {"duration": 0.0001874193549156189, "outcome": "passed"}, "teardown": {"duration": 0.00023650797083973885, "outcome": "passed"}}, {"nodeid": "tests/test_utils_reprate.py::test_get_beamline[bernina-aramis]", "lineno": 6, "outcome": "passed", "keywords": ["test_get_beamline[bernina-aramis]", "parametrize", "pytestmark", "bernina-aramis", "test_utils_reprate.py", "tests", "slic", ""], "setup": {"duration": 0.0002413308247923851, "outcome": "passed"}, "call": {"duration": 0.0001497962512075901, "outcome": "passed"}, "teardown": {"duration": 0.00013364525511860847, "outcome": "passed"}}, {"nodeid": "tests/test_utils_reprate.py::test_get_beamline[cristallina-aramis]", "lineno": 6, "outcome": "passed", "keywords": ["test_get_beamline[cristallina-aramis]", "parametrize", "pytestmark", "cristallina-aramis", "test_utils_reprate.py", "tests", "slic", ""], "setup": {"duration": 0.0002227150835096836, "outcome": "passed"}, "call": {"duration": 0.0001298137940466404, "outcome": "passed"}, "teardown": {"duration": 0.00012382213026285172, "outcome": "passed"}}, {"nodeid": "tests/test_utils_reprate.py::test_get_beamline[diavolezza-athos]", "lineno": 6, "outcome": "passed", "keywords": ["test_get_beamline[diavolezza-athos]", "parametrize", "pytestmark", "diavolezza-athos", "test_utils_reprate.py", "tests", "slic", ""], "setup": {"duration": 0.0002170111984014511, "outcome": "passed"}, "call": {"duration": 0.00013055000454187393, "outcome": "passed"}, "teardown": {"duration": 0.00012308312579989433, "outcome": "passed"}}, {"nodeid": "tests/test_utils_reprate.py::test_get_beamline[maloja-athos]", "lineno": 6, "outcome": "passed", "keywords": ["test_get_beamline[maloja-athos]", "parametrize", "pytestmark", "maloja-athos", "test_utils_reprate.py", "tests", "slic", ""], "setup": {"duration": 0.00020765699446201324, "outcome": "passed"}, "call": {"duration": 0.00013535097241401672, "outcome": "passed"}, "teardown": {"duration": 0.00012227706611156464, "outcome": "passed"}}, {"nodeid": "tests/test_utils_reprate.py::test_get_beamline[furka-athos]", "lineno": 6, "outcome": "passed", "keywords": ["test_get_beamline[furka-athos]", "parametrize", "pytestmark", "furka-athos", "test_utils_reprate.py", "tests", "slic", ""], "setup": {"duration": 0.00021307123824954033, "outcome": "passed"}, "call": {"duration": 0.00013368623331189156, "outcome": "passed"}, "teardown": {"duration": 0.00012292899191379547, "outcome": "passed"}}, {"nodeid": "tests/test_utils_reprate.py::test_get_pvname_reprate_for_inferred_beamline", "lineno": 19, "outcome": "failed", "keywords": ["test_get_pvname_reprate_for_inferred_beamline", "test_utils_reprate.py", "tests", "slic", ""], "setup": {"duration": 0.00010397611185908318, "outcome": "passed"}, "call": {"duration": 0.00015570037066936493, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_utils_reprate.py", "lineno": 23, "message": "NameError: name 'patch' is not defined"}, "traceback": [{"path": "tests/test_utils_reprate.py", "lineno": 23, "message": "NameError"}], "longrepr": "def test_get_pvname_reprate_for_inferred_beamline():\n \"\"\"Test the PV name retrieval when using inferred beamline based on IP address.\"\"\"\n # Mock the socket to simulate an IP address\n> with patch(\"socket.gethostname\", return_value=\"testhost\"), patch(\"socket.gethostbyname\", return_value=\"129.129.242\"):\nE NameError: name 'patch' is not defined\n\ntests/test_utils_reprate.py:23: NameError"}, "teardown": {"duration": 0.00022893818095326424, "outcome": "passed"}}, {"nodeid": "tests/test_utils_reprate.py::test_infer_beamline_from_ip[129.129.242-alvra]", "lineno": 27, "outcome": "failed", "keywords": ["test_infer_beamline_from_ip[129.129.242-alvra]", "parametrize", "pytestmark", "129.129.242-alvra", "test_utils_reprate.py", "tests", "slic", ""], "setup": {"duration": 0.0003011520020663738, "outcome": "passed"}, "call": {"duration": 0.00017404695972800255, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_utils_reprate.py", "lineno": 39, "message": "NameError: name 'patch' is not defined"}, "traceback": [{"path": "tests/test_utils_reprate.py", "lineno": 39, "message": "NameError"}], "longrepr": "ip = '129.129.242', expected_instrument = 'alvra'\n\n @pytest.mark.parametrize(\"ip,expected_instrument\", [\n (\"129.129.242\", \"alvra\"),\n (\"129.129.243\", \"bernina\"),\n (\"129.129.244\", \"cristallina\"),\n (\"129.129.245\", \"diavolezza\"),\n (\"129.129.246\", \"maloja\"),\n (\"129.129.247\", \"furka\")\n ])\n def test_infer_beamline_from_ip(ip, expected_instrument):\n \"\"\"Test that the beamline is correctly inferred based on the IP address.\"\"\"\n # Mock the socket functions to simulate an IP address\n> with patch(\"socket.gethostname\", return_value=\"testhost\"), patch(\"socket.gethostbyname\", return_value=ip):\nE NameError: name 'patch' is not defined\n\ntests/test_utils_reprate.py:39: NameError"}, "teardown": {"duration": 0.00018887687474489212, "outcome": "passed"}}, {"nodeid": "tests/test_utils_reprate.py::test_infer_beamline_from_ip[129.129.243-bernina]", "lineno": 27, "outcome": "failed", "keywords": ["test_infer_beamline_from_ip[129.129.243-bernina]", "parametrize", "pytestmark", "129.129.243-bernina", "test_utils_reprate.py", "tests", "slic", ""], "setup": {"duration": 0.00024019507691264153, "outcome": "passed"}, "call": {"duration": 0.0001530633307993412, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_utils_reprate.py", "lineno": 39, "message": "NameError: name 'patch' is not defined"}, "traceback": [{"path": "tests/test_utils_reprate.py", "lineno": 39, "message": "NameError"}], "longrepr": "ip = '129.129.243', expected_instrument = 'bernina'\n\n @pytest.mark.parametrize(\"ip,expected_instrument\", [\n (\"129.129.242\", \"alvra\"),\n (\"129.129.243\", \"bernina\"),\n (\"129.129.244\", \"cristallina\"),\n (\"129.129.245\", \"diavolezza\"),\n (\"129.129.246\", \"maloja\"),\n (\"129.129.247\", \"furka\")\n ])\n def test_infer_beamline_from_ip(ip, expected_instrument):\n \"\"\"Test that the beamline is correctly inferred based on the IP address.\"\"\"\n # Mock the socket functions to simulate an IP address\n> with patch(\"socket.gethostname\", return_value=\"testhost\"), patch(\"socket.gethostbyname\", return_value=ip):\nE NameError: name 'patch' is not defined\n\ntests/test_utils_reprate.py:39: NameError"}, "teardown": {"duration": 0.0001726481132209301, "outcome": "passed"}}, {"nodeid": "tests/test_utils_reprate.py::test_infer_beamline_from_ip[129.129.244-cristallina]", "lineno": 27, "outcome": "failed", "keywords": ["test_infer_beamline_from_ip[129.129.244-cristallina]", "parametrize", "pytestmark", "129.129.244-cristallina", "test_utils_reprate.py", "tests", "slic", ""], "setup": {"duration": 0.0002397908829152584, "outcome": "passed"}, "call": {"duration": 0.00014788005501031876, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_utils_reprate.py", "lineno": 39, "message": "NameError: name 'patch' is not defined"}, "traceback": [{"path": "tests/test_utils_reprate.py", "lineno": 39, "message": "NameError"}], "longrepr": "ip = '129.129.244', expected_instrument = 'cristallina'\n\n @pytest.mark.parametrize(\"ip,expected_instrument\", [\n (\"129.129.242\", \"alvra\"),\n (\"129.129.243\", \"bernina\"),\n (\"129.129.244\", \"cristallina\"),\n (\"129.129.245\", \"diavolezza\"),\n (\"129.129.246\", \"maloja\"),\n (\"129.129.247\", \"furka\")\n ])\n def test_infer_beamline_from_ip(ip, expected_instrument):\n \"\"\"Test that the beamline is correctly inferred based on the IP address.\"\"\"\n # Mock the socket functions to simulate an IP address\n> with patch(\"socket.gethostname\", return_value=\"testhost\"), patch(\"socket.gethostbyname\", return_value=ip):\nE NameError: name 'patch' is not defined\n\ntests/test_utils_reprate.py:39: NameError"}, "teardown": {"duration": 0.0001795310527086258, "outcome": "passed"}}, {"nodeid": "tests/test_utils_reprate.py::test_infer_beamline_from_ip[129.129.245-diavolezza]", "lineno": 27, "outcome": "failed", "keywords": ["test_infer_beamline_from_ip[129.129.245-diavolezza]", "parametrize", "pytestmark", "129.129.245-diavolezza", "test_utils_reprate.py", "tests", "slic", ""], "setup": {"duration": 0.0002344772219657898, "outcome": "passed"}, "call": {"duration": 0.00014866888523101807, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_utils_reprate.py", "lineno": 39, "message": "NameError: name 'patch' is not defined"}, "traceback": [{"path": "tests/test_utils_reprate.py", "lineno": 39, "message": "NameError"}], "longrepr": "ip = '129.129.245', expected_instrument = 'diavolezza'\n\n @pytest.mark.parametrize(\"ip,expected_instrument\", [\n (\"129.129.242\", \"alvra\"),\n (\"129.129.243\", \"bernina\"),\n (\"129.129.244\", \"cristallina\"),\n (\"129.129.245\", \"diavolezza\"),\n (\"129.129.246\", \"maloja\"),\n (\"129.129.247\", \"furka\")\n ])\n def test_infer_beamline_from_ip(ip, expected_instrument):\n \"\"\"Test that the beamline is correctly inferred based on the IP address.\"\"\"\n # Mock the socket functions to simulate an IP address\n> with patch(\"socket.gethostname\", return_value=\"testhost\"), patch(\"socket.gethostbyname\", return_value=ip):\nE NameError: name 'patch' is not defined\n\ntests/test_utils_reprate.py:39: NameError"}, "teardown": {"duration": 0.0001655416563153267, "outcome": "passed"}}, {"nodeid": "tests/test_utils_reprate.py::test_infer_beamline_from_ip[129.129.246-maloja]", "lineno": 27, "outcome": "failed", "keywords": ["test_infer_beamline_from_ip[129.129.246-maloja]", "parametrize", "pytestmark", "129.129.246-maloja", "test_utils_reprate.py", "tests", "slic", ""], "setup": {"duration": 0.00022963667288422585, "outcome": "passed"}, "call": {"duration": 0.00014902325347065926, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_utils_reprate.py", "lineno": 39, "message": "NameError: name 'patch' is not defined"}, "traceback": [{"path": "tests/test_utils_reprate.py", "lineno": 39, "message": "NameError"}], "longrepr": "ip = '129.129.246', expected_instrument = 'maloja'\n\n @pytest.mark.parametrize(\"ip,expected_instrument\", [\n (\"129.129.242\", \"alvra\"),\n (\"129.129.243\", \"bernina\"),\n (\"129.129.244\", \"cristallina\"),\n (\"129.129.245\", \"diavolezza\"),\n (\"129.129.246\", \"maloja\"),\n (\"129.129.247\", \"furka\")\n ])\n def test_infer_beamline_from_ip(ip, expected_instrument):\n \"\"\"Test that the beamline is correctly inferred based on the IP address.\"\"\"\n # Mock the socket functions to simulate an IP address\n> with patch(\"socket.gethostname\", return_value=\"testhost\"), patch(\"socket.gethostbyname\", return_value=ip):\nE NameError: name 'patch' is not defined\n\ntests/test_utils_reprate.py:39: NameError"}, "teardown": {"duration": 0.00017941417172551155, "outcome": "passed"}}, {"nodeid": "tests/test_utils_reprate.py::test_infer_beamline_from_ip[129.129.247-furka]", "lineno": 27, "outcome": "failed", "keywords": ["test_infer_beamline_from_ip[129.129.247-furka]", "parametrize", "pytestmark", "129.129.247-furka", "test_utils_reprate.py", "tests", "slic", ""], "setup": {"duration": 0.0002387487329542637, "outcome": "passed"}, "call": {"duration": 0.00015581119805574417, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_utils_reprate.py", "lineno": 39, "message": "NameError: name 'patch' is not defined"}, "traceback": [{"path": "tests/test_utils_reprate.py", "lineno": 39, "message": "NameError"}], "longrepr": "ip = '129.129.247', expected_instrument = 'furka'\n\n @pytest.mark.parametrize(\"ip,expected_instrument\", [\n (\"129.129.242\", \"alvra\"),\n (\"129.129.243\", \"bernina\"),\n (\"129.129.244\", \"cristallina\"),\n (\"129.129.245\", \"diavolezza\"),\n (\"129.129.246\", \"maloja\"),\n (\"129.129.247\", \"furka\")\n ])\n def test_infer_beamline_from_ip(ip, expected_instrument):\n \"\"\"Test that the beamline is correctly inferred based on the IP address.\"\"\"\n # Mock the socket functions to simulate an IP address\n> with patch(\"socket.gethostname\", return_value=\"testhost\"), patch(\"socket.gethostbyname\", return_value=ip):\nE NameError: name 'patch' is not defined\n\ntests/test_utils_reprate.py:39: NameError"}, "teardown": {"duration": 0.00018046610057353973, "outcome": "passed"}}, {"nodeid": "tests/test_utils_reprate.py::test_get_pvname_reprate_with_instrument_and_beamline[alvra-aramis-SIN-TIMAST-TMA:Bunch-1-Exp-Freq-RB]", "lineno": 42, "outcome": "passed", "keywords": ["test_get_pvname_reprate_with_instrument_and_beamline[alvra-aramis-SIN-TIMAST-TMA:Bunch-1-Exp-Freq-RB]", "parametrize", "pytestmark", "alvra-aramis-SIN-TIMAST-TMA:Bunch-1-Exp-Freq-RB", "test_utils_reprate.py", "tests", "slic", ""], "setup": {"duration": 0.00027018412947654724, "outcome": "passed"}, "call": {"duration": 0.00014001596719026566, "outcome": "passed"}, "teardown": {"duration": 0.00013837963342666626, "outcome": "passed"}}, {"nodeid": "tests/test_utils_reprate.py::test_get_pvname_reprate_with_instrument_and_beamline[bernina-aramis-SIN-TIMAST-TMA:Bunch-1-Exp-Freq-RB]", "lineno": 42, "outcome": "passed", "keywords": ["test_get_pvname_reprate_with_instrument_and_beamline[bernina-aramis-SIN-TIMAST-TMA:Bunch-1-Exp-Freq-RB]", "parametrize", "pytestmark", "bernina-aramis-SIN-TIMAST-TMA:Bunch-1-Exp-Freq-RB", "test_utils_reprate.py", "tests", "slic", ""], "setup": {"duration": 0.00023867981508374214, "outcome": "passed"}, "call": {"duration": 0.00013012299314141273, "outcome": "passed"}, "teardown": {"duration": 0.00013347202911973, "outcome": "passed"}}, {"nodeid": "tests/test_utils_reprate.py::test_get_pvname_reprate_with_instrument_and_beamline[cristallina-aramis-SIN-TIMAST-TMA:Bunch-1-Exp-Freq-RB]", "lineno": 42, "outcome": "passed", "keywords": ["test_get_pvname_reprate_with_instrument_and_beamline[cristallina-aramis-SIN-TIMAST-TMA:Bunch-1-Exp-Freq-RB]", "parametrize", "pytestmark", "cristallina-aramis-SIN-TIMAST-TMA:Bunch-1-Exp-Freq-RB", "test_utils_reprate.py", "tests", "slic", ""], "setup": {"duration": 0.0002556317485868931, "outcome": "passed"}, "call": {"duration": 0.00014369795098900795, "outcome": "passed"}, "teardown": {"duration": 0.00013615703210234642, "outcome": "passed"}}, {"nodeid": "tests/test_utils_reprate.py::test_get_pvname_reprate_with_instrument_and_beamline[diavolezza-athos-SIN-TIMAST-TMA:Bunch-2-Exp-Freq-RB]", "lineno": 42, "outcome": "passed", "keywords": ["test_get_pvname_reprate_with_instrument_and_beamline[diavolezza-athos-SIN-TIMAST-TMA:Bunch-2-Exp-Freq-RB]", "parametrize", "pytestmark", "diavolezza-athos-SIN-TIMAST-TMA:Bunch-2-Exp-Freq-RB", "test_utils_reprate.py", "tests", "slic", ""], "setup": {"duration": 0.00023730425164103508, "outcome": "passed"}, "call": {"duration": 0.00013760989531874657, "outcome": "passed"}, "teardown": {"duration": 0.0001318110153079033, "outcome": "passed"}}, {"nodeid": "tests/test_utils_reprate.py::test_get_pvname_reprate_with_instrument_and_beamline[maloja-athos-SIN-TIMAST-TMA:Bunch-2-Exp-Freq-RB]", "lineno": 42, "outcome": "passed", "keywords": ["test_get_pvname_reprate_with_instrument_and_beamline[maloja-athos-SIN-TIMAST-TMA:Bunch-2-Exp-Freq-RB]", "parametrize", "pytestmark", "maloja-athos-SIN-TIMAST-TMA:Bunch-2-Exp-Freq-RB", "test_utils_reprate.py", "tests", "slic", ""], "setup": {"duration": 0.00023721205070614815, "outcome": "passed"}, "call": {"duration": 0.00014213798567652702, "outcome": "passed"}, "teardown": {"duration": 0.0001353668048977852, "outcome": "passed"}}, {"nodeid": "tests/test_utils_reprate.py::test_get_pvname_reprate_with_instrument_and_beamline[furka-athos-SIN-TIMAST-TMA:Bunch-2-Exp-Freq-RB]", "lineno": 42, "outcome": "passed", "keywords": ["test_get_pvname_reprate_with_instrument_and_beamline[furka-athos-SIN-TIMAST-TMA:Bunch-2-Exp-Freq-RB]", "parametrize", "pytestmark", "furka-athos-SIN-TIMAST-TMA:Bunch-2-Exp-Freq-RB", "test_utils_reprate.py", "tests", "slic", ""], "setup": {"duration": 0.0002386951819062233, "outcome": "passed"}, "call": {"duration": 0.00013563688844442368, "outcome": "passed"}, "teardown": {"duration": 0.00014317501336336136, "outcome": "passed"}}, {"nodeid": "tests/test_utils_reprate.py::test_invalid_instrument_or_beamline", "lineno": 55, "outcome": "failed", "keywords": ["test_invalid_instrument_or_beamline", "test_utils_reprate.py", "tests", "slic", ""], "setup": {"duration": 0.00010744109749794006, "outcome": "passed"}, "call": {"duration": 0.0002714497968554497, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/slic/utils/reprate.py", "lineno": 70, "message": "AttributeError: 'NoneType' object has no attribute 'capitalize'"}, "traceback": [{"path": "tests/test_utils_reprate.py", "lineno": 59, "message": ""}, {"path": "slic/utils/reprate.py", "lineno": 70, "message": "AttributeError"}], "longrepr": "def test_invalid_instrument_or_beamline():\n \"\"\"Test that None is returned when an invalid instrument or beamline is provided.\"\"\"\n # Invalid instrument\n> monitor = RepRateMonitor(target=\"invalid_instrument\")\n\ntests/test_utils_reprate.py:59: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = <[AttributeError(\"'RepRateMonitor' object has no attribute 'name'\") raised in repr()] RepRateMonitor object at 0x7ff5a94e1310>\ntarget = 'invalid_instrument'\n\n def __init__(self, target=None):\n if target is not None:\n target = target.lower()\n \n instrument = target if target in INSTRUMENTS else None\n beamline = target if target in BEAMLINES else None\n \n if beamline is None:\n beamline = get_beamline(instrument)\n \n pvname = get_pvname_reprate(instrument, beamline)\n \n> beamline = beamline.capitalize()\nE AttributeError: 'NoneType' object has no attribute 'capitalize'\n\nslic/utils/reprate.py:70: AttributeError"}, "teardown": {"duration": 0.00014735013246536255, "outcome": "passed"}}, {"nodeid": "tests/test_utils_reprate.py::test_monitor_value_update", "lineno": 65, "outcome": "failed", "keywords": ["test_monitor_value_update", "test_utils_reprate.py", "tests", "slic", ""], "setup": {"duration": 0.00012102397158741951, "outcome": "passed"}, "call": {"duration": 20.101015570107847, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_utils_reprate.py", "lineno": 71, "message": "AssertionError: Expected 20.0, but got None\nassert None == 20.0\n + where None = Aramis Rep. Rate: None None.value"}, "traceback": [{"path": "tests/test_utils_reprate.py", "lineno": 71, "message": "AssertionError"}], "longrepr": "def test_monitor_value_update():\n #Test that the RepRateMonitor correctly updates its value and units\n monitor = RepRateMonitor(\"alvra\") # Example instrument\n \n # Check that the initial value is 20.0 and the units are correct\n> assert monitor.value == 20.0, f\"Expected 20.0, but got {monitor.value}\"\nE AssertionError: Expected 20.0, but got None\nE assert None == 20.0\nE + where None = Aramis Rep. Rate: None None.value\n\ntests/test_utils_reprate.py:71: AssertionError"}, "teardown": {"duration": 0.0004445011727511883, "outcome": "passed"}}, {"nodeid": "tests/test_utils_reprate.py::test_repr_method_with_initial_values", "lineno": 84, "outcome": "failed", "keywords": ["test_repr_method_with_initial_values", "test_utils_reprate.py", "tests", "slic", ""], "setup": {"duration": 0.00023052701726555824, "outcome": "passed"}, "call": {"duration": 20.00225164182484, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_utils_reprate.py", "lineno": 98, "message": "AssertionError: Expected 'Aramis Rep. Rate: 20.0 Hz', but got 'Aramis Rep. Rate: None None'\nassert 'Aramis Rep. Rate: None None' == 'Aramis Rep. Rate: 20.0 Hz'\n \n - Aramis Rep. Rate: 20.0 Hz\n + Aramis Rep. Rate: None None"}, "traceback": [{"path": "tests/test_utils_reprate.py", "lineno": 98, "message": "AssertionError"}], "longrepr": "def test_repr_method_with_initial_values():\n # Test __repr__\n monitor = RepRateMonitor(\"alvra\")\n \n # Expected initial values\n expected_name = \"Aramis Rep. Rate\"\n expected_value = 20.0\n expected_units = \"Hz\"\n \n # Expected representation\n expected_repr = f\"{expected_name}: {expected_value} {expected_units}\"\n \n # Check that the __repr__ method returns the expected string\n> assert repr(monitor) == expected_repr, f\"Expected '{expected_repr}', but got '{repr(monitor)}'\"\nE AssertionError: Expected 'Aramis Rep. Rate: 20.0 Hz', but got 'Aramis Rep. Rate: None None'\nE assert 'Aramis Rep. Rate: None None' == 'Aramis Rep. Rate: 20.0 Hz'\nE \nE - Aramis Rep. Rate: 20.0 Hz\nE + Aramis Rep. Rate: None None\n\ntests/test_utils_reprate.py:98: AssertionError"}, "teardown": {"duration": 0.0002245977520942688, "outcome": "passed"}}, {"nodeid": "tests/test_utils_reprate.py::test_invalid_target_handling[invalid_instrument]", "lineno": 100, "outcome": "failed", "keywords": ["test_invalid_target_handling[invalid_instrument]", "parametrize", "pytestmark", "invalid_instrument", "test_utils_reprate.py", "tests", "slic", ""], "setup": {"duration": 0.0004062107764184475, "outcome": "passed"}, "call": {"duration": 0.00038382597267627716, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/slic/utils/reprate.py", "lineno": 70, "message": "AttributeError: 'NoneType' object has no attribute 'capitalize'"}, "traceback": [{"path": "tests/test_utils_reprate.py", "lineno": 107, "message": ""}, {"path": "slic/utils/reprate.py", "lineno": 70, "message": "AttributeError"}], "longrepr": "invalid_target = 'invalid_instrument'\n\n @pytest.mark.parametrize(\"invalid_target\", [\n \"invalid_instrument\", # Non-existent instrument\n \"non_existing_beamline\" # Non-existent beamline\n ])\n def test_invalid_target_handling(invalid_target):\n # Test that an invalid target correctly results in None for PV name.\"\"\"\n> monitor = RepRateMonitor(invalid_target)\n\ntests/test_utils_reprate.py:107: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = <[AttributeError(\"'RepRateMonitor' object has no attribute 'name'\") raised in repr()] RepRateMonitor object at 0x7ff5c13221f0>\ntarget = 'invalid_instrument'\n\n def __init__(self, target=None):\n if target is not None:\n target = target.lower()\n \n instrument = target if target in INSTRUMENTS else None\n beamline = target if target in BEAMLINES else None\n \n if beamline is None:\n beamline = get_beamline(instrument)\n \n pvname = get_pvname_reprate(instrument, beamline)\n \n> beamline = beamline.capitalize()\nE AttributeError: 'NoneType' object has no attribute 'capitalize'\n\nslic/utils/reprate.py:70: AttributeError"}, "teardown": {"duration": 0.0002018478699028492, "outcome": "passed"}}, {"nodeid": "tests/test_utils_reprate.py::test_invalid_target_handling[non_existing_beamline]", "lineno": 100, "outcome": "failed", "keywords": ["test_invalid_target_handling[non_existing_beamline]", "parametrize", "pytestmark", "non_existing_beamline", "test_utils_reprate.py", "tests", "slic", ""], "setup": {"duration": 0.00022540567442774773, "outcome": "passed"}, "call": {"duration": 0.0002444959245622158, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/slic/utils/reprate.py", "lineno": 70, "message": "AttributeError: 'NoneType' object has no attribute 'capitalize'"}, "traceback": [{"path": "tests/test_utils_reprate.py", "lineno": 107, "message": ""}, {"path": "slic/utils/reprate.py", "lineno": 70, "message": "AttributeError"}], "longrepr": "invalid_target = 'non_existing_beamline'\n\n @pytest.mark.parametrize(\"invalid_target\", [\n \"invalid_instrument\", # Non-existent instrument\n \"non_existing_beamline\" # Non-existent beamline\n ])\n def test_invalid_target_handling(invalid_target):\n # Test that an invalid target correctly results in None for PV name.\"\"\"\n> monitor = RepRateMonitor(invalid_target)\n\ntests/test_utils_reprate.py:107: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = <[AttributeError(\"'RepRateMonitor' object has no attribute 'name'\") raised in repr()] RepRateMonitor object at 0x7ff5c6ad6760>\ntarget = 'non_existing_beamline'\n\n def __init__(self, target=None):\n if target is not None:\n target = target.lower()\n \n instrument = target if target in INSTRUMENTS else None\n beamline = target if target in BEAMLINES else None\n \n if beamline is None:\n beamline = get_beamline(instrument)\n \n pvname = get_pvname_reprate(instrument, beamline)\n \n> beamline = beamline.capitalize()\nE AttributeError: 'NoneType' object has no attribute 'capitalize'\n\nslic/utils/reprate.py:70: AttributeError"}, "teardown": {"duration": 0.00018493831157684326, "outcome": "passed"}}, {"nodeid": "tests/test_utils_reprate.py::test_retrieve_pvname_for_none_instrument_and_beamline", "lineno": 111, "outcome": "failed", "keywords": ["test_retrieve_pvname_for_none_instrument_and_beamline", "test_utils_reprate.py", "tests", "slic", ""], "setup": {"duration": 0.00012197298929095268, "outcome": "passed"}, "call": {"duration": 0.00023975130170583725, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/slic/utils/reprate.py", "lineno": 70, "message": "AttributeError: 'NoneType' object has no attribute 'capitalize'"}, "traceback": [{"path": "tests/test_utils_reprate.py", "lineno": 114, "message": ""}, {"path": "slic/utils/reprate.py", "lineno": 70, "message": "AttributeError"}], "longrepr": "def test_retrieve_pvname_for_none_instrument_and_beamline():\n # Test that if both instrument and beamline are None, the method works correctly.\"\"\"\n> monitor = RepRateMonitor(target=None)\n\ntests/test_utils_reprate.py:114: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = <[AttributeError(\"'RepRateMonitor' object has no attribute 'name'\") raised in repr()] RepRateMonitor object at 0x7ff5c6f15ac0>\ntarget = None\n\n def __init__(self, target=None):\n if target is not None:\n target = target.lower()\n \n instrument = target if target in INSTRUMENTS else None\n beamline = target if target in BEAMLINES else None\n \n if beamline is None:\n beamline = get_beamline(instrument)\n \n pvname = get_pvname_reprate(instrument, beamline)\n \n> beamline = beamline.capitalize()\nE AttributeError: 'NoneType' object has no attribute 'capitalize'\n\nslic/utils/reprate.py:70: AttributeError"}, "teardown": {"duration": 0.00016592303290963173, "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}]} |