From 580ed2c024258fc0673e980c2d39d251f0ce927e Mon Sep 17 00:00:00 2001 From: ci-bot Date: Tue, 15 Jul 2025 08:50:15 +0000 Subject: [PATCH] CI: update test and coverage reports --- ci-reports/markdown/TEST-REPORT.md | 1654 +++++++++++++++--------- ci-reports/markdown/pytest-report.json | 2 +- 2 files changed, 1032 insertions(+), 624 deletions(-) diff --git a/ci-reports/markdown/TEST-REPORT.md b/ci-reports/markdown/TEST-REPORT.md index e1e700bf..6831f6d7 100644 --- a/ci-reports/markdown/TEST-REPORT.md +++ b/ci-reports/markdown/TEST-REPORT.md @@ -7,7 +7,13 @@ ``` =========================== short test summary info ============================ -FAILED tests/test_io_utils.py::test_write_file_readonly - Failed: DID NOT RAISE +FAILED tests/test_io_utils.py::test_cause_io_error - OSError: Forced IO Error for testing +FAILED tests/test_io_utils.py::test_file_not_found - FileNotFoundError: [Errno 2] No such file or directory: 'nonexistent.file' +FAILED tests/test_io_utils.py::test_permission_error - PermissionError: Permission denied +FAILED tests/test_io_utils.py::test_mock_open_error - OSError: Mocked IOError +FAILED tests/test_io_utils.py::test_file_handle_closed_error - ValueError: I/O operation on closed file +FAILED tests/test_io_utils.py::test_os_error - OSError: Simulated OSError +FAILED tests/test_io_utils.py::test_file_not_found_error - FileNotFoundError: [Errno 2] No such file or directory: 'no_such_file.txt' FAILED tests/test_math_utils.py::test_broken - NameError: name 'want_the_test_to_fail' is not defined FAILED tests/test_math_utils.py::test_call_missing_function - AttributeError: module 'functions.math_utils' has no attribute 'non_existent_function' FAILED tests/test_math_utils.py::test_addition_fail - assert 4 == 5 @@ -40,7 +46,7 @@ ERROR tests/test_collector_error.py !!!!!!!!!!!!!!!!!!!!!!!!!!!!!! KeyboardInterrupt !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! /workspace/tligui_y/slic/tests/test_string_utils.py:54: KeyboardInterrupt (to show a full traceback on KeyboardInterrupt use --full-trace) -======== 24 failed, 17 passed, 2 xfailed, 2 warnings, 2 errors in 0.67s ======== +======== 30 failed, 11 passed, 2 xfailed, 2 warnings, 2 errors in 0.76s ======== ``` @@ -51,10 +57,10 @@ ERROR tests/test_collector_error.py ============================= test session starts ============================== platform linux -- Python 3.8.20, pytest-8.3.4, pluggy-1.5.0 rootdir: /workspace/tligui_y/slic -plugins: metadata-3.1.1, html-4.1.1, cov-5.0.0, allure-pytest-2.13.5, json-report-1.5.0, md-report-0.6.2 +plugins: allure-pytest-2.13.5, metadata-3.1.1, cov-5.0.0, html-4.1.1, md-report-0.6.2, json-report-1.5.0 collected 44 items / 2 errors -tests/test_io_utils.py ........F. +tests/test_io_utils.py ..FFFFFF.F tests/test_math_utils.py FF.FFxFFFFFFFFFFFFFFFFFF tests/test_string_utils.py ....F...x @@ -94,21 +100,132 @@ tests/test_collector_error.py:1: in from no_existing_module.math_utils import * E ModuleNotFoundError: No module named 'no_existing_module' =================================== FAILURES =================================== -___________________________ test_write_file_readonly ___________________________ +_____________________________ test_cause_io_error ______________________________ -tmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/test_write_file_readonly0') + def test_cause_io_error(): + # Raises manual IOError to simulate IO failure +> cause_io_error() - def test_write_file_readonly(tmp_path): - # Writing to read-only file raises PermissionError - file = tmp_path / "readonly.txt" - file.write_text("data") - os.chmod(file, 0o444) - with pytest.raises(PermissionError): - with open(file, "w") as f: -> f.write("new content") -E Failed: DID NOT RAISE +tests/test_io_utils.py:25: +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -tests/test_io_utils.py:72: Failed + def cause_io_error(): +> raise IOError("Forced IO Error for testing") +E OSError: Forced IO Error for testing + +functions/io_utils.py:10: OSError +_____________________________ test_file_not_found ______________________________ + + def test_file_not_found(): + # Reading non-existing file raises FileNotFoundError +> read_file("nonexistent.file") + +tests/test_io_utils.py:29: +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +path = 'nonexistent.file' + + def read_file(path): +> with open(path, "r", encoding="utf-8") as f: +E FileNotFoundError: [Errno 2] No such file or directory: 'nonexistent.file' + +functions/io_utils.py:2: FileNotFoundError +____________________________ test_permission_error _____________________________ + +monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f7da58a7ca0> + + def test_permission_error(monkeypatch): + # Patch open to raise PermissionError simulating access denial + def raise_perm_error(*args, **kwargs): + raise PermissionError("Permission denied") + monkeypatch.setattr("builtins.open", raise_perm_error) +> read_file("anyfile.txt") + +tests/test_io_utils.py:36: +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ +functions/io_utils.py:2: in read_file + with open(path, "r", encoding="utf-8") as f: +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +args = ('anyfile.txt', 'r'), kwargs = {'encoding': 'utf-8'} + + def raise_perm_error(*args, **kwargs): +> raise PermissionError("Permission denied") +E PermissionError: Permission denied + +tests/test_io_utils.py:34: PermissionError +_____________________________ test_mock_open_error _____________________________ + +monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f7da1652640> + + def test_mock_open_error(monkeypatch): + # Mock open() to raise IOError simulating read error + mocked_open = mock.mock_open() + mocked_open.side_effect = IOError("Mocked IOError") + monkeypatch.setattr("builtins.open", mocked_open) +> with open("file.txt", "r") as f: + +tests/test_io_utils.py:43: +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ +.pixi/envs/default/lib/python3.8/unittest/mock.py:1081: in __call__ + return self._mock_call(*args, **kwargs) +.pixi/envs/default/lib/python3.8/unittest/mock.py:1085: in _mock_call + return self._execute_mock_call(*args, **kwargs) +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = +args = ('file.txt', 'r'), kwargs = {}, effect = OSError('Mocked IOError') + + def _execute_mock_call(self, /, *args, **kwargs): + # separate from _increment_mock_call so that awaited functions are + # executed separately from their call, also AsyncMock overrides this method + + effect = self.side_effect + if effect is not None: + if _is_exception(effect): +> raise effect +E OSError: Mocked IOError + +.pixi/envs/default/lib/python3.8/unittest/mock.py:1140: OSError +________________________ test_file_handle_closed_error _________________________ + + def test_file_handle_closed_error(): + # Accessing closed file raises ValueError + f = io.StringIO("content") + f.close() +> f.read() +E ValueError: I/O operation on closed file + +tests/test_io_utils.py:50: ValueError +________________________________ test_os_error _________________________________ + +monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f7da1a8fe80> + + def test_os_error(monkeypatch): + # Patch os.remove to raise OSError simulating filesystem error + def raise_os_error(path): + raise OSError("Simulated OSError") + monkeypatch.setattr("os.remove", raise_os_error) +> os.remove("file.txt") + +tests/test_io_utils.py:57: +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +path = 'file.txt' + + def raise_os_error(path): +> raise OSError("Simulated OSError") +E OSError: Simulated OSError + +tests/test_io_utils.py:55: OSError +__________________________ test_file_not_found_error ___________________________ + + def test_file_not_found_error(): + # Raises FileNotFoundError when opening a non-existent file +> open("no_such_file.txt", "r") +E FileNotFoundError: [Errno 2] No such file or directory: 'no_such_file.txt' + +tests/test_io_utils.py:69: FileNotFoundError _________________________________ test_broken __________________________________ def test_broken(): @@ -250,7 +367,7 @@ tests/test_math_utils.py:83: StopIteration The above exception was the direct cause of the following exception: cls = -func = . at 0x7f40b979dee0> +func = . at 0x7f7da429ca60> when = 'call' reraise = (, ) @@ -406,7 +523,7 @@ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ name = 'non_existent_module_xyz' -import_ = +import_ = > ??? E ModuleNotFoundError: No module named 'non_existent_module_xyz' @@ -439,7 +556,13 @@ Coverage HTML written to dir ci-reports/coverage/ Coverage XML written to file ci-reports/coverage/coverage.xml =========================== short test summary info ============================ -FAILED tests/test_io_utils.py::test_write_file_readonly - Failed: DID NOT RAISE +FAILED tests/test_io_utils.py::test_cause_io_error - OSError: Forced IO Error for testing +FAILED tests/test_io_utils.py::test_file_not_found - FileNotFoundError: [Errno 2] No such file or directory: 'nonexistent.file' +FAILED tests/test_io_utils.py::test_permission_error - PermissionError: Permission denied +FAILED tests/test_io_utils.py::test_mock_open_error - OSError: Mocked IOError +FAILED tests/test_io_utils.py::test_file_handle_closed_error - ValueError: I/O operation on closed file +FAILED tests/test_io_utils.py::test_os_error - OSError: Simulated OSError +FAILED tests/test_io_utils.py::test_file_not_found_error - FileNotFoundError: [Errno 2] No such file or directory: 'no_such_file.txt' FAILED tests/test_math_utils.py::test_broken - NameError: name 'want_the_test_to_fail' is not defined FAILED tests/test_math_utils.py::test_call_missing_function - AttributeError: module 'functions.math_utils' has no attribute 'non_existent_function' FAILED tests/test_math_utils.py::test_addition_fail - assert 4 == 5 @@ -472,26 +595,26 @@ ERROR tests/test_collector_error.py !!!!!!!!!!!!!!!!!!!!!!!!!!!!!! KeyboardInterrupt !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! /workspace/tligui_y/slic/tests/test_string_utils.py:54: KeyboardInterrupt (to show a full traceback on KeyboardInterrupt use --full-trace) -======== 24 failed, 17 passed, 2 xfailed, 2 warnings, 2 errors in 0.67s ======== +======== 30 failed, 11 passed, 2 xfailed, 2 warnings, 2 errors in 0.76s ======== ``` --- # ๐Ÿงช Test Report -*Generated on 2025-07-15 08:44:39* +*Generated on 2025-07-15 08:50:15* ## ๐Ÿ“‹ Summary -- **Passed**: `18` -- **Failed**: `24` +- **Passed**: `12` +- **Failed**: `30` - **Xfailed**: `2` - **Total**: `44` - **Collected**: `44` -- **Total Duration**: `0.674`s +- **Total Duration**: `0.757`s ## ๐Ÿ”Ž Tests
-โœ… Passed (18) +โœ… Passed (12)
๐Ÿ“ test_io_utils.py @@ -503,7 +626,7 @@ ERROR tests/test_collector_error.py โœ… #1 - **Status:** โœ… `passed` -- **Duration:** `0.000874` s +- **Duration:** `0.000540` s - **Severity:** `normal` ### ๐Ÿ”ง Setup Phase @@ -512,7 +635,7 @@ ERROR tests/test_collector_error.py ๐Ÿ“Œ Duration ``` -0.004149291897192597 +0.0043855319963768125 ```
@@ -531,7 +654,7 @@ passed ๐Ÿ“Œ Duration ``` -0.0008742549689486623 +0.000539749045856297 ```
@@ -550,7 +673,7 @@ passed ๐Ÿ“Œ Duration ``` -0.0013384079793468118 +0.001415211008861661 ``` @@ -573,7 +696,7 @@ passed โœ… #2 - **Status:** โœ… `passed` -- **Duration:** `0.000374` s +- **Duration:** `0.000336` s - **Severity:** `normal` ### ๐Ÿ”ง Setup Phase @@ -582,7 +705,7 @@ passed ๐Ÿ“Œ Duration ``` -0.0007246820023283362 +0.0007300160359591246 ``` @@ -601,7 +724,7 @@ passed ๐Ÿ“Œ Duration ``` -0.0003741609398275614 +0.0003360050031915307 ``` @@ -620,7 +743,7 @@ passed ๐Ÿ“Œ Duration ``` -0.0007668560137972236 +0.0006832870421931148 ``` @@ -637,13 +760,13 @@ passed
-๐Ÿ”ง Function: `test_cause_io_error` +๐Ÿ”ง Function: `test_write_file_readonly`
-โœ… #3 +โœ… #9 - **Status:** โœ… `passed` -- **Duration:** `0.000348` s +- **Duration:** `0.000920` s - **Severity:** `normal` ### ๐Ÿ”ง Setup Phase @@ -652,7 +775,7 @@ passed ๐Ÿ“Œ Duration ``` -0.00019118597265332937 +0.0007971250452101231 ```
@@ -671,7 +794,7 @@ passed ๐Ÿ“Œ Duration ``` -0.00034820300061255693 +0.0009200080530717969 ```
@@ -690,427 +813,7 @@ passed ๐Ÿ“Œ Duration ``` -0.00021223200019448996 -``` - - -
-๐Ÿ“Œ Outcome - -``` -passed -``` -
- - - - - -
-๐Ÿ”ง Function: `test_file_not_found` - -
-โœ… #4 - -- **Status:** โœ… `passed` -- **Duration:** `0.000220` s -- **Severity:** `normal` - -### ๐Ÿ”ง Setup Phase - -
-๐Ÿ“Œ Duration - -``` -0.00020444602705538273 -``` -
- -
-๐Ÿ“Œ Outcome - -``` -passed -``` -
- - -### ๐Ÿ”ง Call Phase - -
-๐Ÿ“Œ Duration - -``` -0.00021956709679216146 -``` -
- -
-๐Ÿ“Œ Outcome - -``` -passed -``` -
- - -### ๐Ÿ”ง Teardown Phase - -
-๐Ÿ“Œ Duration - -``` -0.000204429030418396 -``` -
- -
-๐Ÿ“Œ Outcome - -``` -passed -``` -
- -
- -
- -
-๐Ÿ”ง Function: `test_permission_error` - -
-โœ… #5 - -- **Status:** โœ… `passed` -- **Duration:** `0.000221` s -- **Severity:** `normal` - -### ๐Ÿ”ง Setup Phase - -
-๐Ÿ“Œ Duration - -``` -0.00037131307180970907 -``` -
- -
-๐Ÿ“Œ Outcome - -``` -passed -``` -
- - -### ๐Ÿ”ง Call Phase - -
-๐Ÿ“Œ Duration - -``` -0.00022086710669100285 -``` -
- -
-๐Ÿ“Œ Outcome - -``` -passed -``` -
- - -### ๐Ÿ”ง Teardown Phase - -
-๐Ÿ“Œ Duration - -``` -0.0006885710172355175 -``` -
- -
-๐Ÿ“Œ Outcome - -``` -passed -``` -
- -
- -
- -
-๐Ÿ”ง Function: `test_mock_open_error` - -
-โœ… #6 - -- **Status:** โœ… `passed` -- **Duration:** `0.003493` s -- **Severity:** `normal` - -### ๐Ÿ”ง Setup Phase - -
-๐Ÿ“Œ Duration - -``` -0.0003682640381157398 -``` -
- -
-๐Ÿ“Œ Outcome - -``` -passed -``` -
- - -### ๐Ÿ”ง Call Phase - -
-๐Ÿ“Œ Duration - -``` -0.0034925310174003243 -``` -
- -
-๐Ÿ“Œ Outcome - -``` -passed -``` -
- - -### ๐Ÿ”ง Teardown Phase - -
-๐Ÿ“Œ Duration - -``` -0.0007155699422582984 -``` -
- -
-๐Ÿ“Œ Outcome - -``` -passed -``` -
- -
- -
- -
-๐Ÿ”ง Function: `test_file_handle_closed_error` - -
-โœ… #7 - -- **Status:** โœ… `passed` -- **Duration:** `0.000211` s -- **Severity:** `normal` - -### ๐Ÿ”ง Setup Phase - -
-๐Ÿ“Œ Duration - -``` -0.0001856490271165967 -``` -
- -
-๐Ÿ“Œ Outcome - -``` -passed -``` -
- - -### ๐Ÿ”ง Call Phase - -
-๐Ÿ“Œ Duration - -``` -0.00021118007134646177 -``` -
- -
-๐Ÿ“Œ Outcome - -``` -passed -``` -
- - -### ๐Ÿ”ง Teardown Phase - -
-๐Ÿ“Œ Duration - -``` -0.0002036839723587036 -``` -
- -
-๐Ÿ“Œ Outcome - -``` -passed -``` -
- -
- -
- -
-๐Ÿ”ง Function: `test_os_error` - -
-โœ… #8 - -- **Status:** โœ… `passed` -- **Duration:** `0.000292` s -- **Severity:** `normal` - -### ๐Ÿ”ง Setup Phase - -
-๐Ÿ“Œ Duration - -``` -0.00035054399631917477 -``` -
- -
-๐Ÿ“Œ Outcome - -``` -passed -``` -
- - -### ๐Ÿ”ง Call Phase - -
-๐Ÿ“Œ Duration - -``` -0.00029183097649365664 -``` -
- -
-๐Ÿ“Œ Outcome - -``` -passed -``` -
- - -### ๐Ÿ”ง Teardown Phase - -
-๐Ÿ“Œ Duration - -``` -0.0007028989493846893 -``` -
- -
-๐Ÿ“Œ Outcome - -``` -passed -``` -
- -
- -
- -
-๐Ÿ”ง Function: `test_file_not_found_error` - -
-โœ… #10 - -- **Status:** โœ… `passed` -- **Duration:** `0.000205` s -- **Severity:** `normal` - -### ๐Ÿ”ง Setup Phase - -
-๐Ÿ“Œ Duration - -``` -0.00019854900892823935 -``` -
- -
-๐Ÿ“Œ Outcome - -``` -passed -``` -
- - -### ๐Ÿ”ง Call Phase - -
-๐Ÿ“Œ Duration - -``` -0.0002048029564321041 -``` -
- -
-๐Ÿ“Œ Outcome - -``` -passed -``` -
- - -### ๐Ÿ”ง Teardown Phase - -
-๐Ÿ“Œ Duration - -``` -0.00020673091057687998 +0.0007057141046971083 ```
@@ -1138,7 +841,7 @@ passed โœ… #13 - **Status:** โœ… `passed` -- **Duration:** `0.000181` s +- **Duration:** `0.000163` s - **Severity:** `normal` ### ๐Ÿ”ง Setup Phase @@ -1147,7 +850,7 @@ passed ๐Ÿ“Œ Duration ``` -0.00018531596288084984 +0.00019478192552924156 ```
@@ -1166,7 +869,7 @@ passed ๐Ÿ“Œ Duration ``` -0.0001813389826565981 +0.00016341207083314657 ```
@@ -1185,7 +888,7 @@ passed ๐Ÿ“Œ Duration ``` -0.00021223805379122496 +0.00019979896023869514 ``` @@ -1213,7 +916,7 @@ passed โœ… #35 - **Status:** โœ… `passed` -- **Duration:** `0.000258` s +- **Duration:** `0.000169` s - **Severity:** `normal` ### ๐Ÿ”ง Setup Phase @@ -1222,7 +925,7 @@ passed ๐Ÿ“Œ Duration ``` -0.00025635503698140383 +0.0001940659713000059 ``` @@ -1241,7 +944,7 @@ passed ๐Ÿ“Œ Duration ``` -0.00025826902128756046 +0.00016937998589128256 ``` @@ -1260,7 +963,7 @@ passed ๐Ÿ“Œ Duration ``` -0.00024218298494815826 +0.00019112997688353062 ``` @@ -1283,7 +986,7 @@ passed โœ… #36 - **Status:** โœ… `passed` -- **Duration:** `0.000217` s +- **Duration:** `0.000393` s - **Severity:** `normal` ### ๐Ÿ”ง Setup Phase @@ -1292,7 +995,7 @@ passed ๐Ÿ“Œ Duration ``` -0.00019637204241007566 +0.00018266797997057438 ``` @@ -1311,7 +1014,7 @@ passed ๐Ÿ“Œ Duration ``` -0.00021720095537602901 +0.00039342406671494246 ``` @@ -1330,7 +1033,7 @@ passed ๐Ÿ“Œ Duration ``` -0.0002172030508518219 +0.00019581103697419167 ``` @@ -1353,7 +1056,7 @@ passed โœ… #37 - **Status:** โœ… `passed` -- **Duration:** `0.000158` s +- **Duration:** `0.000161` s - **Severity:** `normal` ### ๐Ÿ”ง Setup Phase @@ -1362,7 +1065,7 @@ passed ๐Ÿ“Œ Duration ``` -0.00018205505330115557 +0.00018240895587950945 ``` @@ -1381,7 +1084,7 @@ passed ๐Ÿ“Œ Duration ``` -0.00015825103037059307 +0.00016053696162998676 ``` @@ -1400,7 +1103,7 @@ passed ๐Ÿ“Œ Duration ``` -0.00018732796888798475 +0.0002074160147458315 ``` @@ -1423,7 +1126,7 @@ passed โœ… #38 - **Status:** โœ… `passed` -- **Duration:** `0.000245` s +- **Duration:** `0.000173` s - **Severity:** `normal` ### ๐Ÿ”ง Setup Phase @@ -1432,7 +1135,7 @@ passed ๐Ÿ“Œ Duration ``` -0.00018413003999739885 +0.00018518290016800165 ``` @@ -1451,7 +1154,7 @@ passed ๐Ÿ“Œ Duration ``` -0.0002453499473631382 +0.0001730059739202261 ``` @@ -1470,7 +1173,7 @@ passed ๐Ÿ“Œ Duration ``` -0.0002736279275268316 +0.00019270996563136578 ``` @@ -1493,7 +1196,7 @@ passed โœ… #40 - **Status:** โœ… `passed` -- **Duration:** `0.000275` s +- **Duration:** `0.000194` s - **Severity:** `normal` ### ๐Ÿ”ง Setup Phase @@ -1502,7 +1205,7 @@ passed ๐Ÿ“Œ Duration ``` -0.0002651310060173273 +0.00018827198073267937 ``` @@ -1521,7 +1224,7 @@ passed ๐Ÿ“Œ Duration ``` -0.0002753280568867922 +0.00019402499310672283 ``` @@ -1540,7 +1243,7 @@ passed ๐Ÿ“Œ Duration ``` -0.00028371193911880255 +0.0001942180097103119 ``` @@ -1563,7 +1266,7 @@ passed โœ… #41 - **Status:** โœ… `passed` -- **Duration:** `0.000254` s +- **Duration:** `0.000186` s - **Severity:** `normal` ### ๐Ÿ”ง Setup Phase @@ -1572,7 +1275,7 @@ passed ๐Ÿ“Œ Duration ``` -0.0002471769694238901 +0.00018620991613715887 ``` @@ -1591,7 +1294,7 @@ passed ๐Ÿ“Œ Duration ``` -0.0002535879611968994 +0.00018643494695425034 ``` @@ -1610,7 +1313,7 @@ passed ๐Ÿ“Œ Duration ``` -0.00028260506223887205 +0.00019039004109799862 ``` @@ -1633,7 +1336,7 @@ passed โœ… #42 - **Status:** โœ… `passed` -- **Duration:** `0.000250` s +- **Duration:** `0.000177` s - **Severity:** `normal` ### ๐Ÿ”ง Setup Phase @@ -1642,7 +1345,7 @@ passed ๐Ÿ“Œ Duration ``` -0.0002479800023138523 +0.00017553498037159443 ``` @@ -1661,7 +1364,7 @@ passed ๐Ÿ“Œ Duration ``` -0.00025002099573612213 +0.00017651496455073357 ``` @@ -1680,7 +1383,7 @@ passed ๐Ÿ“Œ Duration ``` -0.00026843510568141937 +0.00019151298329234123 ``` @@ -1712,7 +1415,7 @@ passed ๐Ÿ“Œ Duration ``` -0.00021379196550697088 +0.00018565903883427382 ``` @@ -1733,19 +1436,19 @@ passed
-โŒ Failed (24) +โŒ Failed (30)
๐Ÿ“ test_io_utils.py
-๐Ÿ”ง Function: `test_write_file_readonly` +๐Ÿ”ง Function: `test_cause_io_error`
-โŒ #9 +โŒ #3 - **Status:** โŒ `failed` -- **Duration:** `0.001061` s +- **Duration:** `0.000225` s - **Severity:** `normal` ### ๐Ÿ”ง Setup Phase @@ -1754,7 +1457,7 @@ passed ๐Ÿ“Œ Duration ``` -0.0007654790533706546 +0.0001893279841169715 ```
@@ -1773,7 +1476,233 @@ passed ๐Ÿ“Œ Duration ``` -0.0010606839787214994 +0.00022524595260620117 +``` +
+ +
+๐Ÿ“Œ Outcome + +``` +failed +``` +
+ +
+๐Ÿ“Œ Crash + +``` +path: /workspace/tligui_y/slic/functions/io_utils.py +lineno: 10 +message: OSError: Forced IO Error for testing +``` +
+ +
+๐Ÿ“Œ Traceback + +``` +path: tests/test_io_utils.py +lineno: 25 +message: +path: functions/io_utils.py +lineno: 10 +message: OSError +``` +
+ +
+๐Ÿ“Œ Longrepr + +``` +def test_cause_io_error(): + # Raises manual IOError to simulate IO failure +> cause_io_error() + +tests/test_io_utils.py:25: +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + + def cause_io_error(): +> raise IOError("Forced IO Error for testing") +E OSError: Forced IO Error for testing + +functions/io_utils.py:10: OSError +``` +
+ + +### ๐Ÿ”ง Teardown Phase + +
+๐Ÿ“Œ Duration + +``` +0.00025832001119852066 +``` +
+ +
+๐Ÿ“Œ Outcome + +``` +passed +``` +
+ +
+ +
+ +
+๐Ÿ”ง Function: `test_file_not_found` + +
+โŒ #4 + +- **Status:** โŒ `failed` +- **Duration:** `0.000207` s +- **Severity:** `normal` + +### ๐Ÿ”ง Setup Phase + +
+๐Ÿ“Œ Duration + +``` +0.00021241605281829834 +``` +
+ +
+๐Ÿ“Œ Outcome + +``` +passed +``` +
+ + +### ๐Ÿ”ง Call Phase + +
+๐Ÿ“Œ Duration + +``` +0.00020681601017713547 +``` +
+ +
+๐Ÿ“Œ Outcome + +``` +failed +``` +
+ +
+๐Ÿ“Œ Crash + +``` +path: /workspace/tligui_y/slic/functions/io_utils.py +lineno: 2 +message: FileNotFoundError: [Errno 2] No such file or directory: 'nonexistent.file' +``` +
+ +
+๐Ÿ“Œ Traceback + +``` +path: tests/test_io_utils.py +lineno: 29 +message: +path: functions/io_utils.py +lineno: 2 +message: FileNotFoundError +``` +
+ +
+๐Ÿ“Œ Longrepr + +``` +def test_file_not_found(): + # Reading non-existing file raises FileNotFoundError +> read_file("nonexistent.file") + +tests/test_io_utils.py:29: +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +path = 'nonexistent.file' + + def read_file(path): +> with open(path, "r", encoding="utf-8") as f: +E FileNotFoundError: [Errno 2] No such file or directory: 'nonexistent.file' + +functions/io_utils.py:2: FileNotFoundError +``` +
+ + +### ๐Ÿ”ง Teardown Phase + +
+๐Ÿ“Œ Duration + +``` +0.00024481897708028555 +``` +
+ +
+๐Ÿ“Œ Outcome + +``` +passed +``` +
+ +
+ +
+ +
+๐Ÿ”ง Function: `test_permission_error` + +
+โŒ #5 + +- **Status:** โŒ `failed` +- **Duration:** `0.000229` s +- **Severity:** `normal` + +### ๐Ÿ”ง Setup Phase + +
+๐Ÿ“Œ Duration + +``` +0.00040535000152885914 +``` +
+ +
+๐Ÿ“Œ Outcome + +``` +passed +``` +
+ + +### ๐Ÿ”ง Call Phase + +
+๐Ÿ“Œ Duration + +``` +0.00022902502678334713 ```
@@ -1790,8 +1719,8 @@ failed ``` path: /workspace/tligui_y/slic/tests/test_io_utils.py -lineno: 72 -message: Failed: DID NOT RAISE +lineno: 34 +message: PermissionError: Permission denied ```
@@ -1800,8 +1729,14 @@ message: Failed: DID NOT RAISE ``` path: tests/test_io_utils.py -lineno: 72 -message: Failed +lineno: 36 +message: +path: functions/io_utils.py +lineno: 2 +message: in read_file +path: tests/test_io_utils.py +lineno: 34 +message: PermissionError ```
@@ -1809,19 +1744,28 @@ message: Failed ๐Ÿ“Œ Longrepr ``` -tmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/test_write_file_readonly0') +monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f7da58a7ca0> - def test_write_file_readonly(tmp_path): - # Writing to read-only file raises PermissionError - file = tmp_path / "readonly.txt" - file.write_text("data") - os.chmod(file, 0o444) - with pytest.raises(PermissionError): - with open(file, "w") as f: -> f.write("new content") -E Failed: DID NOT RAISE + def test_permission_error(monkeypatch): + # Patch open to raise PermissionError simulating access denial + def raise_perm_error(*args, **kwargs): + raise PermissionError("Permission denied") + monkeypatch.setattr("builtins.open", raise_perm_error) +> read_file("anyfile.txt") -tests/test_io_utils.py:72: Failed +tests/test_io_utils.py:36: +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ +functions/io_utils.py:2: in read_file + with open(path, "r", encoding="utf-8") as f: +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +args = ('anyfile.txt', 'r'), kwargs = {'encoding': 'utf-8'} + + def raise_perm_error(*args, **kwargs): +> raise PermissionError("Permission denied") +E PermissionError: Permission denied + +tests/test_io_utils.py:34: PermissionError ``` @@ -1832,7 +1776,471 @@ tests/test_io_utils.py:72: Failed ๐Ÿ“Œ Duration ``` -0.0007692479994148016 +0.0007426730589941144 +``` + + +
+๐Ÿ“Œ Outcome + +``` +passed +``` +
+ + + + + +
+๐Ÿ”ง Function: `test_mock_open_error` + +
+โŒ #6 + +- **Status:** โŒ `failed` +- **Duration:** `0.003433` s +- **Severity:** `normal` + +### ๐Ÿ”ง Setup Phase + +
+๐Ÿ“Œ Duration + +``` +0.0003960659960284829 +``` +
+ +
+๐Ÿ“Œ Outcome + +``` +passed +``` +
+ + +### ๐Ÿ”ง Call Phase + +
+๐Ÿ“Œ Duration + +``` +0.0034328120527788997 +``` +
+ +
+๐Ÿ“Œ Outcome + +``` +failed +``` +
+ +
+๐Ÿ“Œ Crash + +``` +path: /workspace/tligui_y/slic/.pixi/envs/default/lib/python3.8/unittest/mock.py +lineno: 1140 +message: OSError: Mocked IOError +``` +
+ +
+๐Ÿ“Œ Traceback + +``` +path: tests/test_io_utils.py +lineno: 43 +message: +path: .pixi/envs/default/lib/python3.8/unittest/mock.py +lineno: 1081 +message: in __call__ +path: .pixi/envs/default/lib/python3.8/unittest/mock.py +lineno: 1085 +message: in _mock_call +path: .pixi/envs/default/lib/python3.8/unittest/mock.py +lineno: 1140 +message: OSError +``` +
+ +
+๐Ÿ“Œ Longrepr + +``` +monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f7da1652640> + + def test_mock_open_error(monkeypatch): + # Mock open() to raise IOError simulating read error + mocked_open = mock.mock_open() + mocked_open.side_effect = IOError("Mocked IOError") + monkeypatch.setattr("builtins.open", mocked_open) +> with open("file.txt", "r") as f: + +tests/test_io_utils.py:43: +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ +.pixi/envs/default/lib/python3.8/unittest/mock.py:1081: in __call__ + return self._mock_call(*args, **kwargs) +.pixi/envs/default/lib/python3.8/unittest/mock.py:1085: in _mock_call + return self._execute_mock_call(*args, **kwargs) +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = +args = ('file.txt', 'r'), kwargs = {}, effect = OSError('Mocked IOError') + + def _execute_mock_call(self, /, *args, **kwargs): + # separate from _increment_mock_call so that awaited functions are + # executed separately from their call, also AsyncMock overrides this method + + effect = self.side_effect + if effect is not None: + if _is_exception(effect): +> raise effect +E OSError: Mocked IOError + +.pixi/envs/default/lib/python3.8/unittest/mock.py:1140: OSError +``` +
+ + +### ๐Ÿ”ง Teardown Phase + +
+๐Ÿ“Œ Duration + +``` +0.0012219928903505206 +``` +
+ +
+๐Ÿ“Œ Outcome + +``` +passed +``` +
+ +
+ +
+ +
+๐Ÿ”ง Function: `test_file_handle_closed_error` + +
+โŒ #7 + +- **Status:** โŒ `failed` +- **Duration:** `0.000226` s +- **Severity:** `normal` + +### ๐Ÿ”ง Setup Phase + +
+๐Ÿ“Œ Duration + +``` +0.0002552990335971117 +``` +
+ +
+๐Ÿ“Œ Outcome + +``` +passed +``` +
+ + +### ๐Ÿ”ง Call Phase + +
+๐Ÿ“Œ Duration + +``` +0.00022621604148298502 +``` +
+ +
+๐Ÿ“Œ Outcome + +``` +failed +``` +
+ +
+๐Ÿ“Œ Crash + +``` +path: /workspace/tligui_y/slic/tests/test_io_utils.py +lineno: 50 +message: ValueError: I/O operation on closed file +``` +
+ +
+๐Ÿ“Œ Traceback + +``` +path: tests/test_io_utils.py +lineno: 50 +message: ValueError +``` +
+ +
+๐Ÿ“Œ Longrepr + +``` +def test_file_handle_closed_error(): + # Accessing closed file raises ValueError + f = io.StringIO("content") + f.close() +> f.read() +E ValueError: I/O operation on closed file + +tests/test_io_utils.py:50: ValueError +``` +
+ + +### ๐Ÿ”ง Teardown Phase + +
+๐Ÿ“Œ Duration + +``` +0.00027998501900583506 +``` +
+ +
+๐Ÿ“Œ Outcome + +``` +passed +``` +
+ +
+ +
+ +
+๐Ÿ”ง Function: `test_os_error` + +
+โŒ #8 + +- **Status:** โŒ `failed` +- **Duration:** `0.000221` s +- **Severity:** `normal` + +### ๐Ÿ”ง Setup Phase + +
+๐Ÿ“Œ Duration + +``` +0.00045433000195771456 +``` +
+ +
+๐Ÿ“Œ Outcome + +``` +passed +``` +
+ + +### ๐Ÿ”ง Call Phase + +
+๐Ÿ“Œ Duration + +``` +0.0002213480183854699 +``` +
+ +
+๐Ÿ“Œ Outcome + +``` +failed +``` +
+ +
+๐Ÿ“Œ Crash + +``` +path: /workspace/tligui_y/slic/tests/test_io_utils.py +lineno: 55 +message: OSError: Simulated OSError +``` +
+ +
+๐Ÿ“Œ Traceback + +``` +path: tests/test_io_utils.py +lineno: 57 +message: +path: tests/test_io_utils.py +lineno: 55 +message: OSError +``` +
+ +
+๐Ÿ“Œ Longrepr + +``` +monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f7da1a8fe80> + + def test_os_error(monkeypatch): + # Patch os.remove to raise OSError simulating filesystem error + def raise_os_error(path): + raise OSError("Simulated OSError") + monkeypatch.setattr("os.remove", raise_os_error) +> os.remove("file.txt") + +tests/test_io_utils.py:57: +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +path = 'file.txt' + + def raise_os_error(path): +> raise OSError("Simulated OSError") +E OSError: Simulated OSError + +tests/test_io_utils.py:55: OSError +``` +
+ + +### ๐Ÿ”ง Teardown Phase + +
+๐Ÿ“Œ Duration + +``` +0.0008250819519162178 +``` +
+ +
+๐Ÿ“Œ Outcome + +``` +passed +``` +
+ +
+ +
+ +
+๐Ÿ”ง Function: `test_file_not_found_error` + +
+โŒ #10 + +- **Status:** โŒ `failed` +- **Duration:** `0.000190` s +- **Severity:** `normal` + +### ๐Ÿ”ง Setup Phase + +
+๐Ÿ“Œ Duration + +``` +0.00018280907534062862 +``` +
+ +
+๐Ÿ“Œ Outcome + +``` +passed +``` +
+ + +### ๐Ÿ”ง Call Phase + +
+๐Ÿ“Œ Duration + +``` +0.00019036000594496727 +``` +
+ +
+๐Ÿ“Œ Outcome + +``` +failed +``` +
+ +
+๐Ÿ“Œ Crash + +``` +path: /workspace/tligui_y/slic/tests/test_io_utils.py +lineno: 69 +message: FileNotFoundError: [Errno 2] No such file or directory: 'no_such_file.txt' +``` +
+ +
+๐Ÿ“Œ Traceback + +``` +path: tests/test_io_utils.py +lineno: 69 +message: FileNotFoundError +``` +
+ +
+๐Ÿ“Œ Longrepr + +``` +def test_file_not_found_error(): + # Raises FileNotFoundError when opening a non-existent file +> open("no_such_file.txt", "r") +E FileNotFoundError: [Errno 2] No such file or directory: 'no_such_file.txt' + +tests/test_io_utils.py:69: FileNotFoundError +``` +
+ + +### ๐Ÿ”ง Teardown Phase + +
+๐Ÿ“Œ Duration + +``` +0.0002447690349072218 ```
@@ -1860,7 +2268,7 @@ passed โŒ #11 - **Status:** โŒ `failed` -- **Duration:** `0.000202` s +- **Duration:** `0.000180` s - **Severity:** `normal` ### ๐Ÿ”ง Setup Phase @@ -1869,7 +2277,7 @@ passed ๐Ÿ“Œ Duration ``` -0.00018702703528106213 +0.00019159598741680384 ```
@@ -1888,7 +2296,7 @@ passed ๐Ÿ“Œ Duration ``` -0.0002015120116993785 +0.00018041906878352165 ```
@@ -1940,7 +2348,7 @@ tests/test_math_utils.py:16: NameError ๐Ÿ“Œ Duration ``` -0.00024663901422172785 +0.0002444880083203316 ``` @@ -1963,7 +2371,7 @@ passed โŒ #12 - **Status:** โŒ `failed` -- **Duration:** `0.000182` s +- **Duration:** `0.000187` s - **Severity:** `normal` ### ๐Ÿ”ง Setup Phase @@ -1972,7 +2380,7 @@ passed ๐Ÿ“Œ Duration ``` -0.00019410299137234688 +0.00018335995264351368 ``` @@ -1991,7 +2399,7 @@ passed ๐Ÿ“Œ Duration ``` -0.00018200406339019537 +0.00018708105199038982 ``` @@ -2043,7 +2451,7 @@ tests/test_math_utils.py:20: AttributeError ๐Ÿ“Œ Duration ``` -0.00024196109734475613 +0.00024239695630967617 ``` @@ -2066,7 +2474,7 @@ passed โŒ #14 - **Status:** โŒ `failed` -- **Duration:** `0.000459` s +- **Duration:** `0.000495` s - **Severity:** `normal` ### ๐Ÿ”ง Setup Phase @@ -2075,7 +2483,7 @@ passed ๐Ÿ“Œ Duration ``` -0.0001784099731594324 +0.000180552015081048 ``` @@ -2094,7 +2502,7 @@ passed ๐Ÿ“Œ Duration ``` -0.00045949104242026806 +0.0004948279820382595 ``` @@ -2148,7 +2556,7 @@ tests/test_math_utils.py:28: AssertionError ๐Ÿ“Œ Duration ``` -0.0002480539260432124 +0.0002398919314146042 ``` @@ -2171,7 +2579,7 @@ passed โŒ #15 - **Status:** โŒ `failed` -- **Duration:** `0.000181` s +- **Duration:** `0.000182` s - **Severity:** `normal` ### ๐Ÿ”ง Setup Phase @@ -2180,7 +2588,7 @@ passed ๐Ÿ“Œ Duration ``` -0.00019730301573872566 +0.00018539698794484138 ``` @@ -2199,7 +2607,7 @@ passed ๐Ÿ“Œ Duration ``` -0.00018079800065606833 +0.00018168194219470024 ``` @@ -2262,7 +2670,7 @@ functions/math_utils.py:5: ZeroDivisionError ๐Ÿ“Œ Duration ``` -0.0002737280447036028 +0.0002413209294900298 ``` @@ -2285,7 +2693,7 @@ passed โŒ #17 - **Status:** โŒ `failed` -- **Duration:** `0.000195` s +- **Duration:** `0.000183` s - **Severity:** `normal` ### ๐Ÿ”ง Setup Phase @@ -2294,7 +2702,7 @@ passed ๐Ÿ“Œ Duration ``` -0.00019675795920193195 +0.000191122991964221 ``` @@ -2313,7 +2721,7 @@ passed ๐Ÿ“Œ Duration ``` -0.00019474094733595848 +0.0001831279369071126 ``` @@ -2365,7 +2773,7 @@ tests/test_math_utils.py:41: RuntimeError ๐Ÿ“Œ Duration ``` -0.00026286602951586246 +0.0002477150410413742 ``` @@ -2388,7 +2796,7 @@ passed โŒ #18 - **Status:** โŒ `failed` -- **Duration:** `0.000180` s +- **Duration:** `0.000178` s - **Severity:** `normal` ### ๐Ÿ”ง Setup Phase @@ -2397,7 +2805,7 @@ passed ๐Ÿ“Œ Duration ``` -0.00020185590256005526 +0.0001944579416885972 ``` @@ -2416,7 +2824,7 @@ passed ๐Ÿ“Œ Duration ``` -0.00018026400357484818 +0.00017791707068681717 ``` @@ -2468,7 +2876,7 @@ tests/test_math_utils.py:45: MemoryError ๐Ÿ“Œ Duration ``` -0.00025746505707502365 +0.00024395203217864037 ``` @@ -2491,7 +2899,7 @@ passed โŒ #19 - **Status:** โŒ `failed` -- **Duration:** `0.000180` s +- **Duration:** `0.000177` s - **Severity:** `normal` ### ๐Ÿ”ง Setup Phase @@ -2500,7 +2908,7 @@ passed ๐Ÿ“Œ Duration ``` -0.00019343604799360037 +0.00018884497694671154 ``` @@ -2519,7 +2927,7 @@ passed ๐Ÿ“Œ Duration ``` -0.00018040090799331665 +0.0001766369678080082 ``` @@ -2571,7 +2979,7 @@ tests/test_math_utils.py:49: TimeoutError ๐Ÿ“Œ Duration ``` -0.00024648697581142187 +0.00024318101350218058 ``` @@ -2594,7 +3002,7 @@ passed โŒ #20 - **Status:** โŒ `failed` -- **Duration:** `0.000875` s +- **Duration:** `0.001376` s - **Severity:** `normal` ### ๐Ÿ”ง Setup Phase @@ -2603,7 +3011,7 @@ passed ๐Ÿ“Œ Duration ``` -0.00018720095977187157 +0.00018824206199496984 ``` @@ -2622,7 +3030,7 @@ passed ๐Ÿ“Œ Duration ``` -0.0008753529982641339 +0.0013764239847660065 ``` @@ -2688,7 +3096,7 @@ E RecursionError: maximum recursion depth exceeded ๐Ÿ“Œ Duration ``` -0.00033563701435923576 +0.0003495289711281657 ``` @@ -2711,7 +3119,7 @@ passed โŒ #21 - **Status:** โŒ `failed` -- **Duration:** `0.000196` s +- **Duration:** `0.000192` s - **Severity:** `normal` ### ๐Ÿ”ง Setup Phase @@ -2720,7 +3128,7 @@ passed ๐Ÿ“Œ Duration ``` -0.00022263196296989918 +0.00023024308029562235 ``` @@ -2739,7 +3147,7 @@ passed ๐Ÿ“Œ Duration ``` -0.00019573699682950974 +0.00019236805383116007 ``` @@ -2791,7 +3199,7 @@ tests/test_math_utils.py:59: FloatingPointError ๐Ÿ“Œ Duration ``` -0.00026164797600358725 +0.000290917931124568 ``` @@ -2814,7 +3222,7 @@ passed โŒ #22 - **Status:** โŒ `failed` -- **Duration:** `0.000227` s +- **Duration:** `0.000207` s - **Severity:** `normal` ### ๐Ÿ”ง Setup Phase @@ -2823,7 +3231,7 @@ passed ๐Ÿ“Œ Duration ``` -0.00020077405497431755 +0.00020970997866243124 ``` @@ -2842,7 +3250,7 @@ passed ๐Ÿ“Œ Duration ``` -0.0002272670390084386 +0.00020732800476253033 ``` @@ -2894,7 +3302,7 @@ tests/test_math_utils.py:63: OverflowError ๐Ÿ“Œ Duration ``` -0.0002659889869391918 +0.0002589969662949443 ``` @@ -2917,7 +3325,7 @@ passed โŒ #23 - **Status:** โŒ `failed` -- **Duration:** `0.000185` s +- **Duration:** `0.000210` s - **Severity:** `normal` ### ๐Ÿ”ง Setup Phase @@ -2926,7 +3334,7 @@ passed ๐Ÿ“Œ Duration ``` -0.00020268606022000313 +0.00020340795163065195 ``` @@ -2945,7 +3353,7 @@ passed ๐Ÿ“Œ Duration ``` -0.00018534192349761724 +0.00020959798712283373 ``` @@ -2997,7 +3405,7 @@ tests/test_math_utils.py:67: ValueError ๐Ÿ“Œ Duration ``` -0.0002553859958425164 +0.0002777960617095232 ``` @@ -3020,7 +3428,7 @@ passed โŒ #24 - **Status:** โŒ `failed` -- **Duration:** `0.000176` s +- **Duration:** `0.000183` s - **Severity:** `normal` ### ๐Ÿ”ง Setup Phase @@ -3029,7 +3437,7 @@ passed ๐Ÿ“Œ Duration ``` -0.00019666296429932117 +0.0002128899795934558 ``` @@ -3048,7 +3456,7 @@ passed ๐Ÿ“Œ Duration ``` -0.0001758909784257412 +0.00018349604215472937 ``` @@ -3100,7 +3508,7 @@ tests/test_math_utils.py:71: TypeError ๐Ÿ“Œ Duration ``` -0.0003716039936989546 +0.0002446259604766965 ``` @@ -3123,7 +3531,7 @@ passed โŒ #25 - **Status:** โŒ `failed` -- **Duration:** `0.000201` s +- **Duration:** `0.000180` s - **Severity:** `normal` ### ๐Ÿ”ง Setup Phase @@ -3132,7 +3540,7 @@ passed ๐Ÿ“Œ Duration ``` -0.0002454459900036454 +0.00019332999363541603 ``` @@ -3151,7 +3559,7 @@ passed ๐Ÿ“Œ Duration ``` -0.00020105892326682806 +0.00017953093629330397 ``` @@ -3203,7 +3611,7 @@ tests/test_math_utils.py:75: Exception ๐Ÿ“Œ Duration ``` -0.0002812399761751294 +0.0002814620966091752 ``` @@ -3226,7 +3634,7 @@ passed โŒ #26 - **Status:** โŒ `failed` -- **Duration:** `0.000193` s +- **Duration:** `0.000188` s - **Severity:** `normal` ### ๐Ÿ”ง Setup Phase @@ -3235,7 +3643,7 @@ passed ๐Ÿ“Œ Duration ``` -0.00022713805083185434 +0.0002144710160791874 ``` @@ -3254,7 +3662,7 @@ passed ๐Ÿ“Œ Duration ``` -0.00019293406512588263 +0.00018772203475236893 ``` @@ -3306,7 +3714,7 @@ tests/test_math_utils.py:79: CustomError ๐Ÿ“Œ Duration ``` -0.0002473479835316539 +0.0002724119694903493 ``` @@ -3329,7 +3737,7 @@ passed โŒ #27 - **Status:** โŒ `failed` -- **Duration:** `0.000184` s +- **Duration:** `0.000189` s - **Severity:** `normal` ### ๐Ÿ”ง Setup Phase @@ -3338,7 +3746,7 @@ passed ๐Ÿ“Œ Duration ``` -0.000188878970220685 +0.00022197002544999123 ``` @@ -3357,7 +3765,7 @@ passed ๐Ÿ“Œ Duration ``` -0.00018392200581729412 +0.00018884404562413692 ``` @@ -3433,7 +3841,7 @@ tests/test_math_utils.py:83: StopIteration The above exception was the direct cause of the following exception: cls = -func = . at 0x7f40b979dee0> +func = . at 0x7f7da429ca60> when = 'call' reraise = (, ) @@ -3503,7 +3911,7 @@ E RuntimeError: generator raised StopIteration ๐Ÿ“Œ Duration ``` -0.0004507380072027445 +0.0004441700875759125 ``` @@ -3526,7 +3934,7 @@ passed โŒ #28 - **Status:** โŒ `failed` -- **Duration:** `0.000239` s +- **Duration:** `0.000200` s - **Severity:** `normal` ### ๐Ÿ”ง Setup Phase @@ -3535,7 +3943,7 @@ passed ๐Ÿ“Œ Duration ``` -0.0002628790680319071 +0.0002737919567152858 ``` @@ -3554,7 +3962,7 @@ passed ๐Ÿ“Œ Duration ``` -0.00023863301612436771 +0.0001998350489884615 ``` @@ -3606,7 +4014,7 @@ tests/test_math_utils.py:87: GeneratorExit ๐Ÿ“Œ Duration ``` -0.00029624998569488525 +0.0002820719964802265 ``` @@ -3629,7 +4037,7 @@ passed โŒ #29 - **Status:** โŒ `failed` -- **Duration:** `0.000213` s +- **Duration:** `0.000205` s - **Severity:** `normal` ### ๐Ÿ”ง Setup Phase @@ -3638,7 +4046,7 @@ passed ๐Ÿ“Œ Duration ``` -0.000237794010899961 +0.0001980310771614313 ``` @@ -3657,7 +4065,7 @@ passed ๐Ÿ“Œ Duration ``` -0.00021343003027141094 +0.00020492100156843662 ``` @@ -3710,7 +4118,7 @@ tests/test_math_utils.py:92: RecursionError ๐Ÿ“Œ Duration ``` -0.0002961689606308937 +0.0002553400117903948 ``` @@ -3733,7 +4141,7 @@ passed โŒ #30 - **Status:** โŒ `failed` -- **Duration:** `0.000205` s +- **Duration:** `0.000185` s - **Severity:** `normal` ### ๐Ÿ”ง Setup Phase @@ -3742,7 +4150,7 @@ passed ๐Ÿ“Œ Duration ``` -0.00021327706053853035 +0.0001827799715101719 ``` @@ -3761,7 +4169,7 @@ passed ๐Ÿ“Œ Duration ``` -0.00020491599570959806 +0.00018450699280947447 ``` @@ -3819,7 +4227,7 @@ tests/test_math_utils.py:102: SyntaxError ๐Ÿ“Œ Duration ``` -0.000250010984018445 +0.00023947691079229116 ``` @@ -3842,7 +4250,7 @@ passed โŒ #31 - **Status:** โŒ `failed` -- **Duration:** `0.000182` s +- **Duration:** `0.000172` s - **Severity:** `normal` ### ๐Ÿ”ง Setup Phase @@ -3851,7 +4259,7 @@ passed ๐Ÿ“Œ Duration ``` -0.00020237895660102367 +0.00020459399092942476 ``` @@ -3870,7 +4278,7 @@ passed ๐Ÿ“Œ Duration ``` -0.0001818749587982893 +0.0001723149325698614 ``` @@ -3922,7 +4330,7 @@ tests/test_math_utils.py:106: SystemExit ๐Ÿ“Œ Duration ``` -0.00025838008150458336 +0.0002392960013821721 ``` @@ -3945,7 +4353,7 @@ passed โŒ #32 - **Status:** โŒ `failed` -- **Duration:** `0.000199` s +- **Duration:** `0.000178` s - **Severity:** `normal` ### ๐Ÿ”ง Setup Phase @@ -3954,7 +4362,7 @@ passed ๐Ÿ“Œ Duration ``` -0.00021452701184898615 +0.00018531305249780416 ``` @@ -3973,7 +4381,7 @@ passed ๐Ÿ“Œ Duration ``` -0.00019851501565426588 +0.00017847400158643723 ``` @@ -4038,7 +4446,7 @@ tests/test_math_utils.py:111: TypeError ๐Ÿ“Œ Duration ``` -0.00035657593980431557 +0.00023046601563692093 ``` @@ -4061,7 +4469,7 @@ passed โŒ #33 - **Status:** โŒ `failed` -- **Duration:** `0.000203` s +- **Duration:** `0.000197` s - **Severity:** `normal` ### ๐Ÿ”ง Setup Phase @@ -4070,7 +4478,7 @@ passed ๐Ÿ“Œ Duration ``` -0.00022080796770751476 +0.0001801720354706049 ``` @@ -4089,7 +4497,7 @@ passed ๐Ÿ“Œ Duration ``` -0.00020252005197107792 +0.00019665493164211512 ``` @@ -4161,7 +4569,7 @@ tests/test_math_utils.py:119: ImportError ๐Ÿ“Œ Duration ``` -0.00025629496667534113 +0.0002454380737617612 ``` @@ -4184,7 +4592,7 @@ passed โŒ #34 - **Status:** โŒ `failed` -- **Duration:** `0.000515` s +- **Duration:** `0.000490` s - **Severity:** `normal` ### ๐Ÿ”ง Setup Phase @@ -4193,7 +4601,7 @@ passed ๐Ÿ“Œ Duration ``` -0.00020008801948279142 +0.00020593905355781317 ``` @@ -4212,7 +4620,7 @@ passed ๐Ÿ“Œ Duration ``` -0.0005147069459781051 +0.0004897390026599169 ``` @@ -4275,7 +4683,7 @@ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ name = 'non_existent_module_xyz' -import_ = +import_ = > ??? E ModuleNotFoundError: No module named 'non_existent_module_xyz' @@ -4291,7 +4699,7 @@ E ModuleNotFoundError: No module named 'non_existent_module_xyz' ๐Ÿ“Œ Duration ``` -0.0003877899143844843 +0.0002710099797695875 ``` @@ -4319,7 +4727,7 @@ passed โŒ #39 - **Status:** โŒ `failed` -- **Duration:** `0.000336` s +- **Duration:** `0.000301` s - **Severity:** `normal` ### ๐Ÿ”ง Setup Phase @@ -4328,7 +4736,7 @@ passed ๐Ÿ“Œ Duration ``` -0.0002631999086588621 +0.0001754419645294547 ``` @@ -4347,7 +4755,7 @@ passed ๐Ÿ“Œ Duration ``` -0.0003360230475664139 +0.0003005459439009428 ``` @@ -4400,7 +4808,7 @@ tests/test_string_utils.py:28: Failed ๐Ÿ“Œ Duration ``` -0.00032843498047441244 +0.00023749400861561298 ``` @@ -4433,7 +4841,7 @@ passed โŒ #16 - **Status:** โŒ `xfailed` -- **Duration:** `0.000334` s +- **Duration:** `0.000311` s - **Severity:** `normal` ### ๐Ÿ”ง Setup Phase @@ -4442,7 +4850,7 @@ passed ๐Ÿ“Œ Duration ``` -0.00023999204859137535 +0.0002115069655701518 ``` @@ -4461,7 +4869,7 @@ passed ๐Ÿ“Œ Duration ``` -0.00033371802419424057 +0.00031081901397556067 ``` @@ -4516,7 +4924,7 @@ tests/test_math_utils.py:37: AssertionError ๐Ÿ“Œ Duration ``` -0.00029166205786168575 +0.00026562693528831005 ``` @@ -4544,7 +4952,7 @@ passed โŒ #43 - **Status:** โŒ `xfailed` -- **Duration:** `0.000929` s +- **Duration:** `0.000639` s - **Severity:** `normal` ### ๐Ÿ”ง Setup Phase @@ -4553,7 +4961,7 @@ passed ๐Ÿ“Œ Duration ``` -0.0002453170018270612 +0.0001918460475280881 ``` @@ -4572,7 +4980,7 @@ passed ๐Ÿ“Œ Duration ``` -0.0009294128976762295 +0.0006389999762177467 ``` @@ -4633,7 +5041,7 @@ tests/test_string_utils.py:50: AssertionError ๐Ÿ“Œ Duration ``` -0.0003524509957060218 +0.00025437993463128805 ``` @@ -4866,25 +5274,25 @@ result: lineno: 22 nodeid: tests/test_io_utils.py::test_file_not_found type: Function - lineno: 27 + lineno: 26 nodeid: tests/test_io_utils.py::test_permission_error type: Function - lineno: 32 + lineno: 30 nodeid: tests/test_io_utils.py::test_mock_open_error type: Function - lineno: 40 + lineno: 37 nodeid: tests/test_io_utils.py::test_file_handle_closed_error type: Function - lineno: 49 + lineno: 45 nodeid: tests/test_io_utils.py::test_os_error type: Function - lineno: 56 + lineno: 51 nodeid: tests/test_io_utils.py::test_write_file_readonly type: Function - lineno: 64 + lineno: 58 nodeid: tests/test_io_utils.py::test_file_not_found_error type: Function - lineno: 73 + lineno: 66 ``` diff --git a/ci-reports/markdown/pytest-report.json b/ci-reports/markdown/pytest-report.json index fa931561..d96ae1ce 100644 --- a/ci-reports/markdown/pytest-report.json +++ b/ci-reports/markdown/pytest-report.json @@ -1 +1 @@ -{"created": 1752569077.7137868, "duration": 0.6740055084228516, "exitcode": 2, "root": "/workspace/tligui_y/slic", "environment": {}, "summary": {"passed": 18, "failed": 24, "xfailed": 2, "total": 44, "collected": 44}, "collectors": [{"nodeid": "", "outcome": "passed", "result": [{"nodeid": ".", "type": "Dir"}]}, {"nodeid": "allure-results", "outcome": "passed", "result": []}, {"nodeid": "ci-reports/allure", "outcome": "passed", "result": []}, {"nodeid": "ci-reports/coverage", "outcome": "passed", "result": []}, {"nodeid": "ci-reports/markdown", "outcome": "passed", "result": []}, {"nodeid": "ci-reports", "outcome": "passed", "result": [{"nodeid": "ci-reports/allure", "type": "Dir"}, {"nodeid": "ci-reports/coverage", "type": "Dir"}, {"nodeid": "ci-reports/markdown", "type": "Dir"}]}, {"nodeid": "functions", "outcome": "passed", "result": []}, {"nodeid": "tests/test_broken_fct.py", "outcome": "failed", "result": [], "longrepr": ".pixi/envs/default/lib/python3.8/site-packages/_pytest/python.py:493: in importtestmodule\n mod = import_path(\n.pixi/envs/default/lib/python3.8/site-packages/_pytest/pathlib.py:587: in import_path\n importlib.import_module(module_name)\n.pixi/envs/default/lib/python3.8/importlib/__init__.py:127: in import_module\n return _bootstrap._gcd_import(name[level:], package, level)\n:1014: in _gcd_import\n ???\n:991: in _find_and_load\n ???\n:975: in _find_and_load_unlocked\n ???\n:671: in _load_unlocked\n ???\n.pixi/envs/default/lib/python3.8/site-packages/_pytest/assertion/rewrite.py:175: in exec_module\n source_stat, co = _rewrite_test(fn, self.config)\n.pixi/envs/default/lib/python3.8/site-packages/_pytest/assertion/rewrite.py:355: in _rewrite_test\n tree = ast.parse(source, filename=strfn)\n.pixi/envs/default/lib/python3.8/ast.py:47: in parse\n return compile(source, filename, mode, flags,\nE File \"/workspace/tligui_y/slic/tests/test_broken_fct.py\", line 8\nE def test_valid_2():\nE ^\nE SyntaxError: invalid syntax"}, {"nodeid": "tests/test_collector_error.py", "outcome": "failed", "result": [], "longrepr": "ImportError while importing test module '/workspace/tligui_y/slic/tests/test_collector_error.py'.\nHint: make sure your test modules/packages have valid Python names.\nTraceback:\n.pixi/envs/default/lib/python3.8/importlib/__init__.py:127: in import_module\n return _bootstrap._gcd_import(name[level:], package, level)\ntests/test_collector_error.py:1: in \n from no_existing_module.math_utils import *\nE ModuleNotFoundError: No module named 'no_existing_module'"}, {"nodeid": "tests/test_io_utils.py", "outcome": "passed", "result": [{"nodeid": "tests/test_io_utils.py::test_read_file", "type": "Function", "lineno": 9}, {"nodeid": "tests/test_io_utils.py::test_write_file", "type": "Function", "lineno": 16}, {"nodeid": "tests/test_io_utils.py::test_cause_io_error", "type": "Function", "lineno": 22}, {"nodeid": "tests/test_io_utils.py::test_file_not_found", "type": "Function", "lineno": 27}, {"nodeid": "tests/test_io_utils.py::test_permission_error", "type": "Function", "lineno": 32}, {"nodeid": "tests/test_io_utils.py::test_mock_open_error", "type": "Function", "lineno": 40}, {"nodeid": "tests/test_io_utils.py::test_file_handle_closed_error", "type": "Function", "lineno": 49}, {"nodeid": "tests/test_io_utils.py::test_os_error", "type": "Function", "lineno": 56}, {"nodeid": "tests/test_io_utils.py::test_write_file_readonly", "type": "Function", "lineno": 64}, {"nodeid": "tests/test_io_utils.py::test_file_not_found_error", "type": "Function", "lineno": 73}]}, {"nodeid": "tests/test_math_utils.py", "outcome": "passed", "result": [{"nodeid": "tests/test_math_utils.py::test_broken", "type": "Function", "lineno": 13}, {"nodeid": "tests/test_math_utils.py::test_call_missing_function", "type": "Function", "lineno": 17}, {"nodeid": "tests/test_math_utils.py::test_addition_pass", "type": "Function", "lineno": 21}, {"nodeid": "tests/test_math_utils.py::test_addition_fail", "type": "Function", "lineno": 25}, {"nodeid": "tests/test_math_utils.py::test_division_zero", "type": "Function", "lineno": 29}, {"nodeid": "tests/test_math_utils.py::test_multiply_xfail", "type": "Function", "lineno": 33}, {"nodeid": "tests/test_math_utils.py::test_runtime_error", "type": "Function", "lineno": 38}, {"nodeid": "tests/test_math_utils.py::test_memory_error", "type": "Function", "lineno": 42}, {"nodeid": "tests/test_math_utils.py::test_timeout_error", "type": "Function", "lineno": 46}, {"nodeid": "tests/test_math_utils.py::test_recursion_error", "type": "Function", "lineno": 50}, {"nodeid": "tests/test_math_utils.py::test_floating_point_error", "type": "Function", "lineno": 56}, {"nodeid": "tests/test_math_utils.py::test_floating_point_overflow", "type": "Function", "lineno": 60}, {"nodeid": "tests/test_math_utils.py::test_value_error", "type": "Function", "lineno": 64}, {"nodeid": "tests/test_math_utils.py::test_type_error", "type": "Function", "lineno": 68}, {"nodeid": "tests/test_math_utils.py::test_unhandled_exception", "type": "Function", "lineno": 72}, {"nodeid": "tests/test_math_utils.py::test_custom_error", "type": "Function", "lineno": 76}, {"nodeid": "tests/test_math_utils.py::test_stop_iteration_direct", "type": "Function", "lineno": 80}, {"nodeid": "tests/test_math_utils.py::test_generator_exit_direct", "type": "Function", "lineno": 84}, {"nodeid": "tests/test_math_utils.py::test_recursion_limit", "type": "Function", "lineno": 88}, {"nodeid": "tests/test_math_utils.py::test_malformed_code", "type": "Function", "lineno": 99}, {"nodeid": "tests/test_math_utils.py::test_sys_exit", "type": "Function", "lineno": 103}, {"nodeid": "tests/test_math_utils.py::test_broken_function", "type": "Function", "lineno": 107}, {"nodeid": "tests/test_math_utils.py::test_import_error_patch", "type": "Function", "lineno": 113}, {"nodeid": "tests/test_math_utils.py::test_module_not_found_error", "type": "Function", "lineno": 127}]}, {"nodeid": "tests/test_string_utils.py", "outcome": "passed", "result": [{"nodeid": "tests/test_string_utils.py::test_uppercase_normal", "type": "Function", "lineno": 7}, {"nodeid": "tests/test_string_utils.py::test_uppercase_type_error", "type": "Function", "lineno": 11}, {"nodeid": "tests/test_string_utils.py::test_reverse_string", "type": "Function", "lineno": 16}, {"nodeid": "tests/test_string_utils.py::test_warning_emit", "type": "Function", "lineno": 20}, {"nodeid": "tests/test_string_utils.py::test_unicode_encode_error", "type": "Function", "lineno": 24}, {"nodeid": "tests/test_string_utils.py::test_unicode_decode_error", "type": "Function", "lineno": 29}, {"nodeid": "tests/test_string_utils.py::test_unicode_decode_surrogateescape", "type": "Function", "lineno": 34}, {"nodeid": "tests/test_string_utils.py::test_import_warning", "type": "Function", "lineno": 39}, {"nodeid": "tests/test_string_utils.py::test_xfail_uppercase_digits", "type": "Function", "lineno": 46}, {"nodeid": "tests/test_string_utils.py::test_keyboard_interrupt_direct", "type": "Function", "lineno": 51}]}, {"nodeid": "tests", "outcome": "passed", "result": [{"nodeid": "tests/test_broken_fct.py", "type": "Module"}, {"nodeid": "tests/test_collector_error.py", "type": "Module"}, {"nodeid": "tests/test_io_utils.py", "type": "Module"}, {"nodeid": "tests/test_math_utils.py", "type": "Module"}, {"nodeid": "tests/test_string_utils.py", "type": "Module"}]}, {"nodeid": ".", "outcome": "passed", "result": [{"nodeid": "allure-results", "type": "Dir"}, {"nodeid": "ci-reports", "type": "Dir"}, {"nodeid": "functions", "type": "Package"}, {"nodeid": "tests", "type": "Dir"}]}], "tests": [{"nodeid": "tests/test_io_utils.py::test_read_file", "lineno": 9, "outcome": "passed", "keywords": ["test_read_file", "test_io_utils.py", "tests", "slic", ""], "setup": {"duration": 0.004149291897192597, "outcome": "passed"}, "call": {"duration": 0.0008742549689486623, "outcome": "passed"}, "teardown": {"duration": 0.0013384079793468118, "outcome": "passed"}}, {"nodeid": "tests/test_io_utils.py::test_write_file", "lineno": 16, "outcome": "passed", "keywords": ["test_write_file", "test_io_utils.py", "tests", "slic", ""], "setup": {"duration": 0.0007246820023283362, "outcome": "passed"}, "call": {"duration": 0.0003741609398275614, "outcome": "passed"}, "teardown": {"duration": 0.0007668560137972236, "outcome": "passed"}}, {"nodeid": "tests/test_io_utils.py::test_cause_io_error", "lineno": 22, "outcome": "passed", "keywords": ["test_cause_io_error", "test_io_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00019118597265332937, "outcome": "passed"}, "call": {"duration": 0.00034820300061255693, "outcome": "passed"}, "teardown": {"duration": 0.00021223200019448996, "outcome": "passed"}}, {"nodeid": "tests/test_io_utils.py::test_file_not_found", "lineno": 27, "outcome": "passed", "keywords": ["test_file_not_found", "test_io_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00020444602705538273, "outcome": "passed"}, "call": {"duration": 0.00021956709679216146, "outcome": "passed"}, "teardown": {"duration": 0.000204429030418396, "outcome": "passed"}}, {"nodeid": "tests/test_io_utils.py::test_permission_error", "lineno": 32, "outcome": "passed", "keywords": ["test_permission_error", "test_io_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00037131307180970907, "outcome": "passed"}, "call": {"duration": 0.00022086710669100285, "outcome": "passed"}, "teardown": {"duration": 0.0006885710172355175, "outcome": "passed"}}, {"nodeid": "tests/test_io_utils.py::test_mock_open_error", "lineno": 40, "outcome": "passed", "keywords": ["test_mock_open_error", "test_io_utils.py", "tests", "slic", ""], "setup": {"duration": 0.0003682640381157398, "outcome": "passed"}, "call": {"duration": 0.0034925310174003243, "outcome": "passed"}, "teardown": {"duration": 0.0007155699422582984, "outcome": "passed"}}, {"nodeid": "tests/test_io_utils.py::test_file_handle_closed_error", "lineno": 49, "outcome": "passed", "keywords": ["test_file_handle_closed_error", "test_io_utils.py", "tests", "slic", ""], "setup": {"duration": 0.0001856490271165967, "outcome": "passed"}, "call": {"duration": 0.00021118007134646177, "outcome": "passed"}, "teardown": {"duration": 0.0002036839723587036, "outcome": "passed"}}, {"nodeid": "tests/test_io_utils.py::test_os_error", "lineno": 56, "outcome": "passed", "keywords": ["test_os_error", "test_io_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00035054399631917477, "outcome": "passed"}, "call": {"duration": 0.00029183097649365664, "outcome": "passed"}, "teardown": {"duration": 0.0007028989493846893, "outcome": "passed"}}, {"nodeid": "tests/test_io_utils.py::test_write_file_readonly", "lineno": 64, "outcome": "failed", "keywords": ["test_write_file_readonly", "test_io_utils.py", "tests", "slic", ""], "setup": {"duration": 0.0007654790533706546, "outcome": "passed"}, "call": {"duration": 0.0010606839787214994, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_io_utils.py", "lineno": 72, "message": "Failed: DID NOT RAISE "}, "traceback": [{"path": "tests/test_io_utils.py", "lineno": 72, "message": "Failed"}], "longrepr": "tmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/test_write_file_readonly0')\n\n def test_write_file_readonly(tmp_path):\n # Writing to read-only file raises PermissionError\n file = tmp_path / \"readonly.txt\"\n file.write_text(\"data\")\n os.chmod(file, 0o444)\n with pytest.raises(PermissionError):\n with open(file, \"w\") as f:\n> f.write(\"new content\")\nE Failed: DID NOT RAISE \n\ntests/test_io_utils.py:72: Failed"}, "teardown": {"duration": 0.0007692479994148016, "outcome": "passed"}}, {"nodeid": "tests/test_io_utils.py::test_file_not_found_error", "lineno": 73, "outcome": "passed", "keywords": ["test_file_not_found_error", "test_io_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00019854900892823935, "outcome": "passed"}, "call": {"duration": 0.0002048029564321041, "outcome": "passed"}, "teardown": {"duration": 0.00020673091057687998, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_broken", "lineno": 13, "outcome": "failed", "keywords": ["test_broken", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00018702703528106213, "outcome": "passed"}, "call": {"duration": 0.0002015120116993785, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 16, "message": "NameError: name 'want_the_test_to_fail' is not defined"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 16, "message": "NameError"}], "longrepr": "def test_broken():\n # simulating a broken or faulty test implementation that will cause the test to error\n> want_the_test_to_fail\nE NameError: name 'want_the_test_to_fail' is not defined\n\ntests/test_math_utils.py:16: NameError"}, "teardown": {"duration": 0.00024663901422172785, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_call_missing_function", "lineno": 17, "outcome": "failed", "keywords": ["test_call_missing_function", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00019410299137234688, "outcome": "passed"}, "call": {"duration": 0.00018200406339019537, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 20, "message": "AttributeError: module 'functions.math_utils' has no attribute 'non_existent_function'"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 20, "message": "AttributeError"}], "longrepr": "def test_call_missing_function():\n # Accessing a missing function attribute raises AttributeError\n> getattr(math_utils, \"non_existent_function\")()\nE AttributeError: module 'functions.math_utils' has no attribute 'non_existent_function'\n\ntests/test_math_utils.py:20: AttributeError"}, "teardown": {"duration": 0.00024196109734475613, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_addition_pass", "lineno": 21, "outcome": "passed", "keywords": ["test_addition_pass", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00018531596288084984, "outcome": "passed"}, "call": {"duration": 0.0001813389826565981, "outcome": "passed"}, "teardown": {"duration": 0.00021223805379122496, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_addition_fail", "lineno": 25, "outcome": "failed", "keywords": ["test_addition_fail", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.0001784099731594324, "outcome": "passed"}, "call": {"duration": 0.00045949104242026806, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 28, "message": "assert 4 == 5\n + where 4 = addition(2, 2)"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 28, "message": "AssertionError"}], "longrepr": "def test_addition_fail():\n # Assertion failure: expected incorrect result\n> assert addition(2, 2) == 5\nE assert 4 == 5\nE + where 4 = addition(2, 2)\n\ntests/test_math_utils.py:28: AssertionError"}, "teardown": {"duration": 0.0002480539260432124, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_division_zero", "lineno": 29, "outcome": "failed", "keywords": ["test_division_zero", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00019730301573872566, "outcome": "passed"}, "call": {"duration": 0.00018079800065606833, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/functions/math_utils.py", "lineno": 5, "message": "ZeroDivisionError: division by zero"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 32, "message": ""}, {"path": "functions/math_utils.py", "lineno": 5, "message": "ZeroDivisionError"}], "longrepr": "def test_division_zero():\n # Will raise ZeroDivisionError if not handled in division\n> division(1, 0)\n\ntests/test_math_utils.py:32: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\na = 1, b = 0\n\n def division(a, b):\n> return a / b\nE ZeroDivisionError: division by zero\n\nfunctions/math_utils.py:5: ZeroDivisionError"}, "teardown": {"duration": 0.0002737280447036028, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_multiply_xfail", "lineno": 33, "outcome": "xfailed", "keywords": ["test_multiply_xfail", "xfail", "pytestmark", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00023999204859137535, "outcome": "passed"}, "call": {"duration": 0.00033371802419424057, "outcome": "skipped", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 37, "message": "assert 4 == 5\n + where 4 = multiply(2, 2)"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 37, "message": "AssertionError"}], "longrepr": "@pytest.mark.xfail(reason=\"Expected failure\")\n def test_multiply_xfail():\n # Expected fail test (xfail): incorrect expected multiply result\n> assert multiply(2, 2) == 5\nE assert 4 == 5\nE + where 4 = multiply(2, 2)\n\ntests/test_math_utils.py:37: AssertionError"}, "teardown": {"duration": 0.00029166205786168575, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_runtime_error", "lineno": 38, "outcome": "failed", "keywords": ["test_runtime_error", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00019675795920193195, "outcome": "passed"}, "call": {"duration": 0.00019474094733595848, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 41, "message": "RuntimeError: Forced runtime error"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 41, "message": "RuntimeError"}], "longrepr": "def test_runtime_error():\n # Test raises an uncaught RuntimeError\n> raise RuntimeError(\"Forced runtime error\")\nE RuntimeError: Forced runtime error\n\ntests/test_math_utils.py:41: RuntimeError"}, "teardown": {"duration": 0.00026286602951586246, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_memory_error", "lineno": 42, "outcome": "failed", "keywords": ["test_memory_error", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00020185590256005526, "outcome": "passed"}, "call": {"duration": 0.00018026400357484818, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 45, "message": "MemoryError: Simulated memory error"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 45, "message": "MemoryError"}], "longrepr": "def test_memory_error():\n # Manually raise MemoryError to simulate out-of-memory condition\n> raise MemoryError(\"Simulated memory error\")\nE MemoryError: Simulated memory error\n\ntests/test_math_utils.py:45: MemoryError"}, "teardown": {"duration": 0.00025746505707502365, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_timeout_error", "lineno": 46, "outcome": "failed", "keywords": ["test_timeout_error", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00019343604799360037, "outcome": "passed"}, "call": {"duration": 0.00018040090799331665, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 49, "message": "TimeoutError: Simulated timeout error"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 49, "message": "TimeoutError"}], "longrepr": "def test_timeout_error():\n # Manually raise TimeoutError simulating timeout conditions\n> raise TimeoutError(\"Simulated timeout error\")\nE TimeoutError: Simulated timeout error\n\ntests/test_math_utils.py:49: TimeoutError"}, "teardown": {"duration": 0.00024648697581142187, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_recursion_error", "lineno": 50, "outcome": "failed", "keywords": ["test_recursion_error", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00018720095977187157, "outcome": "passed"}, "call": {"duration": 0.0008753529982641339, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 54, "message": "RecursionError: maximum recursion depth exceeded"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 55, "message": ""}, {"path": "tests/test_math_utils.py", "lineno": 54, "message": "in recursive"}, {"path": "tests/test_math_utils.py", "lineno": 54, "message": "in recursive"}], "longrepr": "def test_recursion_error():\n # Infinite recursion triggers RecursionError\n def recursive():\n return recursive()\n> recursive()\n\ntests/test_math_utils.py:55: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_math_utils.py:54: in recursive\n return recursive()\ntests/test_math_utils.py:54: in recursive\n return recursive()\nE RecursionError: maximum recursion depth exceeded\n!!! Recursion detected (same locals & position)"}, "teardown": {"duration": 0.00033563701435923576, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_floating_point_error", "lineno": 56, "outcome": "failed", "keywords": ["test_floating_point_error", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00022263196296989918, "outcome": "passed"}, "call": {"duration": 0.00019573699682950974, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 59, "message": "FloatingPointError: Simulated floating point error"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 59, "message": "FloatingPointError"}], "longrepr": "def test_floating_point_error():\n # Manually raise FloatingPointError (rare in practice)\n> raise FloatingPointError(\"Simulated floating point error\")\nE FloatingPointError: Simulated floating point error\n\ntests/test_math_utils.py:59: FloatingPointError"}, "teardown": {"duration": 0.00026164797600358725, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_floating_point_overflow", "lineno": 60, "outcome": "failed", "keywords": ["test_floating_point_overflow", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00020077405497431755, "outcome": "passed"}, "call": {"duration": 0.0002272670390084386, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 63, "message": "OverflowError: math range error"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 63, "message": "OverflowError"}], "longrepr": "def test_floating_point_overflow():\n # Exponential overflow triggers OverflowError\n> math.exp(1000)\nE OverflowError: math range error\n\ntests/test_math_utils.py:63: OverflowError"}, "teardown": {"duration": 0.0002659889869391918, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_value_error", "lineno": 64, "outcome": "failed", "keywords": ["test_value_error", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00020268606022000313, "outcome": "passed"}, "call": {"duration": 0.00018534192349761724, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 67, "message": "ValueError: invalid literal for int() with base 10: 'invalid'"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 67, "message": "ValueError"}], "longrepr": "def test_value_error():\n # ValueError on invalid integer conversion\n> int(\"invalid\")\nE ValueError: invalid literal for int() with base 10: 'invalid'\n\ntests/test_math_utils.py:67: ValueError"}, "teardown": {"duration": 0.0002553859958425164, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_type_error", "lineno": 68, "outcome": "failed", "keywords": ["test_type_error", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00019666296429932117, "outcome": "passed"}, "call": {"duration": 0.0001758909784257412, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 71, "message": "TypeError: 'int' object is not iterable"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 71, "message": "TypeError"}], "longrepr": "def test_type_error():\n # TypeError when passing wrong argument type to sum\n> sum(5)\nE TypeError: 'int' object is not iterable\n\ntests/test_math_utils.py:71: TypeError"}, "teardown": {"duration": 0.0003716039936989546, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_unhandled_exception", "lineno": 72, "outcome": "failed", "keywords": ["test_unhandled_exception", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.0002454459900036454, "outcome": "passed"}, "call": {"duration": 0.00020105892326682806, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 75, "message": "Exception: Generic unhandled exception"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 75, "message": "Exception"}], "longrepr": "def test_unhandled_exception():\n # Raises generic unhandled Exception\n> raise Exception(\"Generic unhandled exception\")\nE Exception: Generic unhandled exception\n\ntests/test_math_utils.py:75: Exception"}, "teardown": {"duration": 0.0002812399761751294, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_custom_error", "lineno": 76, "outcome": "failed", "keywords": ["test_custom_error", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00022713805083185434, "outcome": "passed"}, "call": {"duration": 0.00019293406512588263, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 79, "message": "test_math_utils.CustomError: Custom error simulation"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 79, "message": "CustomError"}], "longrepr": "def test_custom_error():\n # Raises user-defined CustomError exception\n> raise CustomError(\"Custom error simulation\")\nE test_math_utils.CustomError: Custom error simulation\n\ntests/test_math_utils.py:79: CustomError"}, "teardown": {"duration": 0.0002473479835316539, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_stop_iteration_direct", "lineno": 80, "outcome": "failed", "keywords": ["test_stop_iteration_direct", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.000188878970220685, "outcome": "passed"}, "call": {"duration": 0.00018392200581729412, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/.pixi/envs/default/lib/python3.8/site-packages/_pytest/capture.py", "lineno": 880, "message": "RuntimeError: generator raised StopIteration"}, "traceback": [{"path": ".pixi/envs/default/lib/python3.8/site-packages/_pytest/runner.py", "lineno": 341, "message": ""}, {"path": ".pixi/envs/default/lib/python3.8/site-packages/_pytest/runner.py", "lineno": 242, "message": "in "}, {"path": ".pixi/envs/default/lib/python3.8/site-packages/pluggy/_hooks.py", "lineno": 513, "message": "in __call__"}, {"path": ".pixi/envs/default/lib/python3.8/site-packages/pluggy/_manager.py", "lineno": 120, "message": "in _hookexec"}, {"path": ".pixi/envs/default/lib/python3.8/site-packages/_pytest/threadexception.py", "lineno": 92, "message": "in pytest_runtest_call"}, {"path": ".pixi/envs/default/lib/python3.8/site-packages/_pytest/threadexception.py", "lineno": 68, "message": "in thread_exception_runtest_hook"}, {"path": ".pixi/envs/default/lib/python3.8/site-packages/_pytest/unraisableexception.py", "lineno": 95, "message": "in pytest_runtest_call"}, {"path": ".pixi/envs/default/lib/python3.8/site-packages/_pytest/unraisableexception.py", "lineno": 70, "message": "in unraisable_exception_runtest_hook"}, {"path": ".pixi/envs/default/lib/python3.8/site-packages/_pytest/logging.py", "lineno": 846, "message": "in pytest_runtest_call"}, {"path": ".pixi/envs/default/lib/python3.8/site-packages/_pytest/logging.py", "lineno": 829, "message": "in _runtest_for"}, {"path": ".pixi/envs/default/lib/python3.8/site-packages/_pytest/capture.py", "lineno": 880, "message": "RuntimeError"}], "longrepr": "def test_stop_iteration_direct():\n # Directly raise StopIteration exception\n> raise StopIteration()\nE StopIteration\n\ntests/test_math_utils.py:83: StopIteration\n\nThe above exception was the direct cause of the following exception:\n\ncls = \nfunc = . at 0x7f40b979dee0>\nwhen = 'call'\nreraise = (, )\n\n @classmethod\n def from_call(\n cls,\n func: Callable[[], TResult],\n when: Literal[\"collect\", \"setup\", \"call\", \"teardown\"],\n reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None,\n ) -> CallInfo[TResult]:\n \"\"\"Call func, wrapping the result in a CallInfo.\n \n :param func:\n The function to call. Called without arguments.\n :type func: Callable[[], _pytest.runner.TResult]\n :param when:\n The phase in which the function is called.\n :param reraise:\n Exception or exceptions that shall propagate if raised by the\n function, instead of being wrapped in the CallInfo.\n \"\"\"\n excinfo = None\n start = timing.time()\n precise_start = timing.perf_counter()\n try:\n> result: TResult | None = func()\n\n.pixi/envs/default/lib/python3.8/site-packages/_pytest/runner.py:341: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n.pixi/envs/default/lib/python3.8/site-packages/_pytest/runner.py:242: in \n lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise\n.pixi/envs/default/lib/python3.8/site-packages/pluggy/_hooks.py:513: in __call__\n return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)\n.pixi/envs/default/lib/python3.8/site-packages/pluggy/_manager.py:120: in _hookexec\n return self._inner_hookexec(hook_name, methods, kwargs, firstresult)\n.pixi/envs/default/lib/python3.8/site-packages/_pytest/threadexception.py:92: in pytest_runtest_call\n yield from thread_exception_runtest_hook()\n.pixi/envs/default/lib/python3.8/site-packages/_pytest/threadexception.py:68: in thread_exception_runtest_hook\n yield\n.pixi/envs/default/lib/python3.8/site-packages/_pytest/unraisableexception.py:95: in pytest_runtest_call\n yield from unraisable_exception_runtest_hook()\n.pixi/envs/default/lib/python3.8/site-packages/_pytest/unraisableexception.py:70: in unraisable_exception_runtest_hook\n yield\n.pixi/envs/default/lib/python3.8/site-packages/_pytest/logging.py:846: in pytest_runtest_call\n yield from self._runtest_for(item, \"call\")\n.pixi/envs/default/lib/python3.8/site-packages/_pytest/logging.py:829: in _runtest_for\n yield\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = _capture_fixture=None>\nitem = \n\n @hookimpl(wrapper=True)\n def pytest_runtest_call(self, item: Item) -> Generator[None]:\n with self.item_capture(\"call\", item):\n> return (yield)\nE RuntimeError: generator raised StopIteration\n\n.pixi/envs/default/lib/python3.8/site-packages/_pytest/capture.py:880: RuntimeError"}, "teardown": {"duration": 0.0004507380072027445, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_generator_exit_direct", "lineno": 84, "outcome": "failed", "keywords": ["test_generator_exit_direct", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.0002628790680319071, "outcome": "passed"}, "call": {"duration": 0.00023863301612436771, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 87, "message": "GeneratorExit"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 87, "message": "GeneratorExit"}], "longrepr": "def test_generator_exit_direct():\n # Directly raise GeneratorExit exception\n> raise GeneratorExit()\nE GeneratorExit\n\ntests/test_math_utils.py:87: GeneratorExit"}, "teardown": {"duration": 0.00029624998569488525, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_recursion_limit", "lineno": 88, "outcome": "failed", "keywords": ["test_recursion_limit", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.000237794010899961, "outcome": "passed"}, "call": {"duration": 0.00021343003027141094, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 92, "message": "RecursionError: cannot set the recursion limit to 50 at the recursion depth 37: the limit is too low"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 92, "message": "RecursionError"}], "longrepr": "def test_recursion_limit():\n # Lower recursion limit to force RecursionError on deep recursion\n original_limit = sys.getrecursionlimit()\n> sys.setrecursionlimit(50)\nE RecursionError: cannot set the recursion limit to 50 at the recursion depth 37: the limit is too low\n\ntests/test_math_utils.py:92: RecursionError"}, "teardown": {"duration": 0.0002961689606308937, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_malformed_code", "lineno": 99, "outcome": "failed", "keywords": ["test_malformed_code", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00021327706053853035, "outcome": "passed"}, "call": {"duration": 0.00020491599570959806, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 102, "message": " File \"\", line 1\n def bad(:\n ^\nSyntaxError: invalid syntax"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 102, "message": "SyntaxError"}], "longrepr": "def test_malformed_code():\n # SyntaxError when executing malformed Python code\n> exec(\"def bad(:\\n pass\")\nE File \"\", line 1\nE def bad(:\nE ^\nE SyntaxError: invalid syntax\n\ntests/test_math_utils.py:102: SyntaxError"}, "teardown": {"duration": 0.000250010984018445, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_sys_exit", "lineno": 103, "outcome": "failed", "keywords": ["test_sys_exit", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00020237895660102367, "outcome": "passed"}, "call": {"duration": 0.0001818749587982893, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 106, "message": "SystemExit: 1"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 106, "message": "SystemExit"}], "longrepr": "def test_sys_exit():\n # Simulate SystemExit via sys.exit\n> sys.exit(1)\nE SystemExit: 1\n\ntests/test_math_utils.py:106: SystemExit"}, "teardown": {"duration": 0.00025838008150458336, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_broken_function", "lineno": 107, "outcome": "failed", "keywords": ["test_broken_function", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00021452701184898615, "outcome": "passed"}, "call": {"duration": 0.00019851501565426588, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 111, "message": "TypeError: Broken function"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 112, "message": ""}, {"path": "tests/test_math_utils.py", "lineno": 111, "message": "TypeError"}], "longrepr": "def test_broken_function():\n # Simulate broken function raising TypeError\n def broken_func(*args, **kwargs):\n raise TypeError(\"Broken function\")\n> broken_func()\n\ntests/test_math_utils.py:112: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nargs = (), kwargs = {}\n\n def broken_func(*args, **kwargs):\n> raise TypeError(\"Broken function\")\nE TypeError: Broken function\n\ntests/test_math_utils.py:111: TypeError"}, "teardown": {"duration": 0.00035657593980431557, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_import_error_patch", "lineno": 113, "outcome": "failed", "keywords": ["test_import_error_patch", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00022080796770751476, "outcome": "passed"}, "call": {"duration": 0.00020252005197107792, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 119, "message": "ImportError: Simulated ImportError"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 124, "message": ""}, {"path": "tests/test_math_utils.py", "lineno": 119, "message": "ImportError"}], "longrepr": "def test_import_error_patch():\n # Patch import to simulate ImportError on specific module\n original_import = __import__\n def fake_import(name, *args, **kwargs):\n if name == \"fake_module\":\n raise ImportError(\"Simulated ImportError\")\n return original_import(name, *args, **kwargs)\n import builtins\n builtins.__import__, old_import = fake_import, builtins.__import__\n try:\n> __import__(\"fake_module\")\n\ntests/test_math_utils.py:124: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nname = 'fake_module', args = (), kwargs = {}\n\n def fake_import(name, *args, **kwargs):\n if name == \"fake_module\":\n> raise ImportError(\"Simulated ImportError\")\nE ImportError: Simulated ImportError\n\ntests/test_math_utils.py:119: ImportError"}, "teardown": {"duration": 0.00025629496667534113, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_module_not_found_error", "lineno": 127, "outcome": "failed", "keywords": ["test_module_not_found_error", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00020008801948279142, "outcome": "passed"}, "call": {"duration": 0.0005147069459781051, "outcome": "failed", "crash": {"path": "", "lineno": 973, "message": "ModuleNotFoundError: No module named 'non_existent_module_xyz'"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 130, "message": ""}, {"path": ".pixi/envs/default/lib/python3.8/importlib/__init__.py", "lineno": 127, "message": "in import_module"}, {"path": "", "lineno": 1014, "message": "in _gcd_import"}, {"path": "", "lineno": 991, "message": "in _find_and_load"}, {"path": "", "lineno": 973, "message": "ModuleNotFoundError"}], "longrepr": "def test_module_not_found_error():\n # Raises ModuleNotFoundError (subclass of ImportError) for missing module\n> importlib.import_module(\"non_existent_module_xyz\")\n\ntests/test_math_utils.py:130: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n.pixi/envs/default/lib/python3.8/importlib/__init__.py:127: in import_module\n return _bootstrap._gcd_import(name[level:], package, level)\n:1014: in _gcd_import\n ???\n:991: in _find_and_load\n ???\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nname = 'non_existent_module_xyz'\nimport_ = \n\n> ???\nE ModuleNotFoundError: No module named 'non_existent_module_xyz'\n\n:973: ModuleNotFoundError"}, "teardown": {"duration": 0.0003877899143844843, "outcome": "passed"}}, {"nodeid": "tests/test_string_utils.py::test_uppercase_normal", "lineno": 7, "outcome": "passed", "keywords": ["test_uppercase_normal", "test_string_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00025635503698140383, "outcome": "passed"}, "call": {"duration": 0.00025826902128756046, "outcome": "passed"}, "teardown": {"duration": 0.00024218298494815826, "outcome": "passed"}}, {"nodeid": "tests/test_string_utils.py::test_uppercase_type_error", "lineno": 11, "outcome": "passed", "keywords": ["test_uppercase_type_error", "test_string_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00019637204241007566, "outcome": "passed"}, "call": {"duration": 0.00021720095537602901, "outcome": "passed"}, "teardown": {"duration": 0.0002172030508518219, "outcome": "passed"}}, {"nodeid": "tests/test_string_utils.py::test_reverse_string", "lineno": 16, "outcome": "passed", "keywords": ["test_reverse_string", "test_string_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00018205505330115557, "outcome": "passed"}, "call": {"duration": 0.00015825103037059307, "outcome": "passed"}, "teardown": {"duration": 0.00018732796888798475, "outcome": "passed"}}, {"nodeid": "tests/test_string_utils.py::test_warning_emit", "lineno": 20, "outcome": "passed", "keywords": ["test_warning_emit", "test_string_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00018413003999739885, "outcome": "passed"}, "call": {"duration": 0.0002453499473631382, "outcome": "passed"}, "teardown": {"duration": 0.0002736279275268316, "outcome": "passed"}}, {"nodeid": "tests/test_string_utils.py::test_unicode_encode_error", "lineno": 24, "outcome": "failed", "keywords": ["test_unicode_encode_error", "test_string_utils.py", "tests", "slic", ""], "setup": {"duration": 0.0002631999086588621, "outcome": "passed"}, "call": {"duration": 0.0003360230475664139, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_string_utils.py", "lineno": 28, "message": "Failed: DID NOT RAISE "}, "traceback": [{"path": "tests/test_string_utils.py", "lineno": 28, "message": "Failed"}], "longrepr": "def test_unicode_encode_error():\n # UnicodeEncodeError due to decoding malformed surrogate byte\n with pytest.raises(UnicodeEncodeError):\n> b'\\udc80'.decode('utf-8')\nE Failed: DID NOT RAISE \n\ntests/test_string_utils.py:28: Failed"}, "teardown": {"duration": 0.00032843498047441244, "outcome": "passed"}}, {"nodeid": "tests/test_string_utils.py::test_unicode_decode_error", "lineno": 29, "outcome": "passed", "keywords": ["test_unicode_decode_error", "test_string_utils.py", "tests", "slic", ""], "setup": {"duration": 0.0002651310060173273, "outcome": "passed"}, "call": {"duration": 0.0002753280568867922, "outcome": "passed"}, "teardown": {"duration": 0.00028371193911880255, "outcome": "passed"}}, {"nodeid": "tests/test_string_utils.py::test_unicode_decode_surrogateescape", "lineno": 34, "outcome": "passed", "keywords": ["test_unicode_decode_surrogateescape", "test_string_utils.py", "tests", "slic", ""], "setup": {"duration": 0.0002471769694238901, "outcome": "passed"}, "call": {"duration": 0.0002535879611968994, "outcome": "passed"}, "teardown": {"duration": 0.00028260506223887205, "outcome": "passed"}}, {"nodeid": "tests/test_string_utils.py::test_import_warning", "lineno": 39, "outcome": "passed", "keywords": ["test_import_warning", "test_string_utils.py", "tests", "slic", ""], "setup": {"duration": 0.0002479800023138523, "outcome": "passed"}, "call": {"duration": 0.00025002099573612213, "outcome": "passed"}, "teardown": {"duration": 0.00026843510568141937, "outcome": "passed"}}, {"nodeid": "tests/test_string_utils.py::test_xfail_uppercase_digits", "lineno": 46, "outcome": "xfailed", "keywords": ["test_xfail_uppercase_digits", "xfail", "pytestmark", "test_string_utils.py", "tests", "slic", ""], "setup": {"duration": 0.0002453170018270612, "outcome": "passed"}, "call": {"duration": 0.0009294128976762295, "outcome": "skipped", "crash": {"path": "/workspace/tligui_y/slic/tests/test_string_utils.py", "lineno": 50, "message": "AssertionError: assert 'ABC123' == 'ABC1234'\n \n - ABC1234\n ? -\n + ABC123"}, "traceback": [{"path": "tests/test_string_utils.py", "lineno": 50, "message": "AssertionError"}], "longrepr": "@pytest.mark.xfail(reason=\"Expected failure: uppercase does not handle digits\")\n def test_xfail_uppercase_digits():\n # Expected fail test because uppercase won't change digits\n> assert uppercase(\"abc123\") == \"ABC1234\"\nE AssertionError: assert 'ABC123' == 'ABC1234'\nE \nE - ABC1234\nE ? -\nE + ABC123\n\ntests/test_string_utils.py:50: AssertionError"}, "teardown": {"duration": 0.0003524509957060218, "outcome": "passed"}}, {"nodeid": "tests/test_string_utils.py::test_keyboard_interrupt_direct", "lineno": 51, "outcome": "passed", "keywords": ["test_keyboard_interrupt_direct", "test_string_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00021379196550697088, "outcome": "passed"}}], "warnings": [{"message": "invalid escape sequence \\u", "category": "DeprecationWarning", "when": "collect", "filename": "/workspace/tligui_y/slic/tests/test_string_utils.py", "lineno": 28}, {"message": "Test warning", "category": "UserWarning", "when": "runtest", "filename": "/workspace/tligui_y/slic/tests/test_string_utils.py", "lineno": 23}]} \ No newline at end of file +{"created": 1752569413.558644, "duration": 0.7573399543762207, "exitcode": 2, "root": "/workspace/tligui_y/slic", "environment": {}, "summary": {"passed": 12, "failed": 30, "xfailed": 2, "total": 44, "collected": 44}, "collectors": [{"nodeid": "", "outcome": "passed", "result": [{"nodeid": ".", "type": "Dir"}]}, {"nodeid": "allure-results", "outcome": "passed", "result": []}, {"nodeid": "ci-reports/allure", "outcome": "passed", "result": []}, {"nodeid": "ci-reports/coverage", "outcome": "passed", "result": []}, {"nodeid": "ci-reports/markdown", "outcome": "passed", "result": []}, {"nodeid": "ci-reports", "outcome": "passed", "result": [{"nodeid": "ci-reports/allure", "type": "Dir"}, {"nodeid": "ci-reports/coverage", "type": "Dir"}, {"nodeid": "ci-reports/markdown", "type": "Dir"}]}, {"nodeid": "functions", "outcome": "passed", "result": []}, {"nodeid": "tests/test_broken_fct.py", "outcome": "failed", "result": [], "longrepr": ".pixi/envs/default/lib/python3.8/site-packages/_pytest/python.py:493: in importtestmodule\n mod = import_path(\n.pixi/envs/default/lib/python3.8/site-packages/_pytest/pathlib.py:587: in import_path\n importlib.import_module(module_name)\n.pixi/envs/default/lib/python3.8/importlib/__init__.py:127: in import_module\n return _bootstrap._gcd_import(name[level:], package, level)\n:1014: in _gcd_import\n ???\n:991: in _find_and_load\n ???\n:975: in _find_and_load_unlocked\n ???\n:671: in _load_unlocked\n ???\n.pixi/envs/default/lib/python3.8/site-packages/_pytest/assertion/rewrite.py:175: in exec_module\n source_stat, co = _rewrite_test(fn, self.config)\n.pixi/envs/default/lib/python3.8/site-packages/_pytest/assertion/rewrite.py:355: in _rewrite_test\n tree = ast.parse(source, filename=strfn)\n.pixi/envs/default/lib/python3.8/ast.py:47: in parse\n return compile(source, filename, mode, flags,\nE File \"/workspace/tligui_y/slic/tests/test_broken_fct.py\", line 8\nE def test_valid_2():\nE ^\nE SyntaxError: invalid syntax"}, {"nodeid": "tests/test_collector_error.py", "outcome": "failed", "result": [], "longrepr": "ImportError while importing test module '/workspace/tligui_y/slic/tests/test_collector_error.py'.\nHint: make sure your test modules/packages have valid Python names.\nTraceback:\n.pixi/envs/default/lib/python3.8/importlib/__init__.py:127: in import_module\n return _bootstrap._gcd_import(name[level:], package, level)\ntests/test_collector_error.py:1: in \n from no_existing_module.math_utils import *\nE ModuleNotFoundError: No module named 'no_existing_module'"}, {"nodeid": "tests/test_io_utils.py", "outcome": "passed", "result": [{"nodeid": "tests/test_io_utils.py::test_read_file", "type": "Function", "lineno": 9}, {"nodeid": "tests/test_io_utils.py::test_write_file", "type": "Function", "lineno": 16}, {"nodeid": "tests/test_io_utils.py::test_cause_io_error", "type": "Function", "lineno": 22}, {"nodeid": "tests/test_io_utils.py::test_file_not_found", "type": "Function", "lineno": 26}, {"nodeid": "tests/test_io_utils.py::test_permission_error", "type": "Function", "lineno": 30}, {"nodeid": "tests/test_io_utils.py::test_mock_open_error", "type": "Function", "lineno": 37}, {"nodeid": "tests/test_io_utils.py::test_file_handle_closed_error", "type": "Function", "lineno": 45}, {"nodeid": "tests/test_io_utils.py::test_os_error", "type": "Function", "lineno": 51}, {"nodeid": "tests/test_io_utils.py::test_write_file_readonly", "type": "Function", "lineno": 58}, {"nodeid": "tests/test_io_utils.py::test_file_not_found_error", "type": "Function", "lineno": 66}]}, {"nodeid": "tests/test_math_utils.py", "outcome": "passed", "result": [{"nodeid": "tests/test_math_utils.py::test_broken", "type": "Function", "lineno": 13}, {"nodeid": "tests/test_math_utils.py::test_call_missing_function", "type": "Function", "lineno": 17}, {"nodeid": "tests/test_math_utils.py::test_addition_pass", "type": "Function", "lineno": 21}, {"nodeid": "tests/test_math_utils.py::test_addition_fail", "type": "Function", "lineno": 25}, {"nodeid": "tests/test_math_utils.py::test_division_zero", "type": "Function", "lineno": 29}, {"nodeid": "tests/test_math_utils.py::test_multiply_xfail", "type": "Function", "lineno": 33}, {"nodeid": "tests/test_math_utils.py::test_runtime_error", "type": "Function", "lineno": 38}, {"nodeid": "tests/test_math_utils.py::test_memory_error", "type": "Function", "lineno": 42}, {"nodeid": "tests/test_math_utils.py::test_timeout_error", "type": "Function", "lineno": 46}, {"nodeid": "tests/test_math_utils.py::test_recursion_error", "type": "Function", "lineno": 50}, {"nodeid": "tests/test_math_utils.py::test_floating_point_error", "type": "Function", "lineno": 56}, {"nodeid": "tests/test_math_utils.py::test_floating_point_overflow", "type": "Function", "lineno": 60}, {"nodeid": "tests/test_math_utils.py::test_value_error", "type": "Function", "lineno": 64}, {"nodeid": "tests/test_math_utils.py::test_type_error", "type": "Function", "lineno": 68}, {"nodeid": "tests/test_math_utils.py::test_unhandled_exception", "type": "Function", "lineno": 72}, {"nodeid": "tests/test_math_utils.py::test_custom_error", "type": "Function", "lineno": 76}, {"nodeid": "tests/test_math_utils.py::test_stop_iteration_direct", "type": "Function", "lineno": 80}, {"nodeid": "tests/test_math_utils.py::test_generator_exit_direct", "type": "Function", "lineno": 84}, {"nodeid": "tests/test_math_utils.py::test_recursion_limit", "type": "Function", "lineno": 88}, {"nodeid": "tests/test_math_utils.py::test_malformed_code", "type": "Function", "lineno": 99}, {"nodeid": "tests/test_math_utils.py::test_sys_exit", "type": "Function", "lineno": 103}, {"nodeid": "tests/test_math_utils.py::test_broken_function", "type": "Function", "lineno": 107}, {"nodeid": "tests/test_math_utils.py::test_import_error_patch", "type": "Function", "lineno": 113}, {"nodeid": "tests/test_math_utils.py::test_module_not_found_error", "type": "Function", "lineno": 127}]}, {"nodeid": "tests/test_string_utils.py", "outcome": "passed", "result": [{"nodeid": "tests/test_string_utils.py::test_uppercase_normal", "type": "Function", "lineno": 7}, {"nodeid": "tests/test_string_utils.py::test_uppercase_type_error", "type": "Function", "lineno": 11}, {"nodeid": "tests/test_string_utils.py::test_reverse_string", "type": "Function", "lineno": 16}, {"nodeid": "tests/test_string_utils.py::test_warning_emit", "type": "Function", "lineno": 20}, {"nodeid": "tests/test_string_utils.py::test_unicode_encode_error", "type": "Function", "lineno": 24}, {"nodeid": "tests/test_string_utils.py::test_unicode_decode_error", "type": "Function", "lineno": 29}, {"nodeid": "tests/test_string_utils.py::test_unicode_decode_surrogateescape", "type": "Function", "lineno": 34}, {"nodeid": "tests/test_string_utils.py::test_import_warning", "type": "Function", "lineno": 39}, {"nodeid": "tests/test_string_utils.py::test_xfail_uppercase_digits", "type": "Function", "lineno": 46}, {"nodeid": "tests/test_string_utils.py::test_keyboard_interrupt_direct", "type": "Function", "lineno": 51}]}, {"nodeid": "tests", "outcome": "passed", "result": [{"nodeid": "tests/test_broken_fct.py", "type": "Module"}, {"nodeid": "tests/test_collector_error.py", "type": "Module"}, {"nodeid": "tests/test_io_utils.py", "type": "Module"}, {"nodeid": "tests/test_math_utils.py", "type": "Module"}, {"nodeid": "tests/test_string_utils.py", "type": "Module"}]}, {"nodeid": ".", "outcome": "passed", "result": [{"nodeid": "allure-results", "type": "Dir"}, {"nodeid": "ci-reports", "type": "Dir"}, {"nodeid": "functions", "type": "Package"}, {"nodeid": "tests", "type": "Dir"}]}], "tests": [{"nodeid": "tests/test_io_utils.py::test_read_file", "lineno": 9, "outcome": "passed", "keywords": ["test_read_file", "test_io_utils.py", "tests", "slic", ""], "setup": {"duration": 0.0043855319963768125, "outcome": "passed"}, "call": {"duration": 0.000539749045856297, "outcome": "passed"}, "teardown": {"duration": 0.001415211008861661, "outcome": "passed"}}, {"nodeid": "tests/test_io_utils.py::test_write_file", "lineno": 16, "outcome": "passed", "keywords": ["test_write_file", "test_io_utils.py", "tests", "slic", ""], "setup": {"duration": 0.0007300160359591246, "outcome": "passed"}, "call": {"duration": 0.0003360050031915307, "outcome": "passed"}, "teardown": {"duration": 0.0006832870421931148, "outcome": "passed"}}, {"nodeid": "tests/test_io_utils.py::test_cause_io_error", "lineno": 22, "outcome": "failed", "keywords": ["test_cause_io_error", "test_io_utils.py", "tests", "slic", ""], "setup": {"duration": 0.0001893279841169715, "outcome": "passed"}, "call": {"duration": 0.00022524595260620117, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/functions/io_utils.py", "lineno": 10, "message": "OSError: Forced IO Error for testing"}, "traceback": [{"path": "tests/test_io_utils.py", "lineno": 25, "message": ""}, {"path": "functions/io_utils.py", "lineno": 10, "message": "OSError"}], "longrepr": "def test_cause_io_error():\n # Raises manual IOError to simulate IO failure\n> cause_io_error()\n\ntests/test_io_utils.py:25: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\n def cause_io_error():\n> raise IOError(\"Forced IO Error for testing\")\nE OSError: Forced IO Error for testing\n\nfunctions/io_utils.py:10: OSError"}, "teardown": {"duration": 0.00025832001119852066, "outcome": "passed"}}, {"nodeid": "tests/test_io_utils.py::test_file_not_found", "lineno": 26, "outcome": "failed", "keywords": ["test_file_not_found", "test_io_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00021241605281829834, "outcome": "passed"}, "call": {"duration": 0.00020681601017713547, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/functions/io_utils.py", "lineno": 2, "message": "FileNotFoundError: [Errno 2] No such file or directory: 'nonexistent.file'"}, "traceback": [{"path": "tests/test_io_utils.py", "lineno": 29, "message": ""}, {"path": "functions/io_utils.py", "lineno": 2, "message": "FileNotFoundError"}], "longrepr": "def test_file_not_found():\n # Reading non-existing file raises FileNotFoundError\n> read_file(\"nonexistent.file\")\n\ntests/test_io_utils.py:29: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\npath = 'nonexistent.file'\n\n def read_file(path):\n> with open(path, \"r\", encoding=\"utf-8\") as f:\nE FileNotFoundError: [Errno 2] No such file or directory: 'nonexistent.file'\n\nfunctions/io_utils.py:2: FileNotFoundError"}, "teardown": {"duration": 0.00024481897708028555, "outcome": "passed"}}, {"nodeid": "tests/test_io_utils.py::test_permission_error", "lineno": 30, "outcome": "failed", "keywords": ["test_permission_error", "test_io_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00040535000152885914, "outcome": "passed"}, "call": {"duration": 0.00022902502678334713, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_io_utils.py", "lineno": 34, "message": "PermissionError: Permission denied"}, "traceback": [{"path": "tests/test_io_utils.py", "lineno": 36, "message": ""}, {"path": "functions/io_utils.py", "lineno": 2, "message": "in read_file"}, {"path": "tests/test_io_utils.py", "lineno": 34, "message": "PermissionError"}], "longrepr": "monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f7da58a7ca0>\n\n def test_permission_error(monkeypatch):\n # Patch open to raise PermissionError simulating access denial\n def raise_perm_error(*args, **kwargs):\n raise PermissionError(\"Permission denied\")\n monkeypatch.setattr(\"builtins.open\", raise_perm_error)\n> read_file(\"anyfile.txt\")\n\ntests/test_io_utils.py:36: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \nfunctions/io_utils.py:2: in read_file\n with open(path, \"r\", encoding=\"utf-8\") as f:\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nargs = ('anyfile.txt', 'r'), kwargs = {'encoding': 'utf-8'}\n\n def raise_perm_error(*args, **kwargs):\n> raise PermissionError(\"Permission denied\")\nE PermissionError: Permission denied\n\ntests/test_io_utils.py:34: PermissionError"}, "teardown": {"duration": 0.0007426730589941144, "outcome": "passed"}}, {"nodeid": "tests/test_io_utils.py::test_mock_open_error", "lineno": 37, "outcome": "failed", "keywords": ["test_mock_open_error", "test_io_utils.py", "tests", "slic", ""], "setup": {"duration": 0.0003960659960284829, "outcome": "passed"}, "call": {"duration": 0.0034328120527788997, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/.pixi/envs/default/lib/python3.8/unittest/mock.py", "lineno": 1140, "message": "OSError: Mocked IOError"}, "traceback": [{"path": "tests/test_io_utils.py", "lineno": 43, "message": ""}, {"path": ".pixi/envs/default/lib/python3.8/unittest/mock.py", "lineno": 1081, "message": "in __call__"}, {"path": ".pixi/envs/default/lib/python3.8/unittest/mock.py", "lineno": 1085, "message": "in _mock_call"}, {"path": ".pixi/envs/default/lib/python3.8/unittest/mock.py", "lineno": 1140, "message": "OSError"}], "longrepr": "monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f7da1652640>\n\n def test_mock_open_error(monkeypatch):\n # Mock open() to raise IOError simulating read error\n mocked_open = mock.mock_open()\n mocked_open.side_effect = IOError(\"Mocked IOError\")\n monkeypatch.setattr(\"builtins.open\", mocked_open)\n> with open(\"file.txt\", \"r\") as f:\n\ntests/test_io_utils.py:43: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n.pixi/envs/default/lib/python3.8/unittest/mock.py:1081: in __call__\n return self._mock_call(*args, **kwargs)\n.pixi/envs/default/lib/python3.8/unittest/mock.py:1085: in _mock_call\n return self._execute_mock_call(*args, **kwargs)\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \nargs = ('file.txt', 'r'), kwargs = {}, effect = OSError('Mocked IOError')\n\n def _execute_mock_call(self, /, *args, **kwargs):\n # separate from _increment_mock_call so that awaited functions are\n # executed separately from their call, also AsyncMock overrides this method\n \n effect = self.side_effect\n if effect is not None:\n if _is_exception(effect):\n> raise effect\nE OSError: Mocked IOError\n\n.pixi/envs/default/lib/python3.8/unittest/mock.py:1140: OSError"}, "teardown": {"duration": 0.0012219928903505206, "outcome": "passed"}}, {"nodeid": "tests/test_io_utils.py::test_file_handle_closed_error", "lineno": 45, "outcome": "failed", "keywords": ["test_file_handle_closed_error", "test_io_utils.py", "tests", "slic", ""], "setup": {"duration": 0.0002552990335971117, "outcome": "passed"}, "call": {"duration": 0.00022621604148298502, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_io_utils.py", "lineno": 50, "message": "ValueError: I/O operation on closed file"}, "traceback": [{"path": "tests/test_io_utils.py", "lineno": 50, "message": "ValueError"}], "longrepr": "def test_file_handle_closed_error():\n # Accessing closed file raises ValueError\n f = io.StringIO(\"content\")\n f.close()\n> f.read()\nE ValueError: I/O operation on closed file\n\ntests/test_io_utils.py:50: ValueError"}, "teardown": {"duration": 0.00027998501900583506, "outcome": "passed"}}, {"nodeid": "tests/test_io_utils.py::test_os_error", "lineno": 51, "outcome": "failed", "keywords": ["test_os_error", "test_io_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00045433000195771456, "outcome": "passed"}, "call": {"duration": 0.0002213480183854699, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_io_utils.py", "lineno": 55, "message": "OSError: Simulated OSError"}, "traceback": [{"path": "tests/test_io_utils.py", "lineno": 57, "message": ""}, {"path": "tests/test_io_utils.py", "lineno": 55, "message": "OSError"}], "longrepr": "monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f7da1a8fe80>\n\n def test_os_error(monkeypatch):\n # Patch os.remove to raise OSError simulating filesystem error\n def raise_os_error(path):\n raise OSError(\"Simulated OSError\")\n monkeypatch.setattr(\"os.remove\", raise_os_error)\n> os.remove(\"file.txt\")\n\ntests/test_io_utils.py:57: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\npath = 'file.txt'\n\n def raise_os_error(path):\n> raise OSError(\"Simulated OSError\")\nE OSError: Simulated OSError\n\ntests/test_io_utils.py:55: OSError"}, "teardown": {"duration": 0.0008250819519162178, "outcome": "passed"}}, {"nodeid": "tests/test_io_utils.py::test_write_file_readonly", "lineno": 58, "outcome": "passed", "keywords": ["test_write_file_readonly", "test_io_utils.py", "tests", "slic", ""], "setup": {"duration": 0.0007971250452101231, "outcome": "passed"}, "call": {"duration": 0.0009200080530717969, "outcome": "passed"}, "teardown": {"duration": 0.0007057141046971083, "outcome": "passed"}}, {"nodeid": "tests/test_io_utils.py::test_file_not_found_error", "lineno": 66, "outcome": "failed", "keywords": ["test_file_not_found_error", "test_io_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00018280907534062862, "outcome": "passed"}, "call": {"duration": 0.00019036000594496727, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_io_utils.py", "lineno": 69, "message": "FileNotFoundError: [Errno 2] No such file or directory: 'no_such_file.txt'"}, "traceback": [{"path": "tests/test_io_utils.py", "lineno": 69, "message": "FileNotFoundError"}], "longrepr": "def test_file_not_found_error():\n # Raises FileNotFoundError when opening a non-existent file\n> open(\"no_such_file.txt\", \"r\")\nE FileNotFoundError: [Errno 2] No such file or directory: 'no_such_file.txt'\n\ntests/test_io_utils.py:69: FileNotFoundError"}, "teardown": {"duration": 0.0002447690349072218, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_broken", "lineno": 13, "outcome": "failed", "keywords": ["test_broken", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00019159598741680384, "outcome": "passed"}, "call": {"duration": 0.00018041906878352165, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 16, "message": "NameError: name 'want_the_test_to_fail' is not defined"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 16, "message": "NameError"}], "longrepr": "def test_broken():\n # simulating a broken or faulty test implementation that will cause the test to error\n> want_the_test_to_fail\nE NameError: name 'want_the_test_to_fail' is not defined\n\ntests/test_math_utils.py:16: NameError"}, "teardown": {"duration": 0.0002444880083203316, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_call_missing_function", "lineno": 17, "outcome": "failed", "keywords": ["test_call_missing_function", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00018335995264351368, "outcome": "passed"}, "call": {"duration": 0.00018708105199038982, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 20, "message": "AttributeError: module 'functions.math_utils' has no attribute 'non_existent_function'"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 20, "message": "AttributeError"}], "longrepr": "def test_call_missing_function():\n # Accessing a missing function attribute raises AttributeError\n> getattr(math_utils, \"non_existent_function\")()\nE AttributeError: module 'functions.math_utils' has no attribute 'non_existent_function'\n\ntests/test_math_utils.py:20: AttributeError"}, "teardown": {"duration": 0.00024239695630967617, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_addition_pass", "lineno": 21, "outcome": "passed", "keywords": ["test_addition_pass", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00019478192552924156, "outcome": "passed"}, "call": {"duration": 0.00016341207083314657, "outcome": "passed"}, "teardown": {"duration": 0.00019979896023869514, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_addition_fail", "lineno": 25, "outcome": "failed", "keywords": ["test_addition_fail", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.000180552015081048, "outcome": "passed"}, "call": {"duration": 0.0004948279820382595, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 28, "message": "assert 4 == 5\n + where 4 = addition(2, 2)"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 28, "message": "AssertionError"}], "longrepr": "def test_addition_fail():\n # Assertion failure: expected incorrect result\n> assert addition(2, 2) == 5\nE assert 4 == 5\nE + where 4 = addition(2, 2)\n\ntests/test_math_utils.py:28: AssertionError"}, "teardown": {"duration": 0.0002398919314146042, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_division_zero", "lineno": 29, "outcome": "failed", "keywords": ["test_division_zero", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00018539698794484138, "outcome": "passed"}, "call": {"duration": 0.00018168194219470024, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/functions/math_utils.py", "lineno": 5, "message": "ZeroDivisionError: division by zero"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 32, "message": ""}, {"path": "functions/math_utils.py", "lineno": 5, "message": "ZeroDivisionError"}], "longrepr": "def test_division_zero():\n # Will raise ZeroDivisionError if not handled in division\n> division(1, 0)\n\ntests/test_math_utils.py:32: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\na = 1, b = 0\n\n def division(a, b):\n> return a / b\nE ZeroDivisionError: division by zero\n\nfunctions/math_utils.py:5: ZeroDivisionError"}, "teardown": {"duration": 0.0002413209294900298, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_multiply_xfail", "lineno": 33, "outcome": "xfailed", "keywords": ["test_multiply_xfail", "xfail", "pytestmark", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.0002115069655701518, "outcome": "passed"}, "call": {"duration": 0.00031081901397556067, "outcome": "skipped", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 37, "message": "assert 4 == 5\n + where 4 = multiply(2, 2)"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 37, "message": "AssertionError"}], "longrepr": "@pytest.mark.xfail(reason=\"Expected failure\")\n def test_multiply_xfail():\n # Expected fail test (xfail): incorrect expected multiply result\n> assert multiply(2, 2) == 5\nE assert 4 == 5\nE + where 4 = multiply(2, 2)\n\ntests/test_math_utils.py:37: AssertionError"}, "teardown": {"duration": 0.00026562693528831005, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_runtime_error", "lineno": 38, "outcome": "failed", "keywords": ["test_runtime_error", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.000191122991964221, "outcome": "passed"}, "call": {"duration": 0.0001831279369071126, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 41, "message": "RuntimeError: Forced runtime error"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 41, "message": "RuntimeError"}], "longrepr": "def test_runtime_error():\n # Test raises an uncaught RuntimeError\n> raise RuntimeError(\"Forced runtime error\")\nE RuntimeError: Forced runtime error\n\ntests/test_math_utils.py:41: RuntimeError"}, "teardown": {"duration": 0.0002477150410413742, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_memory_error", "lineno": 42, "outcome": "failed", "keywords": ["test_memory_error", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.0001944579416885972, "outcome": "passed"}, "call": {"duration": 0.00017791707068681717, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 45, "message": "MemoryError: Simulated memory error"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 45, "message": "MemoryError"}], "longrepr": "def test_memory_error():\n # Manually raise MemoryError to simulate out-of-memory condition\n> raise MemoryError(\"Simulated memory error\")\nE MemoryError: Simulated memory error\n\ntests/test_math_utils.py:45: MemoryError"}, "teardown": {"duration": 0.00024395203217864037, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_timeout_error", "lineno": 46, "outcome": "failed", "keywords": ["test_timeout_error", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00018884497694671154, "outcome": "passed"}, "call": {"duration": 0.0001766369678080082, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 49, "message": "TimeoutError: Simulated timeout error"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 49, "message": "TimeoutError"}], "longrepr": "def test_timeout_error():\n # Manually raise TimeoutError simulating timeout conditions\n> raise TimeoutError(\"Simulated timeout error\")\nE TimeoutError: Simulated timeout error\n\ntests/test_math_utils.py:49: TimeoutError"}, "teardown": {"duration": 0.00024318101350218058, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_recursion_error", "lineno": 50, "outcome": "failed", "keywords": ["test_recursion_error", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00018824206199496984, "outcome": "passed"}, "call": {"duration": 0.0013764239847660065, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 54, "message": "RecursionError: maximum recursion depth exceeded"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 55, "message": ""}, {"path": "tests/test_math_utils.py", "lineno": 54, "message": "in recursive"}, {"path": "tests/test_math_utils.py", "lineno": 54, "message": "in recursive"}], "longrepr": "def test_recursion_error():\n # Infinite recursion triggers RecursionError\n def recursive():\n return recursive()\n> recursive()\n\ntests/test_math_utils.py:55: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_math_utils.py:54: in recursive\n return recursive()\ntests/test_math_utils.py:54: in recursive\n return recursive()\nE RecursionError: maximum recursion depth exceeded\n!!! Recursion detected (same locals & position)"}, "teardown": {"duration": 0.0003495289711281657, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_floating_point_error", "lineno": 56, "outcome": "failed", "keywords": ["test_floating_point_error", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00023024308029562235, "outcome": "passed"}, "call": {"duration": 0.00019236805383116007, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 59, "message": "FloatingPointError: Simulated floating point error"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 59, "message": "FloatingPointError"}], "longrepr": "def test_floating_point_error():\n # Manually raise FloatingPointError (rare in practice)\n> raise FloatingPointError(\"Simulated floating point error\")\nE FloatingPointError: Simulated floating point error\n\ntests/test_math_utils.py:59: FloatingPointError"}, "teardown": {"duration": 0.000290917931124568, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_floating_point_overflow", "lineno": 60, "outcome": "failed", "keywords": ["test_floating_point_overflow", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00020970997866243124, "outcome": "passed"}, "call": {"duration": 0.00020732800476253033, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 63, "message": "OverflowError: math range error"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 63, "message": "OverflowError"}], "longrepr": "def test_floating_point_overflow():\n # Exponential overflow triggers OverflowError\n> math.exp(1000)\nE OverflowError: math range error\n\ntests/test_math_utils.py:63: OverflowError"}, "teardown": {"duration": 0.0002589969662949443, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_value_error", "lineno": 64, "outcome": "failed", "keywords": ["test_value_error", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00020340795163065195, "outcome": "passed"}, "call": {"duration": 0.00020959798712283373, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 67, "message": "ValueError: invalid literal for int() with base 10: 'invalid'"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 67, "message": "ValueError"}], "longrepr": "def test_value_error():\n # ValueError on invalid integer conversion\n> int(\"invalid\")\nE ValueError: invalid literal for int() with base 10: 'invalid'\n\ntests/test_math_utils.py:67: ValueError"}, "teardown": {"duration": 0.0002777960617095232, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_type_error", "lineno": 68, "outcome": "failed", "keywords": ["test_type_error", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.0002128899795934558, "outcome": "passed"}, "call": {"duration": 0.00018349604215472937, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 71, "message": "TypeError: 'int' object is not iterable"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 71, "message": "TypeError"}], "longrepr": "def test_type_error():\n # TypeError when passing wrong argument type to sum\n> sum(5)\nE TypeError: 'int' object is not iterable\n\ntests/test_math_utils.py:71: TypeError"}, "teardown": {"duration": 0.0002446259604766965, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_unhandled_exception", "lineno": 72, "outcome": "failed", "keywords": ["test_unhandled_exception", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00019332999363541603, "outcome": "passed"}, "call": {"duration": 0.00017953093629330397, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 75, "message": "Exception: Generic unhandled exception"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 75, "message": "Exception"}], "longrepr": "def test_unhandled_exception():\n # Raises generic unhandled Exception\n> raise Exception(\"Generic unhandled exception\")\nE Exception: Generic unhandled exception\n\ntests/test_math_utils.py:75: Exception"}, "teardown": {"duration": 0.0002814620966091752, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_custom_error", "lineno": 76, "outcome": "failed", "keywords": ["test_custom_error", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.0002144710160791874, "outcome": "passed"}, "call": {"duration": 0.00018772203475236893, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 79, "message": "test_math_utils.CustomError: Custom error simulation"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 79, "message": "CustomError"}], "longrepr": "def test_custom_error():\n # Raises user-defined CustomError exception\n> raise CustomError(\"Custom error simulation\")\nE test_math_utils.CustomError: Custom error simulation\n\ntests/test_math_utils.py:79: CustomError"}, "teardown": {"duration": 0.0002724119694903493, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_stop_iteration_direct", "lineno": 80, "outcome": "failed", "keywords": ["test_stop_iteration_direct", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00022197002544999123, "outcome": "passed"}, "call": {"duration": 0.00018884404562413692, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/.pixi/envs/default/lib/python3.8/site-packages/_pytest/capture.py", "lineno": 880, "message": "RuntimeError: generator raised StopIteration"}, "traceback": [{"path": ".pixi/envs/default/lib/python3.8/site-packages/_pytest/runner.py", "lineno": 341, "message": ""}, {"path": ".pixi/envs/default/lib/python3.8/site-packages/_pytest/runner.py", "lineno": 242, "message": "in "}, {"path": ".pixi/envs/default/lib/python3.8/site-packages/pluggy/_hooks.py", "lineno": 513, "message": "in __call__"}, {"path": ".pixi/envs/default/lib/python3.8/site-packages/pluggy/_manager.py", "lineno": 120, "message": "in _hookexec"}, {"path": ".pixi/envs/default/lib/python3.8/site-packages/_pytest/threadexception.py", "lineno": 92, "message": "in pytest_runtest_call"}, {"path": ".pixi/envs/default/lib/python3.8/site-packages/_pytest/threadexception.py", "lineno": 68, "message": "in thread_exception_runtest_hook"}, {"path": ".pixi/envs/default/lib/python3.8/site-packages/_pytest/unraisableexception.py", "lineno": 95, "message": "in pytest_runtest_call"}, {"path": ".pixi/envs/default/lib/python3.8/site-packages/_pytest/unraisableexception.py", "lineno": 70, "message": "in unraisable_exception_runtest_hook"}, {"path": ".pixi/envs/default/lib/python3.8/site-packages/_pytest/logging.py", "lineno": 846, "message": "in pytest_runtest_call"}, {"path": ".pixi/envs/default/lib/python3.8/site-packages/_pytest/logging.py", "lineno": 829, "message": "in _runtest_for"}, {"path": ".pixi/envs/default/lib/python3.8/site-packages/_pytest/capture.py", "lineno": 880, "message": "RuntimeError"}], "longrepr": "def test_stop_iteration_direct():\n # Directly raise StopIteration exception\n> raise StopIteration()\nE StopIteration\n\ntests/test_math_utils.py:83: StopIteration\n\nThe above exception was the direct cause of the following exception:\n\ncls = \nfunc = . at 0x7f7da429ca60>\nwhen = 'call'\nreraise = (, )\n\n @classmethod\n def from_call(\n cls,\n func: Callable[[], TResult],\n when: Literal[\"collect\", \"setup\", \"call\", \"teardown\"],\n reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None,\n ) -> CallInfo[TResult]:\n \"\"\"Call func, wrapping the result in a CallInfo.\n \n :param func:\n The function to call. Called without arguments.\n :type func: Callable[[], _pytest.runner.TResult]\n :param when:\n The phase in which the function is called.\n :param reraise:\n Exception or exceptions that shall propagate if raised by the\n function, instead of being wrapped in the CallInfo.\n \"\"\"\n excinfo = None\n start = timing.time()\n precise_start = timing.perf_counter()\n try:\n> result: TResult | None = func()\n\n.pixi/envs/default/lib/python3.8/site-packages/_pytest/runner.py:341: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n.pixi/envs/default/lib/python3.8/site-packages/_pytest/runner.py:242: in \n lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise\n.pixi/envs/default/lib/python3.8/site-packages/pluggy/_hooks.py:513: in __call__\n return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)\n.pixi/envs/default/lib/python3.8/site-packages/pluggy/_manager.py:120: in _hookexec\n return self._inner_hookexec(hook_name, methods, kwargs, firstresult)\n.pixi/envs/default/lib/python3.8/site-packages/_pytest/threadexception.py:92: in pytest_runtest_call\n yield from thread_exception_runtest_hook()\n.pixi/envs/default/lib/python3.8/site-packages/_pytest/threadexception.py:68: in thread_exception_runtest_hook\n yield\n.pixi/envs/default/lib/python3.8/site-packages/_pytest/unraisableexception.py:95: in pytest_runtest_call\n yield from unraisable_exception_runtest_hook()\n.pixi/envs/default/lib/python3.8/site-packages/_pytest/unraisableexception.py:70: in unraisable_exception_runtest_hook\n yield\n.pixi/envs/default/lib/python3.8/site-packages/_pytest/logging.py:846: in pytest_runtest_call\n yield from self._runtest_for(item, \"call\")\n.pixi/envs/default/lib/python3.8/site-packages/_pytest/logging.py:829: in _runtest_for\n yield\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = _capture_fixture=None>\nitem = \n\n @hookimpl(wrapper=True)\n def pytest_runtest_call(self, item: Item) -> Generator[None]:\n with self.item_capture(\"call\", item):\n> return (yield)\nE RuntimeError: generator raised StopIteration\n\n.pixi/envs/default/lib/python3.8/site-packages/_pytest/capture.py:880: RuntimeError"}, "teardown": {"duration": 0.0004441700875759125, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_generator_exit_direct", "lineno": 84, "outcome": "failed", "keywords": ["test_generator_exit_direct", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.0002737919567152858, "outcome": "passed"}, "call": {"duration": 0.0001998350489884615, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 87, "message": "GeneratorExit"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 87, "message": "GeneratorExit"}], "longrepr": "def test_generator_exit_direct():\n # Directly raise GeneratorExit exception\n> raise GeneratorExit()\nE GeneratorExit\n\ntests/test_math_utils.py:87: GeneratorExit"}, "teardown": {"duration": 0.0002820719964802265, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_recursion_limit", "lineno": 88, "outcome": "failed", "keywords": ["test_recursion_limit", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.0001980310771614313, "outcome": "passed"}, "call": {"duration": 0.00020492100156843662, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 92, "message": "RecursionError: cannot set the recursion limit to 50 at the recursion depth 37: the limit is too low"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 92, "message": "RecursionError"}], "longrepr": "def test_recursion_limit():\n # Lower recursion limit to force RecursionError on deep recursion\n original_limit = sys.getrecursionlimit()\n> sys.setrecursionlimit(50)\nE RecursionError: cannot set the recursion limit to 50 at the recursion depth 37: the limit is too low\n\ntests/test_math_utils.py:92: RecursionError"}, "teardown": {"duration": 0.0002553400117903948, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_malformed_code", "lineno": 99, "outcome": "failed", "keywords": ["test_malformed_code", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.0001827799715101719, "outcome": "passed"}, "call": {"duration": 0.00018450699280947447, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 102, "message": " File \"\", line 1\n def bad(:\n ^\nSyntaxError: invalid syntax"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 102, "message": "SyntaxError"}], "longrepr": "def test_malformed_code():\n # SyntaxError when executing malformed Python code\n> exec(\"def bad(:\\n pass\")\nE File \"\", line 1\nE def bad(:\nE ^\nE SyntaxError: invalid syntax\n\ntests/test_math_utils.py:102: SyntaxError"}, "teardown": {"duration": 0.00023947691079229116, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_sys_exit", "lineno": 103, "outcome": "failed", "keywords": ["test_sys_exit", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00020459399092942476, "outcome": "passed"}, "call": {"duration": 0.0001723149325698614, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 106, "message": "SystemExit: 1"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 106, "message": "SystemExit"}], "longrepr": "def test_sys_exit():\n # Simulate SystemExit via sys.exit\n> sys.exit(1)\nE SystemExit: 1\n\ntests/test_math_utils.py:106: SystemExit"}, "teardown": {"duration": 0.0002392960013821721, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_broken_function", "lineno": 107, "outcome": "failed", "keywords": ["test_broken_function", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00018531305249780416, "outcome": "passed"}, "call": {"duration": 0.00017847400158643723, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 111, "message": "TypeError: Broken function"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 112, "message": ""}, {"path": "tests/test_math_utils.py", "lineno": 111, "message": "TypeError"}], "longrepr": "def test_broken_function():\n # Simulate broken function raising TypeError\n def broken_func(*args, **kwargs):\n raise TypeError(\"Broken function\")\n> broken_func()\n\ntests/test_math_utils.py:112: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nargs = (), kwargs = {}\n\n def broken_func(*args, **kwargs):\n> raise TypeError(\"Broken function\")\nE TypeError: Broken function\n\ntests/test_math_utils.py:111: TypeError"}, "teardown": {"duration": 0.00023046601563692093, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_import_error_patch", "lineno": 113, "outcome": "failed", "keywords": ["test_import_error_patch", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.0001801720354706049, "outcome": "passed"}, "call": {"duration": 0.00019665493164211512, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 119, "message": "ImportError: Simulated ImportError"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 124, "message": ""}, {"path": "tests/test_math_utils.py", "lineno": 119, "message": "ImportError"}], "longrepr": "def test_import_error_patch():\n # Patch import to simulate ImportError on specific module\n original_import = __import__\n def fake_import(name, *args, **kwargs):\n if name == \"fake_module\":\n raise ImportError(\"Simulated ImportError\")\n return original_import(name, *args, **kwargs)\n import builtins\n builtins.__import__, old_import = fake_import, builtins.__import__\n try:\n> __import__(\"fake_module\")\n\ntests/test_math_utils.py:124: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nname = 'fake_module', args = (), kwargs = {}\n\n def fake_import(name, *args, **kwargs):\n if name == \"fake_module\":\n> raise ImportError(\"Simulated ImportError\")\nE ImportError: Simulated ImportError\n\ntests/test_math_utils.py:119: ImportError"}, "teardown": {"duration": 0.0002454380737617612, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_module_not_found_error", "lineno": 127, "outcome": "failed", "keywords": ["test_module_not_found_error", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00020593905355781317, "outcome": "passed"}, "call": {"duration": 0.0004897390026599169, "outcome": "failed", "crash": {"path": "", "lineno": 973, "message": "ModuleNotFoundError: No module named 'non_existent_module_xyz'"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 130, "message": ""}, {"path": ".pixi/envs/default/lib/python3.8/importlib/__init__.py", "lineno": 127, "message": "in import_module"}, {"path": "", "lineno": 1014, "message": "in _gcd_import"}, {"path": "", "lineno": 991, "message": "in _find_and_load"}, {"path": "", "lineno": 973, "message": "ModuleNotFoundError"}], "longrepr": "def test_module_not_found_error():\n # Raises ModuleNotFoundError (subclass of ImportError) for missing module\n> importlib.import_module(\"non_existent_module_xyz\")\n\ntests/test_math_utils.py:130: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n.pixi/envs/default/lib/python3.8/importlib/__init__.py:127: in import_module\n return _bootstrap._gcd_import(name[level:], package, level)\n:1014: in _gcd_import\n ???\n:991: in _find_and_load\n ???\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nname = 'non_existent_module_xyz'\nimport_ = \n\n> ???\nE ModuleNotFoundError: No module named 'non_existent_module_xyz'\n\n:973: ModuleNotFoundError"}, "teardown": {"duration": 0.0002710099797695875, "outcome": "passed"}}, {"nodeid": "tests/test_string_utils.py::test_uppercase_normal", "lineno": 7, "outcome": "passed", "keywords": ["test_uppercase_normal", "test_string_utils.py", "tests", "slic", ""], "setup": {"duration": 0.0001940659713000059, "outcome": "passed"}, "call": {"duration": 0.00016937998589128256, "outcome": "passed"}, "teardown": {"duration": 0.00019112997688353062, "outcome": "passed"}}, {"nodeid": "tests/test_string_utils.py::test_uppercase_type_error", "lineno": 11, "outcome": "passed", "keywords": ["test_uppercase_type_error", "test_string_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00018266797997057438, "outcome": "passed"}, "call": {"duration": 0.00039342406671494246, "outcome": "passed"}, "teardown": {"duration": 0.00019581103697419167, "outcome": "passed"}}, {"nodeid": "tests/test_string_utils.py::test_reverse_string", "lineno": 16, "outcome": "passed", "keywords": ["test_reverse_string", "test_string_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00018240895587950945, "outcome": "passed"}, "call": {"duration": 0.00016053696162998676, "outcome": "passed"}, "teardown": {"duration": 0.0002074160147458315, "outcome": "passed"}}, {"nodeid": "tests/test_string_utils.py::test_warning_emit", "lineno": 20, "outcome": "passed", "keywords": ["test_warning_emit", "test_string_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00018518290016800165, "outcome": "passed"}, "call": {"duration": 0.0001730059739202261, "outcome": "passed"}, "teardown": {"duration": 0.00019270996563136578, "outcome": "passed"}}, {"nodeid": "tests/test_string_utils.py::test_unicode_encode_error", "lineno": 24, "outcome": "failed", "keywords": ["test_unicode_encode_error", "test_string_utils.py", "tests", "slic", ""], "setup": {"duration": 0.0001754419645294547, "outcome": "passed"}, "call": {"duration": 0.0003005459439009428, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_string_utils.py", "lineno": 28, "message": "Failed: DID NOT RAISE "}, "traceback": [{"path": "tests/test_string_utils.py", "lineno": 28, "message": "Failed"}], "longrepr": "def test_unicode_encode_error():\n # UnicodeEncodeError due to decoding malformed surrogate byte\n with pytest.raises(UnicodeEncodeError):\n> b'\\udc80'.decode('utf-8')\nE Failed: DID NOT RAISE \n\ntests/test_string_utils.py:28: Failed"}, "teardown": {"duration": 0.00023749400861561298, "outcome": "passed"}}, {"nodeid": "tests/test_string_utils.py::test_unicode_decode_error", "lineno": 29, "outcome": "passed", "keywords": ["test_unicode_decode_error", "test_string_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00018827198073267937, "outcome": "passed"}, "call": {"duration": 0.00019402499310672283, "outcome": "passed"}, "teardown": {"duration": 0.0001942180097103119, "outcome": "passed"}}, {"nodeid": "tests/test_string_utils.py::test_unicode_decode_surrogateescape", "lineno": 34, "outcome": "passed", "keywords": ["test_unicode_decode_surrogateescape", "test_string_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00018620991613715887, "outcome": "passed"}, "call": {"duration": 0.00018643494695425034, "outcome": "passed"}, "teardown": {"duration": 0.00019039004109799862, "outcome": "passed"}}, {"nodeid": "tests/test_string_utils.py::test_import_warning", "lineno": 39, "outcome": "passed", "keywords": ["test_import_warning", "test_string_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00017553498037159443, "outcome": "passed"}, "call": {"duration": 0.00017651496455073357, "outcome": "passed"}, "teardown": {"duration": 0.00019151298329234123, "outcome": "passed"}}, {"nodeid": "tests/test_string_utils.py::test_xfail_uppercase_digits", "lineno": 46, "outcome": "xfailed", "keywords": ["test_xfail_uppercase_digits", "xfail", "pytestmark", "test_string_utils.py", "tests", "slic", ""], "setup": {"duration": 0.0001918460475280881, "outcome": "passed"}, "call": {"duration": 0.0006389999762177467, "outcome": "skipped", "crash": {"path": "/workspace/tligui_y/slic/tests/test_string_utils.py", "lineno": 50, "message": "AssertionError: assert 'ABC123' == 'ABC1234'\n \n - ABC1234\n ? -\n + ABC123"}, "traceback": [{"path": "tests/test_string_utils.py", "lineno": 50, "message": "AssertionError"}], "longrepr": "@pytest.mark.xfail(reason=\"Expected failure: uppercase does not handle digits\")\n def test_xfail_uppercase_digits():\n # Expected fail test because uppercase won't change digits\n> assert uppercase(\"abc123\") == \"ABC1234\"\nE AssertionError: assert 'ABC123' == 'ABC1234'\nE \nE - ABC1234\nE ? -\nE + ABC123\n\ntests/test_string_utils.py:50: AssertionError"}, "teardown": {"duration": 0.00025437993463128805, "outcome": "passed"}}, {"nodeid": "tests/test_string_utils.py::test_keyboard_interrupt_direct", "lineno": 51, "outcome": "passed", "keywords": ["test_keyboard_interrupt_direct", "test_string_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00018565903883427382, "outcome": "passed"}}], "warnings": [{"message": "invalid escape sequence \\u", "category": "DeprecationWarning", "when": "collect", "filename": "/workspace/tligui_y/slic/tests/test_string_utils.py", "lineno": 28}, {"message": "Test warning", "category": "UserWarning", "when": "runtest", "filename": "/workspace/tligui_y/slic/tests/test_string_utils.py", "lineno": 23}]} \ No newline at end of file