diff --git a/ci-reports/markdown/TEST-REPORT.md b/ci-reports/markdown/TEST-REPORT.md index 7af79c49..2114709c 100644 --- a/ci-reports/markdown/TEST-REPORT.md +++ b/ci-reports/markdown/TEST-REPORT.md @@ -48,7 +48,7 @@ ERROR tests/test_collector_error.py !!!!!!!!!!!!!!!!!!!!!!!!!!!!!! KeyboardInterrupt !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! /workspace/tligui_y/slic/tests/test_string_utils.py:43: KeyboardInterrupt (to show a full traceback on KeyboardInterrupt use --full-trace) -======== 32 failed, 15 passed, 2 xfailed, 1 warning, 2 errors in 0.75s ========= +======== 32 failed, 15 passed, 2 xfailed, 1 warning, 2 errors in 0.74s ========= ``` @@ -59,7 +59,7 @@ 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: html-4.1.1, cov-5.0.0, metadata-3.1.1, 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, html-4.1.1, cov-5.0.0, md-report-0.6.2, json-report-1.5.0 collected 50 items / 2 errors tests/test_io_utils.py ..FFFFFF.F @@ -134,7 +134,7 @@ E FileNotFoundError: [Errno 2] No such file or directory: 'nonexistent.fil functions/io_utils.py:2: FileNotFoundError ____________________________ test_permission_error _____________________________ -monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f454bc836a0> +monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fafcb908490> def test_permission_error(monkeypatch): # Patch open to raise PermissionError simulating access denial @@ -158,7 +158,7 @@ E PermissionError: Permission denied tests/test_io_utils.py:34: PermissionError _____________________________ test_mock_open_error _____________________________ -monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f454bcaa640> +monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fafcbcb9370> def test_mock_open_error(monkeypatch): # Mock open() to raise IOError simulating read error @@ -175,7 +175,7 @@ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ return self._execute_mock_call(*args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = +self = args = ('file.txt', 'r'), kwargs = {}, effect = OSError('Mocked IOError') def _execute_mock_call(self, /, *args, **kwargs): @@ -201,7 +201,7 @@ E ValueError: I/O operation on closed file tests/test_io_utils.py:50: ValueError ________________________________ test_os_error _________________________________ -monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f4549430820> +monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fafcbca59d0> def test_os_error(monkeypatch): # Patch os.remove to raise OSError simulating filesystem error @@ -369,7 +369,7 @@ tests/test_math_utils.py:103: StopIteration The above exception was the direct cause of the following exception: cls = -func = . at 0x7f45494159d0> +func = . at 0x7fafce0d8550> when = 'call' reraise = (, ) @@ -525,7 +525,7 @@ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ name = 'non_existent_module_xyz' -import_ = +import_ = > ??? E ModuleNotFoundError: No module named 'non_existent_module_xyz' @@ -619,14 +619,14 @@ ERROR tests/test_collector_error.py !!!!!!!!!!!!!!!!!!!!!!!!!!!!!! KeyboardInterrupt !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! /workspace/tligui_y/slic/tests/test_string_utils.py:43: KeyboardInterrupt (to show a full traceback on KeyboardInterrupt use --full-trace) -======== 32 failed, 15 passed, 2 xfailed, 1 warning, 2 errors in 0.75s ========= +======== 32 failed, 15 passed, 2 xfailed, 1 warning, 2 errors in 0.74s ========= ``` --- # ๐Ÿงช Test Report -*Generated on 2025-07-15 12:45:39* +*Generated on 2025-07-15 12:47:08* ## ๐Ÿ“‹ Summary - **Passed**: `16` @@ -634,3868 +634,4987 @@ ERROR tests/test_collector_error.py - **Xfailed**: `2` - **Total**: `50` - **Collected**: `50` -- **Total Duration**: `0.748`s +- **Total Duration**: `0.741`s ## ๐Ÿ”Ž Tests
โœ… Passed (16)
-๐Ÿ“ test_io_utils.py + ๐Ÿ“ test_io_utils.py -#### ๐Ÿ”ง Function: `test_read_file` +
+ ๐Ÿ”ง Function: `test_read_file` + +
+ โœ… #1 + + - **Status:** โœ… `passed` + - **Duration:** `0.000532` s + + ### ๐Ÿ”ง Setup Phase + +
+ ๐Ÿ“Œ Duration + + ``` + `0.00357565691228956` + ``` + +
+
+ ๐Ÿ“Œ Outcome + + ``` + `passed` + ``` + +
+ + ### ๐Ÿ”ง Call Phase + +
+ ๐Ÿ“Œ Duration + + ``` + `0.0005319260526448488` + ``` + +
+
+ ๐Ÿ“Œ Outcome + + ``` + `passed` + ``` + +
+ + ### ๐Ÿ”ง Teardown Phase + +
+ ๐Ÿ“Œ Duration + + ``` + `0.000257298001088202` + ``` + +
+
+ ๐Ÿ“Œ Outcome + + ``` + `passed` + ``` + +
+ +
+ +
+
+ ๐Ÿ”ง Function: `test_write_file` + +
+ โœ… #2 + + - **Status:** โœ… `passed` + - **Duration:** `0.000290` s + + ### ๐Ÿ”ง Setup Phase + +
+ ๐Ÿ“Œ Duration + + ``` + `0.00048141402658075094` + ``` + +
+
+ ๐Ÿ“Œ Outcome + + ``` + `passed` + ``` + +
+ + ### ๐Ÿ”ง Call Phase + +
+ ๐Ÿ“Œ Duration + + ``` + `0.0002904899884015322` + ``` + +
+
+ ๐Ÿ“Œ Outcome + + ``` + `passed` + ``` + +
+ + ### ๐Ÿ”ง Teardown Phase + +
+ ๐Ÿ“Œ Duration + + ``` + `0.00013869802933186293` + ``` + +
+
+ ๐Ÿ“Œ Outcome + + ``` + `passed` + ``` + +
+ +
+ +
+
+ ๐Ÿ”ง Function: `test_write_file_readonly` + +
+ โœ… #9 + + - **Status:** โœ… `passed` + - **Duration:** `0.000968` s + + ### ๐Ÿ”ง Setup Phase + +
+ ๐Ÿ“Œ Duration + + ``` + `0.0006633950397372246` + ``` + +
+
+ ๐Ÿ“Œ Outcome + + ``` + `passed` + ``` + +
+ + ### ๐Ÿ”ง Call Phase + +
+ ๐Ÿ“Œ Duration + + ``` + `0.0009680049261078238` + ``` + +
+
+ ๐Ÿ“Œ Outcome + + ``` + `passed` + ``` + +
+ + ### ๐Ÿ”ง Teardown Phase + +
+ ๐Ÿ“Œ Duration + + ``` + `0.00014728005044162273` + ``` + +
+
+ ๐Ÿ“Œ Outcome + + ``` + `passed` + ``` + +
+ +
+ +
-###### โœ… #1 +
+
+ ๐Ÿ“ test_math_utils.py -- **Status:** โœ… `passed` -- **Duration:** `0.000431` s +
+ ๐Ÿ”ง Function: `test_addition_pass` + +
+ โœ… #13 [params: 2-2-4] + + - **Status:** โœ… `passed` + - **Duration:** `0.000144` s + - **Parameters:** `2-2-4` + + ### ๐Ÿ”ง Setup Phase + +
+ ๐Ÿ“Œ Duration + + ``` + `0.000296312035061419` + ``` + +
+
+ ๐Ÿ“Œ Outcome + + ``` + `passed` + ``` + +
+ + ### ๐Ÿ”ง Call Phase + +
+ ๐Ÿ“Œ Duration + + ``` + `0.00014442799147218466` + ``` + +
+
+ ๐Ÿ“Œ Outcome + + ``` + `passed` + ``` + +
+ + ### ๐Ÿ”ง Teardown Phase + +
+ ๐Ÿ“Œ Duration + + ``` + `0.00014861999079585075` + ``` + +
+
+ ๐Ÿ“Œ Outcome + + ``` + `passed` + ``` + +
+ +
+
+ โœ… #14 [params: 1-5-6] + + - **Status:** โœ… `passed` + - **Duration:** `0.000136` s + - **Parameters:** `1-5-6` + + ### ๐Ÿ”ง Setup Phase + +
+ ๐Ÿ“Œ Duration + + ``` + `0.0002547319745644927` + ``` + +
+
+ ๐Ÿ“Œ Outcome + + ``` + `passed` + ``` + +
+ + ### ๐Ÿ”ง Call Phase + +
+ ๐Ÿ“Œ Duration + + ``` + `0.00013586506247520447` + ``` + +
+
+ ๐Ÿ“Œ Outcome + + ``` + `passed` + ``` + +
+ + ### ๐Ÿ”ง Teardown Phase + +
+ ๐Ÿ“Œ Duration + + ``` + `0.00014216499403119087` + ``` + +
+
+ ๐Ÿ“Œ Outcome + + ``` + `passed` + ``` + +
+ +
+
+ โœ… #15 [params: 3-4-7] + + - **Status:** โœ… `passed` + - **Duration:** `0.000126` s + - **Parameters:** `3-4-7` + + ### ๐Ÿ”ง Setup Phase + +
+ ๐Ÿ“Œ Duration + + ``` + `0.0002360380021855235` + ``` + +
+
+ ๐Ÿ“Œ Outcome + + ``` + `passed` + ``` + +
+ + ### ๐Ÿ”ง Call Phase + +
+ ๐Ÿ“Œ Duration + + ``` + `0.00012578698806464672` + ``` + +
+
+ ๐Ÿ“Œ Outcome + + ``` + `passed` + ``` + +
+ + ### ๐Ÿ”ง Teardown Phase + +
+ ๐Ÿ“Œ Duration + + ``` + `0.0001390549587085843` + ``` + +
+
+ ๐Ÿ“Œ Outcome + + ``` + `passed` + ``` + +
+ +
+
+ โœ… #16 [params: 3-5-8] + + - **Status:** โœ… `passed` + - **Duration:** `0.000127` s + - **Parameters:** `3-5-8` + + ### ๐Ÿ”ง Setup Phase + +
+ ๐Ÿ“Œ Duration + + ``` + `0.00024050194770097733` + ``` + +
+
+ ๐Ÿ“Œ Outcome + + ``` + `passed` + ``` + +
+ + ### ๐Ÿ”ง Call Phase + +
+ ๐Ÿ“Œ Duration + + ``` + `0.0001274690730497241` + ``` + +
+
+ ๐Ÿ“Œ Outcome + + ``` + `passed` + ``` + +
+ + ### ๐Ÿ”ง Teardown Phase + +
+ ๐Ÿ“Œ Duration + + ``` + `0.0001366030192002654` + ``` + +
+
+ ๐Ÿ“Œ Outcome + + ``` + `passed` + ``` + +
+ +
+
+ โœ… #17 [params: 3-6-9] + + - **Status:** โœ… `passed` + - **Duration:** `0.000123` s + - **Parameters:** `3-6-9` + + ### ๐Ÿ”ง Setup Phase + +
+ ๐Ÿ“Œ Duration + + ``` + `0.00023324904032051563` + ``` + +
+
+ ๐Ÿ“Œ Outcome + + ``` + `passed` + ``` + +
+ + ### ๐Ÿ”ง Call Phase + +
+ ๐Ÿ“Œ Duration + + ``` + `0.00012290303129702806` + ``` + +
+
+ ๐Ÿ“Œ Outcome + + ``` + `passed` + ``` + +
+ + ### ๐Ÿ”ง Teardown Phase + +
+ ๐Ÿ“Œ Duration + + ``` + `0.0001262999139726162` + ``` + +
+
+ ๐Ÿ“Œ Outcome + + ``` + `passed` + ``` + +
+ +
+ +
+
+ ๐Ÿ”ง Function: `test_addition_pass_id` + +
+ โœ… #18 [params: a=2,b=2,expected=4] + + - **Status:** โœ… `passed` + - **Duration:** `0.000124` s + - **Parameters:** `a=2,b=2,expected=4` + + ### ๐Ÿ”ง Setup Phase + +
+ ๐Ÿ“Œ Duration + + ``` + `0.00023070001043379307` + ``` + +
+
+ ๐Ÿ“Œ Outcome + + ``` + `passed` + ``` + +
+ + ### ๐Ÿ”ง Call Phase + +
+ ๐Ÿ“Œ Duration + + ``` + `0.0001236150274053216` + ``` + +
+
+ ๐Ÿ“Œ Outcome + + ``` + `passed` + ``` + +
+ + ### ๐Ÿ”ง Teardown Phase + +
+ ๐Ÿ“Œ Duration + + ``` + `0.00013060797937214375` + ``` + +
+
+ ๐Ÿ“Œ Outcome + + ``` + `passed` + ``` + +
+ +
+
+ โœ… #19 [params: a=1,b=5,expected=6] + + - **Status:** โœ… `passed` + - **Duration:** `0.000121` s + - **Parameters:** `a=1,b=5,expected=6` + + ### ๐Ÿ”ง Setup Phase + +
+ ๐Ÿ“Œ Duration + + ``` + `0.00023892405442893505` + ``` + +
+
+ ๐Ÿ“Œ Outcome + + ``` + `passed` + ``` + +
+ + ### ๐Ÿ”ง Call Phase + +
+ ๐Ÿ“Œ Duration + + ``` + `0.00012131198309361935` + ``` + +
+
+ ๐Ÿ“Œ Outcome + + ``` + `passed` + ``` + +
+ + ### ๐Ÿ”ง Teardown Phase + +
+ ๐Ÿ“Œ Duration + + ``` + `0.00012410595081746578` + ``` + +
+
+ ๐Ÿ“Œ Outcome + + ``` + `passed` + ``` + +
+ +
+
+ โœ… #20 [params: a=3,b=4,expected=7] + + - **Status:** โœ… `passed` + - **Duration:** `0.000126` s + - **Parameters:** `a=3,b=4,expected=7` + + ### ๐Ÿ”ง Setup Phase + +
+ ๐Ÿ“Œ Duration + + ``` + `0.00024421699345111847` + ``` + +
+
+ ๐Ÿ“Œ Outcome + + ``` + `passed` + ``` + +
+ + ### ๐Ÿ”ง Call Phase + +
+ ๐Ÿ“Œ Duration + + ``` + `0.00012618897017091513` + ``` + +
+
+ ๐Ÿ“Œ Outcome + + ``` + `passed` + ``` + +
+ + ### ๐Ÿ”ง Teardown Phase + +
+ ๐Ÿ“Œ Duration + + ``` + `0.00013066898100078106` + ``` + +
+
+ ๐Ÿ“Œ Outcome + + ``` + `passed` + ``` + +
+ +
+ +
-### ๐Ÿ”ง Setup Phase +
+
+ ๐Ÿ“ test_string_utils.py -###### ๐Ÿ“Œ Duration +
+ ๐Ÿ”ง Function: `test_uppercase_normal` + +
+ โœ… #42 + + - **Status:** โœ… `passed` + - **Duration:** `0.000141` s + + ### ๐Ÿ”ง Setup Phase + +
+ ๐Ÿ“Œ Duration + + ``` + `0.00012812006752938032` + ``` + +
+
+ ๐Ÿ“Œ Outcome + + ``` + `passed` + ``` + +
+ + ### ๐Ÿ”ง Call Phase + +
+ ๐Ÿ“Œ Duration + + ``` + `0.00014116999227553606` + ``` + +
+
+ ๐Ÿ“Œ Outcome + + ``` + `passed` + ``` + +
+ + ### ๐Ÿ”ง Teardown Phase + +
+ ๐Ÿ“Œ Duration + + ``` + `0.00011786306276917458` + ``` + +
+
+ ๐Ÿ“Œ Outcome + + ``` + `passed` + ``` + +
+ +
+ +
+
+ ๐Ÿ”ง Function: `test_reverse_string` + +
+ โœ… #44 + + - **Status:** โœ… `passed` + - **Duration:** `0.000137` s + + ### ๐Ÿ”ง Setup Phase + +
+ ๐Ÿ“Œ Duration + + ``` + `0.00011440191883593798` + ``` + +
+
+ ๐Ÿ“Œ Outcome + + ``` + `passed` + ``` + +
+ + ### ๐Ÿ”ง Call Phase + +
+ ๐Ÿ“Œ Duration + + ``` + `0.0001365359639748931` + ``` + +
+
+ ๐Ÿ“Œ Outcome + + ``` + `passed` + ``` + +
+ + ### ๐Ÿ”ง Teardown Phase + +
+ ๐Ÿ“Œ Duration + + ``` + `0.00010037596803158522` + ``` + +
+
+ ๐Ÿ“Œ Outcome + + ``` + `passed` + ``` + +
+ +
+ +
+
+ ๐Ÿ”ง Function: `test_warning_emit` + +
+ โœ… #45 + + - **Status:** โœ… `passed` + - **Duration:** `0.000140` s + + ### ๐Ÿ”ง Setup Phase + +
+ ๐Ÿ“Œ Duration + + ``` + `0.00010325200855731964` + ``` + +
+
+ ๐Ÿ“Œ Outcome + + ``` + `passed` + ``` + +
+ + ### ๐Ÿ”ง Call Phase + +
+ ๐Ÿ“Œ Duration + + ``` + `0.00014043902046978474` + ``` + +
+
+ ๐Ÿ“Œ Outcome + + ``` + `passed` + ``` + +
+ + ### ๐Ÿ”ง Teardown Phase + +
+ ๐Ÿ“Œ Duration + + ``` + `9.429897181689739e-05` + ``` + +
+
+ ๐Ÿ“Œ Outcome + + ``` + `passed` + ``` + +
+ +
+ +
+
+ ๐Ÿ”ง Function: `test_import_warning` + +
+ โœ… #48 + + - **Status:** โœ… `passed` + - **Duration:** `0.000148` s + + ### ๐Ÿ”ง Setup Phase + +
+ ๐Ÿ“Œ Duration + + ``` + `0.00011390901636332273` + ``` + +
+
+ ๐Ÿ“Œ Outcome + + ``` + `passed` + ``` + +
+ + ### ๐Ÿ”ง Call Phase + +
+ ๐Ÿ“Œ Duration + + ``` + `0.00014756806194782257` + ``` + +
+
+ ๐Ÿ“Œ Outcome + + ``` + `passed` + ``` + +
+ + ### ๐Ÿ”ง Teardown Phase + +
+ ๐Ÿ“Œ Duration + + ``` + `9.950203821063042e-05` + ``` + +
+
+ ๐Ÿ“Œ Outcome + + ``` + `passed` + ``` + +
+ +
+ +
+
+ ๐Ÿ”ง Function: `test_keyboard_interrupt_direct` + +
+ โœ… #50 + + - **Status:** โœ… `passed` + - **Duration**: `None` + + ### ๐Ÿ”ง Setup Phase + +
+ ๐Ÿ“Œ Duration + + ``` + `0.0001152759650722146` + ``` + +
+
+ ๐Ÿ“Œ Outcome + + ``` + `passed` + ``` + +
+ +
+ +
-``` -`0.003306024009361863` -``` - -###### ๐Ÿ“Œ Outcome - -``` -`passed` -``` - - -### ๐Ÿ”ง Call Phase - -###### ๐Ÿ“Œ Duration - -``` -`0.00043122703209519386` -``` - -###### ๐Ÿ“Œ Outcome - -``` -`passed` -``` - - -### ๐Ÿ”ง Teardown Phase - -###### ๐Ÿ“Œ Duration - -``` -`0.0002455620560795069` -``` - -###### ๐Ÿ“Œ Outcome - -``` -`passed` -``` - -#### ๐Ÿ”ง Function: `test_write_file` - -###### โœ… #2 - -- **Status:** โœ… `passed` -- **Duration:** `0.000273` s - -### ๐Ÿ”ง Setup Phase - -###### ๐Ÿ“Œ Duration - -``` -`0.00047692202497273684` -``` - -###### ๐Ÿ“Œ Outcome - -``` -`passed` -``` - - -### ๐Ÿ”ง Call Phase - -###### ๐Ÿ“Œ Duration - -``` -`0.00027267204131931067` -``` - -###### ๐Ÿ“Œ Outcome - -``` -`passed` -``` - - -### ๐Ÿ”ง Teardown Phase - -###### ๐Ÿ“Œ Duration - -``` -`0.0001439769985154271` -``` - -###### ๐Ÿ“Œ Outcome - -``` -`passed` -``` - -#### ๐Ÿ”ง Function: `test_write_file_readonly` - -###### โœ… #9 - -- **Status:** โœ… `passed` -- **Duration:** `0.000919` s - -### ๐Ÿ”ง Setup Phase - -###### ๐Ÿ“Œ Duration - -``` -`0.000639135017991066` -``` - -###### ๐Ÿ“Œ Outcome - -``` -`passed` -``` - - -### ๐Ÿ”ง Call Phase - -###### ๐Ÿ“Œ Duration - -``` -`0.0009187669493257999` -``` - -###### ๐Ÿ“Œ Outcome - -``` -`passed` -``` - - -### ๐Ÿ”ง Teardown Phase - -###### ๐Ÿ“Œ Duration - -``` -`0.00014366197865456343` -``` - -###### ๐Ÿ“Œ Outcome - -``` -`passed` -``` +
- -
-๐Ÿ“ test_math_utils.py - -#### ๐Ÿ”ง Function: `test_addition_pass` - -###### โœ… #13 [parameters: 2-2-4] - -- **Status:** โœ… `passed` -- **Duration:** `0.000153` s -- **Parameters:** `2-2-4` - -### ๐Ÿ”ง Setup Phase - -###### ๐Ÿ“Œ Duration - -``` -`0.0002769000129774213` -``` - -###### ๐Ÿ“Œ Outcome - -``` -`passed` -``` - - -### ๐Ÿ”ง Call Phase - -###### ๐Ÿ“Œ Duration - -``` -`0.00015333190094679594` -``` - -###### ๐Ÿ“Œ Outcome - -``` -`passed` -``` - - -### ๐Ÿ”ง Teardown Phase - -###### ๐Ÿ“Œ Duration - -``` -`0.00014177605044096708` -``` - -###### ๐Ÿ“Œ Outcome - -``` -`passed` -``` - -###### โœ… #14 [parameters: 1-5-6] - -- **Status:** โœ… `passed` -- **Duration:** `0.000131` s -- **Parameters:** `1-5-6` - -### ๐Ÿ”ง Setup Phase - -###### ๐Ÿ“Œ Duration - -``` -`0.0002591729862615466` -``` - -###### ๐Ÿ“Œ Outcome - -``` -`passed` -``` - - -### ๐Ÿ”ง Call Phase - -###### ๐Ÿ“Œ Duration - -``` -`0.0001311220694333315` -``` - -###### ๐Ÿ“Œ Outcome - -``` -`passed` -``` - - -### ๐Ÿ”ง Teardown Phase - -###### ๐Ÿ“Œ Duration - -``` -`0.00013376399874687195` -``` - -###### ๐Ÿ“Œ Outcome - -``` -`passed` -``` - -###### โœ… #15 [parameters: 3-4-7] - -- **Status:** โœ… `passed` -- **Duration:** `0.000133` s -- **Parameters:** `3-4-7` - -### ๐Ÿ”ง Setup Phase - -###### ๐Ÿ“Œ Duration - -``` -`0.00024793099146336317` -``` - -###### ๐Ÿ“Œ Outcome - -``` -`passed` -``` - - -### ๐Ÿ”ง Call Phase - -###### ๐Ÿ“Œ Duration - -``` -`0.00013324199244379997` -``` - -###### ๐Ÿ“Œ Outcome - -``` -`passed` -``` - - -### ๐Ÿ”ง Teardown Phase - -###### ๐Ÿ“Œ Duration - -``` -`0.0001355030108243227` -``` - -###### ๐Ÿ“Œ Outcome - -``` -`passed` -``` - -###### โœ… #16 [parameters: 3-5-8] - -- **Status:** โœ… `passed` -- **Duration:** `0.000125` s -- **Parameters:** `3-5-8` - -### ๐Ÿ”ง Setup Phase - -###### ๐Ÿ“Œ Duration - -``` -`0.00024345493875443935` -``` - -###### ๐Ÿ“Œ Outcome - -``` -`passed` -``` - - -### ๐Ÿ”ง Call Phase - -###### ๐Ÿ“Œ Duration - -``` -`0.00012541399337351322` -``` - -###### ๐Ÿ“Œ Outcome - -``` -`passed` -``` - - -### ๐Ÿ”ง Teardown Phase - -###### ๐Ÿ“Œ Duration - -``` -`0.00013200694229453802` -``` - -###### ๐Ÿ“Œ Outcome - -``` -`passed` -``` - -###### โœ… #17 [parameters: 3-6-9] - -- **Status:** โœ… `passed` -- **Duration:** `0.000129` s -- **Parameters:** `3-6-9` - -### ๐Ÿ”ง Setup Phase - -###### ๐Ÿ“Œ Duration - -``` -`0.0002495580120012164` -``` - -###### ๐Ÿ“Œ Outcome - -``` -`passed` -``` - - -### ๐Ÿ”ง Call Phase - -###### ๐Ÿ“Œ Duration - -``` -`0.00012878398410975933` -``` - -###### ๐Ÿ“Œ Outcome - -``` -`passed` -``` - - -### ๐Ÿ”ง Teardown Phase - -###### ๐Ÿ“Œ Duration - -``` -`0.00013866799417883158` -``` - -###### ๐Ÿ“Œ Outcome - -``` -`passed` -``` - -#### ๐Ÿ”ง Function: `test_addition_pass_id` - -###### โœ… #18 [parameters: a=2,b=2,expected=4] - -- **Status:** โœ… `passed` -- **Duration:** `0.000129` s -- **Parameters:** `a=2,b=2,expected=4` - -### ๐Ÿ”ง Setup Phase - -###### ๐Ÿ“Œ Duration - -``` -`0.000251802965067327` -``` - -###### ๐Ÿ“Œ Outcome - -``` -`passed` -``` - - -### ๐Ÿ”ง Call Phase - -###### ๐Ÿ“Œ Duration - -``` -`0.0001290289219468832` -``` - -###### ๐Ÿ“Œ Outcome - -``` -`passed` -``` - - -### ๐Ÿ”ง Teardown Phase - -###### ๐Ÿ“Œ Duration - -``` -`0.00013180298265069723` -``` - -###### ๐Ÿ“Œ Outcome - -``` -`passed` -``` - -###### โœ… #19 [parameters: a=1,b=5,expected=6] - -- **Status:** โœ… `passed` -- **Duration:** `0.000129` s -- **Parameters:** `a=1,b=5,expected=6` - -### ๐Ÿ”ง Setup Phase - -###### ๐Ÿ“Œ Duration - -``` -`0.00023559504188597202` -``` - -###### ๐Ÿ“Œ Outcome - -``` -`passed` -``` - - -### ๐Ÿ”ง Call Phase - -###### ๐Ÿ“Œ Duration - -``` -`0.00012937607243657112` -``` - -###### ๐Ÿ“Œ Outcome - -``` -`passed` -``` - - -### ๐Ÿ”ง Teardown Phase - -###### ๐Ÿ“Œ Duration - -``` -`0.000134129892103374` -``` - -###### ๐Ÿ“Œ Outcome - -``` -`passed` -``` - -###### โœ… #20 [parameters: a=3,b=4,expected=7] - -- **Status:** โœ… `passed` -- **Duration:** `0.000124` s -- **Parameters:** `a=3,b=4,expected=7` - -### ๐Ÿ”ง Setup Phase - -###### ๐Ÿ“Œ Duration - -``` -`0.0002325690584257245` -``` - -###### ๐Ÿ“Œ Outcome - -``` -`passed` -``` - - -### ๐Ÿ”ง Call Phase - -###### ๐Ÿ“Œ Duration - -``` -`0.00012418197002261877` -``` - -###### ๐Ÿ“Œ Outcome - -``` -`passed` -``` - - -### ๐Ÿ”ง Teardown Phase - -###### ๐Ÿ“Œ Duration - -``` -`0.00013059494085609913` -``` - -###### ๐Ÿ“Œ Outcome - -``` -`passed` -``` - -
- -
-๐Ÿ“ test_string_utils.py - -#### ๐Ÿ”ง Function: `test_uppercase_normal` - -###### โœ… #42 - -- **Status:** โœ… `passed` -- **Duration:** `0.000143` s - -### ๐Ÿ”ง Setup Phase - -###### ๐Ÿ“Œ Duration - -``` -`0.0001260540448129177` -``` - -###### ๐Ÿ“Œ Outcome - -``` -`passed` -``` - - -### ๐Ÿ”ง Call Phase - -###### ๐Ÿ“Œ Duration - -``` -`0.00014317291788756847` -``` - -###### ๐Ÿ“Œ Outcome - -``` -`passed` -``` - - -### ๐Ÿ”ง Teardown Phase - -###### ๐Ÿ“Œ Duration - -``` -`0.00010073604062199593` -``` - -###### ๐Ÿ“Œ Outcome - -``` -`passed` -``` - -#### ๐Ÿ”ง Function: `test_reverse_string` - -###### โœ… #44 - -- **Status:** โœ… `passed` -- **Duration:** `0.000140` s - -### ๐Ÿ”ง Setup Phase - -###### ๐Ÿ“Œ Duration - -``` -`0.00011937308590859175` -``` - -###### ๐Ÿ“Œ Outcome - -``` -`passed` -``` - - -### ๐Ÿ”ง Call Phase - -###### ๐Ÿ“Œ Duration - -``` -`0.00013982807286083698` -``` - -###### ๐Ÿ“Œ Outcome - -``` -`passed` -``` - - -### ๐Ÿ”ง Teardown Phase - -###### ๐Ÿ“Œ Duration - -``` -`0.00010069191921502352` -``` - -###### ๐Ÿ“Œ Outcome - -``` -`passed` -``` - -#### ๐Ÿ”ง Function: `test_warning_emit` - -###### โœ… #45 - -- **Status:** โœ… `passed` -- **Duration:** `0.000142` s - -### ๐Ÿ”ง Setup Phase - -###### ๐Ÿ“Œ Duration - -``` -`0.00010798603761941195` -``` - -###### ๐Ÿ“Œ Outcome - -``` -`passed` -``` - - -### ๐Ÿ”ง Call Phase - -###### ๐Ÿ“Œ Duration - -``` -`0.00014248699881136417` -``` - -###### ๐Ÿ“Œ Outcome - -``` -`passed` -``` - - -### ๐Ÿ”ง Teardown Phase - -###### ๐Ÿ“Œ Duration - -``` -`9.622995276004076e-05` -``` - -###### ๐Ÿ“Œ Outcome - -``` -`passed` -``` - -#### ๐Ÿ”ง Function: `test_import_warning` - -###### โœ… #48 - -- **Status:** โœ… `passed` -- **Duration:** `0.000136` s - -### ๐Ÿ”ง Setup Phase - -###### ๐Ÿ“Œ Duration - -``` -`0.0001198500394821167` -``` - -###### ๐Ÿ“Œ Outcome - -``` -`passed` -``` - - -### ๐Ÿ”ง Call Phase - -###### ๐Ÿ“Œ Duration - -``` -`0.0001356599386781454` -``` - -###### ๐Ÿ“Œ Outcome - -``` -`passed` -``` - - -### ๐Ÿ”ง Teardown Phase - -###### ๐Ÿ“Œ Duration - -``` -`0.00010376307182013988` -``` - -###### ๐Ÿ“Œ Outcome - -``` -`passed` -``` - -#### ๐Ÿ”ง Function: `test_keyboard_interrupt_direct` - -###### โœ… #50 - -- **Status:** โœ… `passed` -- **Duration**: `None` - -### ๐Ÿ”ง Setup Phase - -###### ๐Ÿ“Œ Duration - -``` -`0.00011842406820505857` -``` - -###### ๐Ÿ“Œ Outcome - -``` -`passed` -``` - -
- - -
โŒ Failed (32)
-๐Ÿ“ test_io_utils.py - -#### ๐Ÿ”ง Function: `test_cause_io_error` - -###### โŒ #3 - -- **Status:** โŒ `failed` -- **Duration:** `0.000154` s - -### ๐Ÿ”ง Setup Phase - -###### ๐Ÿ“Œ Duration - -``` -`0.00011632195673882961` -``` - -###### ๐Ÿ“Œ Outcome - -``` -`passed` -``` - - -### ๐Ÿ”ง Call Phase - -###### ๐Ÿ“Œ Duration - -``` -`0.0001543089747428894` -``` - -###### ๐Ÿ“Œ 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: `None``, `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.00014571298379451036` -``` - -###### ๐Ÿ“Œ Outcome - -``` -`passed` -``` - -#### ๐Ÿ”ง Function: `test_file_not_found` - -###### โŒ #4 - -- **Status:** โŒ `failed` -- **Duration:** `0.000171` s - -### ๐Ÿ”ง Setup Phase - -###### ๐Ÿ“Œ Duration - -``` -`0.00011727400124073029` -``` - -###### ๐Ÿ“Œ Outcome - -``` -`passed` -``` - - -### ๐Ÿ”ง Call Phase - -###### ๐Ÿ“Œ Duration - -``` -`0.0001713389065116644` -``` - -###### ๐Ÿ“Œ 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: `None``, `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.00015539710875600576` -``` - -###### ๐Ÿ“Œ Outcome - -``` -`passed` -``` - -#### ๐Ÿ”ง Function: `test_permission_error` - -###### โŒ #5 - -- **Status:** โŒ `failed` -- **Duration:** `0.000177` s - -### ๐Ÿ”ง Setup Phase - -###### ๐Ÿ“Œ Duration - -``` -`0.0001983650727197528` -``` - -###### ๐Ÿ“Œ Outcome - -``` -`passed` -``` - - -### ๐Ÿ”ง Call Phase - -###### ๐Ÿ“Œ Duration - -``` -`0.00017721892800182104` -``` - -###### ๐Ÿ“Œ 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: `None``, `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 0x7f454bc836a0> - - 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` -``` - - -### ๐Ÿ”ง Teardown Phase - -###### ๐Ÿ“Œ Duration - -``` -`0.00016739394050091505` -``` - -###### ๐Ÿ“Œ Outcome - -``` -`passed` -``` - -#### ๐Ÿ”ง Function: `test_mock_open_error` - -###### โŒ #6 - -- **Status:** โŒ `failed` -- **Duration:** `0.003220` s - -### ๐Ÿ”ง Setup Phase - -###### ๐Ÿ“Œ Duration - -``` -`0.0001892779255285859` -``` - -###### ๐Ÿ“Œ Outcome - -``` -`passed` -``` - - -### ๐Ÿ”ง Call Phase - -###### ๐Ÿ“Œ Duration - -``` -`0.0032198999542742968` -``` - -###### ๐Ÿ“Œ 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: `None``, `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 0x7f454bcaa640> - - 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.00033507205080240965` -``` - -###### ๐Ÿ“Œ Outcome - -``` -`passed` -``` - -#### ๐Ÿ”ง Function: `test_file_handle_closed_error` - -###### โŒ #7 - -- **Status:** โŒ `failed` -- **Duration:** `0.000196` s - -### ๐Ÿ”ง Setup Phase - -###### ๐Ÿ“Œ Duration - -``` -`0.0001474160235375166` -``` - -###### ๐Ÿ“Œ Outcome - -``` -`passed` -``` - - -### ๐Ÿ”ง Call Phase - -###### ๐Ÿ“Œ Duration - -``` -`0.00019636203069239855` -``` - -###### ๐Ÿ“Œ 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.0001796690048649907` -``` - -###### ๐Ÿ“Œ Outcome - -``` -`passed` -``` - -#### ๐Ÿ”ง Function: `test_os_error` - -###### โŒ #8 - -- **Status:** โŒ `failed` -- **Duration:** `0.000182` s - -### ๐Ÿ”ง Setup Phase - -###### ๐Ÿ“Œ Duration - -``` -`0.0002509739715605974` -``` - -###### ๐Ÿ“Œ Outcome - -``` -`passed` -``` - - -### ๐Ÿ”ง Call Phase - -###### ๐Ÿ“Œ Duration - -``` -`0.0001822509802877903` -``` - -###### ๐Ÿ“Œ 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: `None``, `path: `tests/test_io_utils.py``, `lineno: `55``, `message: `OSError`` -``` - -###### ๐Ÿ“Œ Longrepr - -``` -`monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f4549430820> - - 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.00017032900359481573` -``` - -###### ๐Ÿ“Œ Outcome - -``` -`passed` -``` - -#### ๐Ÿ”ง Function: `test_file_not_found_error` - -###### โŒ #10 - -- **Status:** โŒ `failed` -- **Duration:** `0.000167` s - -### ๐Ÿ”ง Setup Phase - -###### ๐Ÿ“Œ Duration - -``` -`0.00011486595030874014` -``` - -###### ๐Ÿ“Œ Outcome - -``` -`passed` -``` - - -### ๐Ÿ”ง Call Phase - -###### ๐Ÿ“Œ Duration - -``` -`0.0001667090691626072` -``` - -###### ๐Ÿ“Œ 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.000141237978823483` -``` - -###### ๐Ÿ“Œ Outcome - -``` -`passed` -``` + ๐Ÿ“ test_io_utils.py + +
+ ๐Ÿ”ง Function: `test_cause_io_error` + +
+ โŒ #3 + + - **Status:** โŒ `failed` + - **Duration:** `0.000156` s + + ### ๐Ÿ”ง Setup Phase + +
+ ๐Ÿ“Œ Duration + + ``` + `0.00010975205805152655` + ``` + +
+
+ ๐Ÿ“Œ Outcome + + ``` + `passed` + ``` + +
+ + ### ๐Ÿ”ง Call Phase + +
+ ๐Ÿ“Œ Duration + + ``` + `0.00015606603119522333` + ``` + +
+
+ ๐Ÿ“Œ 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: `None``, `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.0001492849551141262` + ``` + +
+
+ ๐Ÿ“Œ Outcome + + ``` + `passed` + ``` + +
+ +
+ +
+
+ ๐Ÿ”ง Function: `test_file_not_found` + +
+ โŒ #4 + + - **Status:** โŒ `failed` + - **Duration:** `0.000180` s + + ### ๐Ÿ”ง Setup Phase + +
+ ๐Ÿ“Œ Duration + + ``` + `0.00012114399578422308` + ``` + +
+
+ ๐Ÿ“Œ Outcome + + ``` + `passed` + ``` + +
+ + ### ๐Ÿ”ง Call Phase + +
+ ๐Ÿ“Œ Duration + + ``` + `0.00018042209558188915` + ``` + +
+
+ ๐Ÿ“Œ 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: `None``, `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.0001516400370746851` + ``` + +
+
+ ๐Ÿ“Œ Outcome + + ``` + `passed` + ``` + +
+ +
+ +
+
+ ๐Ÿ”ง Function: `test_permission_error` + +
+ โŒ #5 + + - **Status:** โŒ `failed` + - **Duration:** `0.000176` s + + ### ๐Ÿ”ง Setup Phase + +
+ ๐Ÿ“Œ Duration + + ``` + `0.00020881893578916788` + ``` + +
+
+ ๐Ÿ“Œ Outcome + + ``` + `passed` + ``` + +
+ + ### ๐Ÿ”ง Call Phase + +
+ ๐Ÿ“Œ Duration + + ``` + `0.000175846042111516` + ``` + +
+
+ ๐Ÿ“Œ 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: `None``, `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 0x7fafcb908490> + + 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` + ``` + +
+ + ### ๐Ÿ”ง Teardown Phase + +
+ ๐Ÿ“Œ Duration + + ``` + `0.00016581895761191845` + ``` + +
+
+ ๐Ÿ“Œ Outcome + + ``` + `passed` + ``` + +
+ +
+ +
+
+ ๐Ÿ”ง Function: `test_mock_open_error` + +
+ โŒ #6 + + - **Status:** โŒ `failed` + - **Duration:** `0.003289` s + + ### ๐Ÿ”ง Setup Phase + +
+ ๐Ÿ“Œ Duration + + ``` + `0.0001955120824277401` + ``` + +
+
+ ๐Ÿ“Œ Outcome + + ``` + `passed` + ``` + +
+ + ### ๐Ÿ”ง Call Phase + +
+ ๐Ÿ“Œ Duration + + ``` + `0.0032885189866647124` + ``` + +
+
+ ๐Ÿ“Œ 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: `None``, `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 0x7fafcbcb9370> + + 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.0003398940898478031` + ``` + +
+
+ ๐Ÿ“Œ Outcome + + ``` + `passed` + ``` + +
+ +
+ +
+
+ ๐Ÿ”ง Function: `test_file_handle_closed_error` + +
+ โŒ #7 + + - **Status:** โŒ `failed` + - **Duration:** `0.000202` s + + ### ๐Ÿ”ง Setup Phase + +
+ ๐Ÿ“Œ Duration + + ``` + `0.00014093797653913498` + ``` + +
+
+ ๐Ÿ“Œ Outcome + + ``` + `passed` + ``` + +
+ + ### ๐Ÿ”ง Call Phase + +
+ ๐Ÿ“Œ Duration + + ``` + `0.00020234601106494665` + ``` + +
+
+ ๐Ÿ“Œ 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.00020648003555834293` + ``` + +
+
+ ๐Ÿ“Œ Outcome + + ``` + `passed` + ``` + +
+ +
+ +
+
+ ๐Ÿ”ง Function: `test_os_error` + +
+ โŒ #8 + + - **Status:** โŒ `failed` + - **Duration:** `0.000182` s + + ### ๐Ÿ”ง Setup Phase + +
+ ๐Ÿ“Œ Duration + + ``` + `0.00024214608129113913` + ``` + +
+
+ ๐Ÿ“Œ Outcome + + ``` + `passed` + ``` + +
+ + ### ๐Ÿ”ง Call Phase + +
+ ๐Ÿ“Œ Duration + + ``` + `0.00018181907944381237` + ``` + +
+
+ ๐Ÿ“Œ 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: `None``, `path: `tests/test_io_utils.py``, `lineno: `55``, `message: `OSError`` + ``` + +
+
+ ๐Ÿ“Œ Longrepr + + ``` + `monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fafcbca59d0> + + 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.00017514999490231276` + ``` + +
+
+ ๐Ÿ“Œ Outcome + + ``` + `passed` + ``` + +
+ +
+ +
+
+ ๐Ÿ”ง Function: `test_file_not_found_error` + +
+ โŒ #10 + + - **Status:** โŒ `failed` + - **Duration:** `0.000171` s + + ### ๐Ÿ”ง Setup Phase + +
+ ๐Ÿ“Œ Duration + + ``` + `0.00011447502765804529` + ``` + +
+
+ ๐Ÿ“Œ Outcome + + ``` + `passed` + ``` + +
+ + ### ๐Ÿ”ง Call Phase + +
+ ๐Ÿ“Œ Duration + + ``` + `0.00017145206220448017` + ``` + +
+
+ ๐Ÿ“Œ 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.00014994700904935598` + ``` + +
+
+ ๐Ÿ“Œ Outcome + + ``` + `passed` + ``` + +
+ +
+ +
+ +
+
+ ๐Ÿ“ test_math_utils.py + +
+ ๐Ÿ”ง Function: `test_broken` + +
+ โŒ #11 + + - **Status:** โŒ `failed` + - **Duration:** `0.000154` s + + ### ๐Ÿ”ง Setup Phase + +
+ ๐Ÿ“Œ Duration + + ``` + `0.00012550107203423977` + ``` + +
+
+ ๐Ÿ“Œ Outcome + + ``` + `passed` + ``` + +
+ + ### ๐Ÿ”ง Call Phase + +
+ ๐Ÿ“Œ Duration + + ``` + `0.00015411106869578362` + ``` + +
+
+ ๐Ÿ“Œ 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(): + # simulating a broken or faulty test implementation that will cause the test to error + > want_the_test_to_fail + E NameError: name 'want_the_test_to_fail' is not defined + + tests/test_math_utils.py:16: NameError` + ``` + +
+ + ### ๐Ÿ”ง Teardown Phase + +
+ ๐Ÿ“Œ Duration + + ``` + `0.0001560969976708293` + ``` + +
+
+ ๐Ÿ“Œ Outcome + + ``` + `passed` + ``` + +
+ +
+ +
+
+ ๐Ÿ”ง Function: `test_call_missing_function` + +
+ โŒ #12 + + - **Status:** โŒ `failed` + - **Duration:** `0.000150` s + + ### ๐Ÿ”ง Setup Phase + +
+ ๐Ÿ“Œ Duration + + ``` + `0.00011706200893968344` + ``` + +
+
+ ๐Ÿ“Œ Outcome + + ``` + `passed` + ``` + +
+ + ### ๐Ÿ”ง Call Phase + +
+ ๐Ÿ“Œ Duration + + ``` + `0.0001500491052865982` + ``` + +
+
+ ๐Ÿ“Œ 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(): + # Accessing a missing function attribute raises AttributeError + > getattr(math_utils, "non_existent_function")() + E AttributeError: module 'functions.math_utils' has no attribute 'non_existent_function' + + tests/test_math_utils.py:20: AttributeError` + ``` + +
+ + ### ๐Ÿ”ง Teardown Phase + +
+ ๐Ÿ“Œ Duration + + ``` + `0.00013729301281273365` + ``` + +
+
+ ๐Ÿ“Œ Outcome + + ``` + `passed` + ``` + +
+ +
+ +
+
+ ๐Ÿ”ง Function: `test_addition_fail` + +
+ โŒ #21 + + - **Status:** โŒ `failed` + - **Duration:** `0.000464` s + + ### ๐Ÿ”ง Setup Phase + +
+ ๐Ÿ“Œ Duration + + ``` + `0.00010063906665891409` + ``` + +
+
+ ๐Ÿ“Œ Outcome + + ``` + `passed` + ``` + +
+ + ### ๐Ÿ”ง Call Phase + +
+ ๐Ÿ“Œ Duration + + ``` + `0.0004639949183911085` + ``` + +
+
+ ๐Ÿ“Œ Outcome + + ``` + `failed` + ``` + +
+
+ ๐Ÿ“Œ Crash + + ``` + `path: `/workspace/tligui_y/slic/tests/test_math_utils.py``, `lineno: `48``, `message: `assert 4 == 5 + + where 4 = addition(2, 2)`` + ``` + +
+
+ ๐Ÿ“Œ Traceback + + ``` + `path: `tests/test_math_utils.py``, `lineno: `48``, `message: `AssertionError`` + ``` + +
+
+ ๐Ÿ“Œ Longrepr + + ``` + `def test_addition_fail(): + # Assertion failure: expected incorrect result + > assert addition(2, 2) == 5 + E assert 4 == 5 + E + where 4 = addition(2, 2) + + tests/test_math_utils.py:48: AssertionError` + ``` + +
+ + ### ๐Ÿ”ง Teardown Phase + +
+ ๐Ÿ“Œ Duration + + ``` + `0.00014838401693850756` + ``` + +
+
+ ๐Ÿ“Œ Outcome + + ``` + `passed` + ``` + +
+ +
+ +
+
+ ๐Ÿ”ง Function: `test_division_zero` + +
+ โŒ #22 + + - **Status:** โŒ `failed` + - **Duration:** `0.000152` s + + ### ๐Ÿ”ง Setup Phase + +
+ ๐Ÿ“Œ Duration + + ``` + `0.0001145040150731802` + ``` + +
+
+ ๐Ÿ“Œ Outcome + + ``` + `passed` + ``` + +
+ + ### ๐Ÿ”ง Call Phase + +
+ ๐Ÿ“Œ Duration + + ``` + `0.00015226297546178102` + ``` + +
+
+ ๐Ÿ“Œ 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: `52``, `message: `None``, `path: `functions/math_utils.py``, `lineno: `5``, `message: `ZeroDivisionError`` + ``` + +
+
+ ๐Ÿ“Œ Longrepr + + ``` + `def test_division_zero(): + # Will raise ZeroDivisionError if not handled in division + > division(1, 0) + + tests/test_math_utils.py:52: + _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + + a = 1, b = 0 + + def division(a, b): + > return a / b + E ZeroDivisionError: division by zero + + functions/math_utils.py:5: ZeroDivisionError` + ``` + +
+ + ### ๐Ÿ”ง Teardown Phase + +
+ ๐Ÿ“Œ Duration + + ``` + `0.00013816601131111383` + ``` + +
+
+ ๐Ÿ“Œ Outcome + + ``` + `passed` + ``` + +
+ +
+ +
+
+ ๐Ÿ”ง Function: `test_runtime_error` + +
+ โŒ #24 + + - **Status:** โŒ `failed` + - **Duration:** `0.000157` s + + ### ๐Ÿ”ง Setup Phase + +
+ ๐Ÿ“Œ Duration + + ``` + `0.00011498597450554371` + ``` + +
+
+ ๐Ÿ“Œ Outcome + + ``` + `passed` + ``` + +
+ + ### ๐Ÿ”ง Call Phase + +
+ ๐Ÿ“Œ Duration + + ``` + `0.00015740294475108385` + ``` + +
+
+ ๐Ÿ“Œ Outcome + + ``` + `failed` + ``` + +
+
+ ๐Ÿ“Œ Crash + + ``` + `path: `/workspace/tligui_y/slic/tests/test_math_utils.py``, `lineno: `61``, `message: `RuntimeError: Forced runtime error`` + ``` + +
+
+ ๐Ÿ“Œ Traceback + + ``` + `path: `tests/test_math_utils.py``, `lineno: `61``, `message: `RuntimeError`` + ``` + +
+
+ ๐Ÿ“Œ Longrepr + + ``` + `def test_runtime_error(): + # Test raises an uncaught RuntimeError + > raise RuntimeError("Forced runtime error") + E RuntimeError: Forced runtime error + + tests/test_math_utils.py:61: RuntimeError` + ``` + +
+ + ### ๐Ÿ”ง Teardown Phase + +
+ ๐Ÿ“Œ Duration + + ``` + `0.00014895608182996511` + ``` + +
+
+ ๐Ÿ“Œ Outcome + + ``` + `passed` + ``` + +
+ +
+ +
+
+ ๐Ÿ”ง Function: `test_memory_error` + +
+ โŒ #25 + + - **Status:** โŒ `failed` + - **Duration:** `0.000146` s + + ### ๐Ÿ”ง Setup Phase + +
+ ๐Ÿ“Œ Duration + + ``` + `0.00011588598135858774` + ``` + +
+
+ ๐Ÿ“Œ Outcome + + ``` + `passed` + ``` + +
+ + ### ๐Ÿ”ง Call Phase + +
+ ๐Ÿ“Œ Duration + + ``` + `0.00014624395407736301` + ``` + +
+
+ ๐Ÿ“Œ Outcome + + ``` + `failed` + ``` + +
+
+ ๐Ÿ“Œ Crash + + ``` + `path: `/workspace/tligui_y/slic/tests/test_math_utils.py``, `lineno: `65``, `message: `MemoryError: Simulated memory error`` + ``` + +
+
+ ๐Ÿ“Œ Traceback + + ``` + `path: `tests/test_math_utils.py``, `lineno: `65``, `message: `MemoryError`` + ``` + +
+
+ ๐Ÿ“Œ Longrepr + + ``` + `def test_memory_error(): + # Manually raise MemoryError to simulate out-of-memory condition + > raise MemoryError("Simulated memory error") + E MemoryError: Simulated memory error + + tests/test_math_utils.py:65: MemoryError` + ``` + +
+ + ### ๐Ÿ”ง Teardown Phase + +
+ ๐Ÿ“Œ Duration + + ``` + `0.00013591500464826822` + ``` + +
+
+ ๐Ÿ“Œ Outcome + + ``` + `passed` + ``` + +
+ +
+ +
+
+ ๐Ÿ”ง Function: `test_timeout_error` + +
+ โŒ #26 + + - **Status:** โŒ `failed` + - **Duration:** `0.000149` s + + ### ๐Ÿ”ง Setup Phase + +
+ ๐Ÿ“Œ Duration + + ``` + `0.00011850905138999224` + ``` + +
+
+ ๐Ÿ“Œ Outcome + + ``` + `passed` + ``` + +
+ + ### ๐Ÿ”ง Call Phase + +
+ ๐Ÿ“Œ Duration + + ``` + `0.00014857808127999306` + ``` + +
+
+ ๐Ÿ“Œ Outcome + + ``` + `failed` + ``` + +
+
+ ๐Ÿ“Œ Crash + + ``` + `path: `/workspace/tligui_y/slic/tests/test_math_utils.py``, `lineno: `69``, `message: `TimeoutError: Simulated timeout error`` + ``` + +
+
+ ๐Ÿ“Œ Traceback + + ``` + `path: `tests/test_math_utils.py``, `lineno: `69``, `message: `TimeoutError`` + ``` + +
+
+ ๐Ÿ“Œ Longrepr + + ``` + `def test_timeout_error(): + # Manually raise TimeoutError simulating timeout conditions + > raise TimeoutError("Simulated timeout error") + E TimeoutError: Simulated timeout error + + tests/test_math_utils.py:69: TimeoutError` + ``` + +
+ + ### ๐Ÿ”ง Teardown Phase + +
+ ๐Ÿ“Œ Duration + + ``` + `0.00013402104377746582` + ``` + +
+
+ ๐Ÿ“Œ Outcome + + ``` + `passed` + ``` + +
+ +
+ +
+
+ ๐Ÿ”ง Function: `test_recursion_error` + +
+ โŒ #27 + + - **Status:** โŒ `failed` + - **Duration:** `0.000834` s + + ### ๐Ÿ”ง Setup Phase + +
+ ๐Ÿ“Œ Duration + + ``` + `0.00011731707490980625` + ``` + +
+
+ ๐Ÿ“Œ Outcome + + ``` + `passed` + ``` + +
+ + ### ๐Ÿ”ง Call Phase + +
+ ๐Ÿ“Œ Duration + + ``` + `0.0008344230009242892` + ``` + +
+
+ ๐Ÿ“Œ Outcome + + ``` + `failed` + ``` + +
+
+ ๐Ÿ“Œ Crash + + ``` + `path: `/workspace/tligui_y/slic/tests/test_math_utils.py``, `lineno: `74``, `message: `RecursionError: maximum recursion depth exceeded`` + ``` + +
+
+ ๐Ÿ“Œ Traceback + + ``` + `path: `tests/test_math_utils.py``, `lineno: `75``, `message: `None``, `path: `tests/test_math_utils.py``, `lineno: `74``, `message: `in recursive``, `path: `tests/test_math_utils.py``, `lineno: `74``, `message: `in recursive`` + ``` + +
+
+ ๐Ÿ“Œ Longrepr + + ``` + `def test_recursion_error(): + # Infinite recursion triggers RecursionError + def recursive(): + return recursive() + > recursive() + + tests/test_math_utils.py:75: + _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + tests/test_math_utils.py:74: in recursive + return recursive() + tests/test_math_utils.py:74: in recursive + return recursive() + E RecursionError: maximum recursion depth exceeded + !!! Recursion detected (same locals & position)` + ``` + +
+ + ### ๐Ÿ”ง Teardown Phase + +
+ ๐Ÿ“Œ Duration + + ``` + `0.0001551120076328516` + ``` + +
+
+ ๐Ÿ“Œ Outcome + + ``` + `passed` + ``` + +
+ +
+ +
+
+ ๐Ÿ”ง Function: `test_floating_point_error` + +
+ โŒ #28 + + - **Status:** โŒ `failed` + - **Duration:** `0.000149` s + + ### ๐Ÿ”ง Setup Phase + +
+ ๐Ÿ“Œ Duration + + ``` + `0.00012273492757230997` + ``` + +
+
+ ๐Ÿ“Œ Outcome + + ``` + `passed` + ``` + +
+ + ### ๐Ÿ”ง Call Phase + +
+ ๐Ÿ“Œ Duration + + ``` + `0.0001493419986218214` + ``` + +
+
+ ๐Ÿ“Œ Outcome + + ``` + `failed` + ``` + +
+
+ ๐Ÿ“Œ Crash + + ``` + `path: `/workspace/tligui_y/slic/tests/test_math_utils.py``, `lineno: `79``, `message: `FloatingPointError: Simulated floating point error`` + ``` + +
+
+ ๐Ÿ“Œ Traceback + + ``` + `path: `tests/test_math_utils.py``, `lineno: `79``, `message: `FloatingPointError`` + ``` + +
+
+ ๐Ÿ“Œ Longrepr + + ``` + `def test_floating_point_error(): + # Manually raise FloatingPointError (rare in practice) + > raise FloatingPointError("Simulated floating point error") + E FloatingPointError: Simulated floating point error + + tests/test_math_utils.py:79: FloatingPointError` + ``` + +
+ + ### ๐Ÿ”ง Teardown Phase + +
+ ๐Ÿ“Œ Duration + + ``` + `0.00014115998055785894` + ``` + +
+
+ ๐Ÿ“Œ Outcome + + ``` + `passed` + ``` + +
+ +
+ +
+
+ ๐Ÿ”ง Function: `test_floating_point_overflow` + +
+ โŒ #29 + + - **Status:** โŒ `failed` + - **Duration:** `0.000171` s + + ### ๐Ÿ”ง Setup Phase + +
+ ๐Ÿ“Œ Duration + + ``` + `0.0001254229573532939` + ``` + +
+
+ ๐Ÿ“Œ Outcome + + ``` + `passed` + ``` + +
+ + ### ๐Ÿ”ง Call Phase + +
+ ๐Ÿ“Œ Duration + + ``` + `0.00017133902292698622` + ``` + +
+
+ ๐Ÿ“Œ Outcome + + ``` + `failed` + ``` + +
+
+ ๐Ÿ“Œ Crash + + ``` + `path: `/workspace/tligui_y/slic/tests/test_math_utils.py``, `lineno: `83``, `message: `OverflowError: math range error`` + ``` + +
+
+ ๐Ÿ“Œ Traceback + + ``` + `path: `tests/test_math_utils.py``, `lineno: `83``, `message: `OverflowError`` + ``` + +
+
+ ๐Ÿ“Œ Longrepr + + ``` + `def test_floating_point_overflow(): + # Exponential overflow triggers OverflowError + > math.exp(1000) + E OverflowError: math range error + + tests/test_math_utils.py:83: OverflowError` + ``` + +
+ + ### ๐Ÿ”ง Teardown Phase + +
+ ๐Ÿ“Œ Duration + + ``` + `0.00014139094855636358` + ``` + +
+
+ ๐Ÿ“Œ Outcome + + ``` + `passed` + ``` + +
+ +
+ +
+
+ ๐Ÿ”ง Function: `test_value_error` + +
+ โŒ #30 + + - **Status:** โŒ `failed` + - **Duration:** `0.000163` s + + ### ๐Ÿ”ง Setup Phase + +
+ ๐Ÿ“Œ Duration + + ``` + `0.00011835095938295126` + ``` + +
+
+ ๐Ÿ“Œ Outcome + + ``` + `passed` + ``` + +
+ + ### ๐Ÿ”ง Call Phase + +
+ ๐Ÿ“Œ Duration + + ``` + `0.0001625650329515338` + ``` + +
+
+ ๐Ÿ“Œ Outcome + + ``` + `failed` + ``` + +
+
+ ๐Ÿ“Œ Crash + + ``` + `path: `/workspace/tligui_y/slic/tests/test_math_utils.py``, `lineno: `87``, `message: `ValueError: invalid literal for int() with base 10: 'invalid'`` + ``` + +
+
+ ๐Ÿ“Œ Traceback + + ``` + `path: `tests/test_math_utils.py``, `lineno: `87``, `message: `ValueError`` + ``` + +
+
+ ๐Ÿ“Œ Longrepr + + ``` + `def test_value_error(): + # ValueError on invalid integer conversion + > int("invalid") + E ValueError: invalid literal for int() with base 10: 'invalid' + + tests/test_math_utils.py:87: ValueError` + ``` + +
+ + ### ๐Ÿ”ง Teardown Phase + +
+ ๐Ÿ“Œ Duration + + ``` + `0.0001487360568717122` + ``` + +
+
+ ๐Ÿ“Œ Outcome + + ``` + `passed` + ``` + +
+ +
+ +
+
+ ๐Ÿ”ง Function: `test_type_error` + +
+ โŒ #31 + + - **Status:** โŒ `failed` + - **Duration:** `0.000150` s + + ### ๐Ÿ”ง Setup Phase + +
+ ๐Ÿ“Œ Duration + + ``` + `0.00011670205276459455` + ``` + +
+
+ ๐Ÿ“Œ Outcome + + ``` + `passed` + ``` + +
+ + ### ๐Ÿ”ง Call Phase + +
+ ๐Ÿ“Œ Duration + + ``` + `0.00015025900211185217` + ``` + +
+
+ ๐Ÿ“Œ Outcome + + ``` + `failed` + ``` + +
+
+ ๐Ÿ“Œ Crash + + ``` + `path: `/workspace/tligui_y/slic/tests/test_math_utils.py``, `lineno: `91``, `message: `TypeError: 'int' object is not iterable`` + ``` + +
+
+ ๐Ÿ“Œ Traceback + + ``` + `path: `tests/test_math_utils.py``, `lineno: `91``, `message: `TypeError`` + ``` + +
+
+ ๐Ÿ“Œ Longrepr + + ``` + `def test_type_error(): + # TypeError when passing wrong argument type to sum + > sum(5) + E TypeError: 'int' object is not iterable + + tests/test_math_utils.py:91: TypeError` + ``` + +
+ + ### ๐Ÿ”ง Teardown Phase + +
+ ๐Ÿ“Œ Duration + + ``` + `0.00015126296784728765` + ``` + +
+
+ ๐Ÿ“Œ Outcome + + ``` + `passed` + ``` + +
+ +
+ +
+
+ ๐Ÿ”ง Function: `test_unhandled_exception` + +
+ โŒ #32 + + - **Status:** โŒ `failed` + - **Duration:** `0.000148` s + + ### ๐Ÿ”ง Setup Phase + +
+ ๐Ÿ“Œ Duration + + ``` + `0.00011894991621375084` + ``` + +
+
+ ๐Ÿ“Œ Outcome + + ``` + `passed` + ``` + +
+ + ### ๐Ÿ”ง Call Phase + +
+ ๐Ÿ“Œ Duration + + ``` + `0.0001481849467381835` + ``` + +
+
+ ๐Ÿ“Œ Outcome + + ``` + `failed` + ``` + +
+
+ ๐Ÿ“Œ Crash + + ``` + `path: `/workspace/tligui_y/slic/tests/test_math_utils.py``, `lineno: `95``, `message: `Exception: Generic unhandled exception`` + ``` + +
+
+ ๐Ÿ“Œ Traceback + + ``` + `path: `tests/test_math_utils.py``, `lineno: `95``, `message: `Exception`` + ``` + +
+
+ ๐Ÿ“Œ Longrepr + + ``` + `def test_unhandled_exception(): + # Raises generic unhandled Exception + > raise Exception("Generic unhandled exception") + E Exception: Generic unhandled exception + + tests/test_math_utils.py:95: Exception` + ``` + +
+ + ### ๐Ÿ”ง Teardown Phase + +
+ ๐Ÿ“Œ Duration + + ``` + `0.00013894704170525074` + ``` + +
+
+ ๐Ÿ“Œ Outcome + + ``` + `passed` + ``` + +
+ +
+ +
+
+ ๐Ÿ”ง Function: `test_custom_error` + +
+ โŒ #33 + + - **Status:** โŒ `failed` + - **Duration:** `0.000148` s + + ### ๐Ÿ”ง Setup Phase + +
+ ๐Ÿ“Œ Duration + + ``` + `0.00011696608271449804` + ``` + +
+
+ ๐Ÿ“Œ Outcome + + ``` + `passed` + ``` + +
+ + ### ๐Ÿ”ง Call Phase + +
+ ๐Ÿ“Œ Duration + + ``` + `0.00014750100672245026` + ``` + +
+
+ ๐Ÿ“Œ Outcome + + ``` + `failed` + ``` + +
+
+ ๐Ÿ“Œ Crash + + ``` + `path: `/workspace/tligui_y/slic/tests/test_math_utils.py``, `lineno: `99``, `message: `test_math_utils.CustomError: Custom error simulation`` + ``` + +
+
+ ๐Ÿ“Œ Traceback + + ``` + `path: `tests/test_math_utils.py``, `lineno: `99``, `message: `CustomError`` + ``` + +
+
+ ๐Ÿ“Œ Longrepr + + ``` + `def test_custom_error(): + # Raises user-defined CustomError exception + > raise CustomError("Custom error simulation") + E test_math_utils.CustomError: Custom error simulation + + tests/test_math_utils.py:99: CustomError` + ``` + +
+ + ### ๐Ÿ”ง Teardown Phase + +
+ ๐Ÿ“Œ Duration + + ``` + `0.00013697310350835323` + ``` + +
+
+ ๐Ÿ“Œ Outcome + + ``` + `passed` + ``` + +
+ +
+ +
+
+ ๐Ÿ”ง Function: `test_stop_iteration_direct` + +
+ โŒ #34 + + - **Status:** โŒ `failed` + - **Duration:** `0.000162` s + + ### ๐Ÿ”ง Setup Phase + +
+ ๐Ÿ“Œ Duration + + ``` + `0.00011839705985039473` + ``` + +
+
+ ๐Ÿ“Œ Outcome + + ``` + `passed` + ``` + +
+ + ### ๐Ÿ”ง Call Phase + +
+ ๐Ÿ“Œ Duration + + ``` + `0.00016201799735426903` + ``` + +
+
+ ๐Ÿ“Œ 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: `None``, `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(): + # Directly raise StopIteration exception + > raise StopIteration() + E StopIteration + + tests/test_math_utils.py:103: StopIteration + + The above exception was the direct cause of the following exception: + + cls = + func = . at 0x7fafce0d8550> + when = 'call' + reraise = (, ) + + @classmethod + def from_call( + cls, + func: Callable[[], TResult], + when: Literal["collect", "setup", "call", "teardown"], + reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, + ) -> CallInfo[TResult]: + """Call func, wrapping the result in a CallInfo. + + :param func: + The function to call. Called without arguments. + :type func: Callable[[], _pytest.runner.TResult] + :param when: + The phase in which the function is called. + :param reraise: + Exception or exceptions that shall propagate if raised by the + function, instead of being wrapped in the CallInfo. + """ + excinfo = None + start = timing.time() + precise_start = timing.perf_counter() + try: + > result: TResult | None = func() + + .pixi/envs/default/lib/python3.8/site-packages/_pytest/runner.py:341: + _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + .pixi/envs/default/lib/python3.8/site-packages/_pytest/runner.py:242: in + lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise + .pixi/envs/default/lib/python3.8/site-packages/pluggy/_hooks.py:513: in __call__ + return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) + .pixi/envs/default/lib/python3.8/site-packages/pluggy/_manager.py:120: in _hookexec + return self._inner_hookexec(hook_name, methods, kwargs, firstresult) + .pixi/envs/default/lib/python3.8/site-packages/_pytest/threadexception.py:92: in pytest_runtest_call + yield from thread_exception_runtest_hook() + .pixi/envs/default/lib/python3.8/site-packages/_pytest/threadexception.py:68: in thread_exception_runtest_hook + yield + .pixi/envs/default/lib/python3.8/site-packages/_pytest/unraisableexception.py:95: in pytest_runtest_call + yield from unraisable_exception_runtest_hook() + .pixi/envs/default/lib/python3.8/site-packages/_pytest/unraisableexception.py:70: in unraisable_exception_runtest_hook + yield + .pixi/envs/default/lib/python3.8/site-packages/_pytest/logging.py:846: in pytest_runtest_call + yield from self._runtest_for(item, "call") + .pixi/envs/default/lib/python3.8/site-packages/_pytest/logging.py:829: in _runtest_for + yield + _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + + self = _capture_fixture=None> + item = + + @hookimpl(wrapper=True) + def pytest_runtest_call(self, item: Item) -> Generator[None]: + with self.item_capture("call", item): + > return (yield) + E RuntimeError: generator raised StopIteration + + .pixi/envs/default/lib/python3.8/site-packages/_pytest/capture.py:880: RuntimeError` + ``` + +
+ + ### ๐Ÿ”ง Teardown Phase + +
+ ๐Ÿ“Œ Duration + + ``` + `0.00026274402625858784` + ``` + +
+
+ ๐Ÿ“Œ Outcome + + ``` + `passed` + ``` + +
+ +
+ +
+
+ ๐Ÿ”ง Function: `test_generator_exit_direct` + +
+ โŒ #35 + + - **Status:** โŒ `failed` + - **Duration:** `0.000186` s + + ### ๐Ÿ”ง Setup Phase + +
+ ๐Ÿ“Œ Duration + + ``` + `0.0001527620479464531` + ``` + +
+
+ ๐Ÿ“Œ Outcome + + ``` + `passed` + ``` + +
+ + ### ๐Ÿ”ง Call Phase + +
+ ๐Ÿ“Œ Duration + + ``` + `0.00018576800357550383` + ``` + +
+
+ ๐Ÿ“Œ Outcome + + ``` + `failed` + ``` + +
+
+ ๐Ÿ“Œ Crash + + ``` + `path: `/workspace/tligui_y/slic/tests/test_math_utils.py``, `lineno: `107``, `message: `GeneratorExit`` + ``` + +
+
+ ๐Ÿ“Œ Traceback + + ``` + `path: `tests/test_math_utils.py``, `lineno: `107``, `message: `GeneratorExit`` + ``` + +
+
+ ๐Ÿ“Œ Longrepr + + ``` + `def test_generator_exit_direct(): + # Directly raise GeneratorExit exception + > raise GeneratorExit() + E GeneratorExit + + tests/test_math_utils.py:107: GeneratorExit` + ``` + +
+ + ### ๐Ÿ”ง Teardown Phase + +
+ ๐Ÿ“Œ Duration + + ``` + `0.0001841250341385603` + ``` + +
+
+ ๐Ÿ“Œ Outcome + + ``` + `passed` + ``` + +
+ +
+ +
+
+ ๐Ÿ”ง Function: `test_recursion_limit` + +
+ โŒ #36 + + - **Status:** โŒ `failed` + - **Duration:** `0.000171` s + + ### ๐Ÿ”ง Setup Phase + +
+ ๐Ÿ“Œ Duration + + ``` + `0.00012514600530266762` + ``` + +
+
+ ๐Ÿ“Œ Outcome + + ``` + `passed` + ``` + +
+ + ### ๐Ÿ”ง Call Phase + +
+ ๐Ÿ“Œ Duration + + ``` + `0.00017099804244935513` + ``` + +
+
+ ๐Ÿ“Œ Outcome + + ``` + `failed` + ``` + +
+
+ ๐Ÿ“Œ Crash + + ``` + `path: `/workspace/tligui_y/slic/tests/test_math_utils.py``, `lineno: `112``, `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: `112``, `message: `RecursionError`` + ``` + +
+
+ ๐Ÿ“Œ Longrepr + + ``` + `def test_recursion_limit(): + # Lower recursion limit to force RecursionError on deep recursion + original_limit = sys.getrecursionlimit() + > sys.setrecursionlimit(50) + E RecursionError: cannot set the recursion limit to 50 at the recursion depth 37: the limit is too low + + tests/test_math_utils.py:112: RecursionError` + ``` + +
+ + ### ๐Ÿ”ง Teardown Phase + +
+ ๐Ÿ“Œ Duration + + ``` + `0.00014385196845978498` + ``` + +
+
+ ๐Ÿ“Œ Outcome + + ``` + `passed` + ``` + +
+ +
+ +
+
+ ๐Ÿ”ง Function: `test_malformed_code` + +
+ โŒ #37 + + - **Status:** โŒ `failed` + - **Duration:** `0.000161` s + + ### ๐Ÿ”ง Setup Phase + +
+ ๐Ÿ“Œ Duration + + ``` + `0.0001204499276354909` + ``` + +
+
+ ๐Ÿ“Œ Outcome + + ``` + `passed` + ``` + +
+ + ### ๐Ÿ”ง Call Phase + +
+ ๐Ÿ“Œ Duration + + ``` + `0.00016057502944022417` + ``` + +
+
+ ๐Ÿ“Œ Outcome + + ``` + `failed` + ``` + +
+
+ ๐Ÿ“Œ Crash + + ``` + `path: `/workspace/tligui_y/slic/tests/test_math_utils.py``, `lineno: `122``, `message: ` File "", line 1 + def bad(: + ^ + SyntaxError: invalid syntax`` + ``` + +
+
+ ๐Ÿ“Œ Traceback + + ``` + `path: `tests/test_math_utils.py``, `lineno: `122``, `message: `SyntaxError`` + ``` + +
+
+ ๐Ÿ“Œ Longrepr + + ``` + `def test_malformed_code(): + # SyntaxError when executing malformed Python code + > exec("def bad(:\n pass") + E File "", line 1 + E def bad(: + E ^ + E SyntaxError: invalid syntax + + tests/test_math_utils.py:122: SyntaxError` + ``` + +
+ + ### ๐Ÿ”ง Teardown Phase + +
+ ๐Ÿ“Œ Duration + + ``` + `0.00013678392861038446` + ``` + +
+
+ ๐Ÿ“Œ Outcome + + ``` + `passed` + ``` + +
+ +
+ +
+
+ ๐Ÿ”ง Function: `test_sys_exit` + +
+ โŒ #38 + + - **Status:** โŒ `failed` + - **Duration:** `0.000147` s + + ### ๐Ÿ”ง Setup Phase + +
+ ๐Ÿ“Œ Duration + + ``` + `0.00011535489466041327` + ``` + +
+
+ ๐Ÿ“Œ Outcome + + ``` + `passed` + ``` + +
+ + ### ๐Ÿ”ง Call Phase + +
+ ๐Ÿ“Œ Duration + + ``` + `0.0001469220733270049` + ``` + +
+
+ ๐Ÿ“Œ Outcome + + ``` + `failed` + ``` + +
+
+ ๐Ÿ“Œ Crash + + ``` + `path: `/workspace/tligui_y/slic/tests/test_math_utils.py``, `lineno: `126``, `message: `SystemExit: 1`` + ``` + +
+
+ ๐Ÿ“Œ Traceback + + ``` + `path: `tests/test_math_utils.py``, `lineno: `126``, `message: `SystemExit`` + ``` + +
+
+ ๐Ÿ“Œ Longrepr + + ``` + `def test_sys_exit(): + # Simulate SystemExit via sys.exit + > sys.exit(1) + E SystemExit: 1 + + tests/test_math_utils.py:126: SystemExit` + ``` + +
+ + ### ๐Ÿ”ง Teardown Phase + +
+ ๐Ÿ“Œ Duration + + ``` + `0.00013784505426883698` + ``` + +
+
+ ๐Ÿ“Œ Outcome + + ``` + `passed` + ``` + +
+ +
+ +
+
+ ๐Ÿ”ง Function: `test_broken_function` + +
+ โŒ #39 + + - **Status:** โŒ `failed` + - **Duration:** `0.000152` s + + ### ๐Ÿ”ง Setup Phase + +
+ ๐Ÿ“Œ Duration + + ``` + `0.0001164779532700777` + ``` + +
+
+ ๐Ÿ“Œ Outcome + + ``` + `passed` + ``` + +
+ + ### ๐Ÿ”ง Call Phase + +
+ ๐Ÿ“Œ Duration + + ``` + `0.00015197100583463907` + ``` + +
+
+ ๐Ÿ“Œ Outcome + + ``` + `failed` + ``` + +
+
+ ๐Ÿ“Œ Crash + + ``` + `path: `/workspace/tligui_y/slic/tests/test_math_utils.py``, `lineno: `131``, `message: `TypeError: Broken function`` + ``` + +
+
+ ๐Ÿ“Œ Traceback + + ``` + `path: `tests/test_math_utils.py``, `lineno: `132``, `message: `None``, `path: `tests/test_math_utils.py``, `lineno: `131``, `message: `TypeError`` + ``` + +
+
+ ๐Ÿ“Œ Longrepr + + ``` + `def test_broken_function(): + # Simulate broken function raising TypeError + def broken_func(*args, **kwargs): + raise TypeError("Broken function") + > broken_func() + + tests/test_math_utils.py:132: + _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + + args = (), kwargs = {} + + def broken_func(*args, **kwargs): + > raise TypeError("Broken function") + E TypeError: Broken function + + tests/test_math_utils.py:131: TypeError` + ``` + +
+ + ### ๐Ÿ”ง Teardown Phase + +
+ ๐Ÿ“Œ Duration + + ``` + `0.00014306092634797096` + ``` + +
+
+ ๐Ÿ“Œ Outcome + + ``` + `passed` + ``` + +
+ +
+ +
+
+ ๐Ÿ”ง Function: `test_import_error_patch` + +
+ โŒ #40 + + - **Status:** โŒ `failed` + - **Duration:** `0.000156` s + + ### ๐Ÿ”ง Setup Phase + +
+ ๐Ÿ“Œ Duration + + ``` + `0.0001171020558103919` + ``` + +
+
+ ๐Ÿ“Œ Outcome + + ``` + `passed` + ``` + +
+ + ### ๐Ÿ”ง Call Phase + +
+ ๐Ÿ“Œ Duration + + ``` + `0.00015627394896000624` + ``` + +
+
+ ๐Ÿ“Œ Outcome + + ``` + `failed` + ``` + +
+
+ ๐Ÿ“Œ Crash + + ``` + `path: `/workspace/tligui_y/slic/tests/test_math_utils.py``, `lineno: `139``, `message: `ImportError: Simulated ImportError`` + ``` + +
+
+ ๐Ÿ“Œ Traceback + + ``` + `path: `tests/test_math_utils.py``, `lineno: `144``, `message: `None``, `path: `tests/test_math_utils.py``, `lineno: `139``, `message: `ImportError`` + ``` + +
+
+ ๐Ÿ“Œ Longrepr + + ``` + `def test_import_error_patch(): + # Patch import to simulate ImportError on specific module + original_import = __import__ + def fake_import(name, *args, **kwargs): + if name == "fake_module": + raise ImportError("Simulated ImportError") + return original_import(name, *args, **kwargs) + import builtins + builtins.__import__, old_import = fake_import, builtins.__import__ + try: + > __import__("fake_module") + + tests/test_math_utils.py:144: + _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + + name = 'fake_module', args = (), kwargs = {} + + def fake_import(name, *args, **kwargs): + if name == "fake_module": + > raise ImportError("Simulated ImportError") + E ImportError: Simulated ImportError + + tests/test_math_utils.py:139: ImportError` + ``` + +
+ + ### ๐Ÿ”ง Teardown Phase + +
+ ๐Ÿ“Œ Duration + + ``` + `0.00014185498002916574` + ``` + +
+
+ ๐Ÿ“Œ Outcome + + ``` + `passed` + ``` + +
+ +
+ +
+
+ ๐Ÿ”ง Function: `test_module_not_found_error` + +
+ โŒ #41 + + - **Status:** โŒ `failed` + - **Duration:** `0.000489` s + + ### ๐Ÿ”ง Setup Phase + +
+ ๐Ÿ“Œ Duration + + ``` + `0.00011491100303828716` + ``` + +
+
+ ๐Ÿ“Œ Outcome + + ``` + `passed` + ``` + +
+ + ### ๐Ÿ”ง Call Phase + +
+ ๐Ÿ“Œ Duration + + ``` + `0.0004885760135948658` + ``` + +
+
+ ๐Ÿ“Œ Outcome + + ``` + `failed` + ``` + +
+
+ ๐Ÿ“Œ Crash + + ``` + `path: ```, `lineno: `973``, `message: `ModuleNotFoundError: No module named 'non_existent_module_xyz'`` + ``` + +
+
+ ๐Ÿ“Œ Traceback + + ``` + `path: `tests/test_math_utils.py``, `lineno: `150``, `message: `None``, `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(): + # Raises ModuleNotFoundError (subclass of ImportError) for missing module + > importlib.import_module("non_existent_module_xyz") + + tests/test_math_utils.py:150: + _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + .pixi/envs/default/lib/python3.8/importlib/__init__.py:127: in import_module + return _bootstrap._gcd_import(name[level:], package, level) + :1014: in _gcd_import + ??? + :991: in _find_and_load + ??? + _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + + name = 'non_existent_module_xyz' + import_ = + + > ??? + E ModuleNotFoundError: No module named 'non_existent_module_xyz' + + :973: ModuleNotFoundError` + ``` + +
+ + ### ๐Ÿ”ง Teardown Phase + +
+ ๐Ÿ“Œ Duration + + ``` + `0.00015132792759686708` + ``` + +
+
+ ๐Ÿ“Œ Outcome + + ``` + `passed` + ``` + +
+ +
+ +
+ +
+
+ ๐Ÿ“ test_string_utils.py + +
+ ๐Ÿ”ง Function: `test_uppercase_type_error` + +
+ โŒ #43 + + - **Status:** โŒ `failed` + - **Duration:** `0.000140` s + + ### ๐Ÿ”ง Setup Phase + +
+ ๐Ÿ“Œ Duration + + ``` + `0.00010353792458772659` + ``` + +
+
+ ๐Ÿ“Œ Outcome + + ``` + `passed` + ``` + +
+ + ### ๐Ÿ”ง Call Phase + +
+ ๐Ÿ“Œ Duration + + ``` + `0.00014010095037519932` + ``` + +
+
+ ๐Ÿ“Œ Outcome + + ``` + `failed` + ``` + +
+
+ ๐Ÿ“Œ Crash + + ``` + `path: `/workspace/tligui_y/slic/functions/string_utils.py``, `lineno: `3``, `message: `TypeError: Input cannot be None`` + ``` + +
+
+ ๐Ÿ“Œ Traceback + + ``` + `path: `tests/test_string_utils.py``, `lineno: `14``, `message: `None``, `path: `functions/string_utils.py``, `lineno: `3``, `message: `TypeError`` + ``` + +
+
+ ๐Ÿ“Œ Longrepr + + ``` + `def test_uppercase_type_error(): + # TypeError when input is None (invalid input) + > uppercase(None) + + tests/test_string_utils.py:14: + _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + + s = None + + def uppercase(s): + if s is None: + > raise TypeError("Input cannot be None") + E TypeError: Input cannot be None + + functions/string_utils.py:3: TypeError` + ``` + +
+ + ### ๐Ÿ”ง Teardown Phase + +
+ ๐Ÿ“Œ Duration + + ``` + `0.00013964495155960321` + ``` + +
+
+ ๐Ÿ“Œ Outcome + + ``` + `passed` + ``` + +
+ +
+ +
+
+ ๐Ÿ”ง Function: `test_unicode_decode_error` + +
+ โŒ #46 + + - **Status:** โŒ `failed` + - **Duration:** `0.000143` s + + ### ๐Ÿ”ง Setup Phase + +
+ ๐Ÿ“Œ Duration + + ``` + `0.00010833691339939833` + ``` + +
+
+ ๐Ÿ“Œ Outcome + + ``` + `passed` + ``` + +
+ + ### ๐Ÿ”ง Call Phase + +
+ ๐Ÿ“Œ Duration + + ``` + `0.0001430049305781722` + ``` + +
+
+ ๐Ÿ“Œ Outcome + + ``` + `failed` + ``` + +
+
+ ๐Ÿ“Œ Crash + + ``` + `path: `/workspace/tligui_y/slic/tests/test_string_utils.py``, `lineno: `26``, `message: `UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 0: invalid start byte`` + ``` + +
+
+ ๐Ÿ“Œ Traceback + + ``` + `path: `tests/test_string_utils.py``, `lineno: `26``, `message: `UnicodeDecodeError`` + ``` + +
+
+ ๐Ÿ“Œ Longrepr + + ``` + `def test_unicode_decode_error(): + # UnicodeDecodeError when decoding invalid byte sequence + > b'\xff'.decode('utf-8') + E UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 0: invalid start byte + + tests/test_string_utils.py:26: UnicodeDecodeError` + ``` + +
+ + ### ๐Ÿ”ง Teardown Phase + +
+ ๐Ÿ“Œ Duration + + ``` + `0.00013374397531151772` + ``` + +
+
+ ๐Ÿ“Œ Outcome + + ``` + `passed` + ``` + +
+ +
+ +
+
+ ๐Ÿ”ง Function: `test_unicode_decode_surrogateescape` + +
+ โŒ #47 + + - **Status:** โŒ `failed` + - **Duration:** `0.000155` s + + ### ๐Ÿ”ง Setup Phase + +
+ ๐Ÿ“Œ Duration + + ``` + `0.00012567604426294565` + ``` + +
+
+ ๐Ÿ“Œ Outcome + + ``` + `passed` + ``` + +
+ + ### ๐Ÿ”ง Call Phase + +
+ ๐Ÿ“Œ Duration + + ``` + `0.0001547579886391759` + ``` + +
+
+ ๐Ÿ“Œ Outcome + + ``` + `failed` + ``` + +
+
+ ๐Ÿ“Œ Crash + + ``` + `path: `/workspace/tligui_y/slic/tests/test_string_utils.py``, `lineno: `30``, `message: `UnicodeDecodeError: 'utf-8' codec can't decode byte 0x80 in position 0: invalid start byte`` + ``` + +
+
+ ๐Ÿ“Œ Traceback + + ``` + `path: `tests/test_string_utils.py``, `lineno: `30``, `message: `UnicodeDecodeError`` + ``` + +
+
+ ๐Ÿ“Œ Longrepr + + ``` + `def test_unicode_decode_surrogateescape(): + # UnicodeDecodeError with strict error handler on invalid byte + > b"\x80".decode("utf-8", errors="strict") + E UnicodeDecodeError: 'utf-8' codec can't decode byte 0x80 in position 0: invalid start byte + + tests/test_string_utils.py:30: UnicodeDecodeError` + ``` + +
+ + ### ๐Ÿ”ง Teardown Phase + +
+ ๐Ÿ“Œ Duration + + ``` + `0.00013282708823680878` + ``` + +
+
+ ๐Ÿ“Œ Outcome + + ``` + `passed` + ``` + +
+ +
+ +
+ +
- -
-๐Ÿ“ test_math_utils.py - -#### ๐Ÿ”ง Function: `test_broken` - -###### โŒ #11 - -- **Status:** โŒ `failed` -- **Duration:** `0.000153` s - -### ๐Ÿ”ง Setup Phase - -###### ๐Ÿ“Œ Duration - -``` -`0.00013490708079189062` -``` - -###### ๐Ÿ“Œ Outcome - -``` -`passed` -``` - - -### ๐Ÿ”ง Call Phase - -###### ๐Ÿ“Œ Duration - -``` -`0.0001534830080345273` -``` - -###### ๐Ÿ“Œ 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(): - # simulating a broken or faulty test implementation that will cause the test to error -> want_the_test_to_fail -E NameError: name 'want_the_test_to_fail' is not defined - -tests/test_math_utils.py:16: NameError` -``` - - -### ๐Ÿ”ง Teardown Phase - -###### ๐Ÿ“Œ Duration - -``` -`0.00014054193161427975` -``` - -###### ๐Ÿ“Œ Outcome - -``` -`passed` -``` - -#### ๐Ÿ”ง Function: `test_call_missing_function` - -###### โŒ #12 - -- **Status:** โŒ `failed` -- **Duration:** `0.000164` s - -### ๐Ÿ”ง Setup Phase - -###### ๐Ÿ“Œ Duration - -``` -`0.00013450102414935827` -``` - -###### ๐Ÿ“Œ Outcome - -``` -`passed` -``` - - -### ๐Ÿ”ง Call Phase - -###### ๐Ÿ“Œ Duration - -``` -`0.00016440299805253744` -``` - -###### ๐Ÿ“Œ 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(): - # Accessing a missing function attribute raises AttributeError -> getattr(math_utils, "non_existent_function")() -E AttributeError: module 'functions.math_utils' has no attribute 'non_existent_function' - -tests/test_math_utils.py:20: AttributeError` -``` - - -### ๐Ÿ”ง Teardown Phase - -###### ๐Ÿ“Œ Duration - -``` -`0.00013949396088719368` -``` - -###### ๐Ÿ“Œ Outcome - -``` -`passed` -``` - -#### ๐Ÿ”ง Function: `test_addition_fail` - -###### โŒ #21 - -- **Status:** โŒ `failed` -- **Duration:** `0.000460` s - -### ๐Ÿ”ง Setup Phase - -###### ๐Ÿ“Œ Duration - -``` -`0.00010482210200279951` -``` - -###### ๐Ÿ“Œ Outcome - -``` -`passed` -``` - - -### ๐Ÿ”ง Call Phase - -###### ๐Ÿ“Œ Duration - -``` -`0.00046012108214199543` -``` - -###### ๐Ÿ“Œ Outcome - -``` -`failed` -``` - -###### ๐Ÿ“Œ Crash - -``` -`path: `/workspace/tligui_y/slic/tests/test_math_utils.py``, `lineno: `48``, `message: `assert 4 == 5 - + where 4 = addition(2, 2)`` -``` - -###### ๐Ÿ“Œ Traceback - -``` -`path: `tests/test_math_utils.py``, `lineno: `48``, `message: `AssertionError`` -``` - -###### ๐Ÿ“Œ Longrepr - -``` -`def test_addition_fail(): - # Assertion failure: expected incorrect result -> assert addition(2, 2) == 5 -E assert 4 == 5 -E + where 4 = addition(2, 2) - -tests/test_math_utils.py:48: AssertionError` -``` - - -### ๐Ÿ”ง Teardown Phase - -###### ๐Ÿ“Œ Duration - -``` -`0.00013959698844701052` -``` - -###### ๐Ÿ“Œ Outcome - -``` -`passed` -``` - -#### ๐Ÿ”ง Function: `test_division_zero` - -###### โŒ #22 - -- **Status:** โŒ `failed` -- **Duration:** `0.000166` s - -### ๐Ÿ”ง Setup Phase - -###### ๐Ÿ“Œ Duration - -``` -`0.0001177910016849637` -``` - -###### ๐Ÿ“Œ Outcome - -``` -`passed` -``` - - -### ๐Ÿ”ง Call Phase - -###### ๐Ÿ“Œ Duration - -``` -`0.00016630592290312052` -``` - -###### ๐Ÿ“Œ 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: `52``, `message: `None``, `path: `functions/math_utils.py``, `lineno: `5``, `message: `ZeroDivisionError`` -``` - -###### ๐Ÿ“Œ Longrepr - -``` -`def test_division_zero(): - # Will raise ZeroDivisionError if not handled in division -> division(1, 0) - -tests/test_math_utils.py:52: -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ - -a = 1, b = 0 - - def division(a, b): -> return a / b -E ZeroDivisionError: division by zero - -functions/math_utils.py:5: ZeroDivisionError` -``` - - -### ๐Ÿ”ง Teardown Phase - -###### ๐Ÿ“Œ Duration - -``` -`0.00014093692880123854` -``` - -###### ๐Ÿ“Œ Outcome - -``` -`passed` -``` - -#### ๐Ÿ”ง Function: `test_runtime_error` - -###### โŒ #24 - -- **Status:** โŒ `failed` -- **Duration:** `0.000150` s - -### ๐Ÿ”ง Setup Phase - -###### ๐Ÿ“Œ Duration - -``` -`0.00013403804041445255` -``` - -###### ๐Ÿ“Œ Outcome - -``` -`passed` -``` - - -### ๐Ÿ”ง Call Phase - -###### ๐Ÿ“Œ Duration - -``` -`0.00015042000450193882` -``` - -###### ๐Ÿ“Œ Outcome - -``` -`failed` -``` - -###### ๐Ÿ“Œ Crash - -``` -`path: `/workspace/tligui_y/slic/tests/test_math_utils.py``, `lineno: `61``, `message: `RuntimeError: Forced runtime error`` -``` - -###### ๐Ÿ“Œ Traceback - -``` -`path: `tests/test_math_utils.py``, `lineno: `61``, `message: `RuntimeError`` -``` - -###### ๐Ÿ“Œ Longrepr - -``` -`def test_runtime_error(): - # Test raises an uncaught RuntimeError -> raise RuntimeError("Forced runtime error") -E RuntimeError: Forced runtime error - -tests/test_math_utils.py:61: RuntimeError` -``` - - -### ๐Ÿ”ง Teardown Phase - -###### ๐Ÿ“Œ Duration - -``` -`0.00013818300794810057` -``` - -###### ๐Ÿ“Œ Outcome - -``` -`passed` -``` - -#### ๐Ÿ”ง Function: `test_memory_error` - -###### โŒ #25 - -- **Status:** โŒ `failed` -- **Duration:** `0.000159` s - -### ๐Ÿ”ง Setup Phase - -###### ๐Ÿ“Œ Duration - -``` -`0.00011951697524636984` -``` - -###### ๐Ÿ“Œ Outcome - -``` -`passed` -``` - - -### ๐Ÿ”ง Call Phase - -###### ๐Ÿ“Œ Duration - -``` -`0.00015881890431046486` -``` - -###### ๐Ÿ“Œ Outcome - -``` -`failed` -``` - -###### ๐Ÿ“Œ Crash - -``` -`path: `/workspace/tligui_y/slic/tests/test_math_utils.py``, `lineno: `65``, `message: `MemoryError: Simulated memory error`` -``` - -###### ๐Ÿ“Œ Traceback - -``` -`path: `tests/test_math_utils.py``, `lineno: `65``, `message: `MemoryError`` -``` - -###### ๐Ÿ“Œ Longrepr - -``` -`def test_memory_error(): - # Manually raise MemoryError to simulate out-of-memory condition -> raise MemoryError("Simulated memory error") -E MemoryError: Simulated memory error - -tests/test_math_utils.py:65: MemoryError` -``` - - -### ๐Ÿ”ง Teardown Phase - -###### ๐Ÿ“Œ Duration - -``` -`0.000157942995429039` -``` - -###### ๐Ÿ“Œ Outcome - -``` -`passed` -``` - -#### ๐Ÿ”ง Function: `test_timeout_error` - -###### โŒ #26 - -- **Status:** โŒ `failed` -- **Duration:** `0.000148` s - -### ๐Ÿ”ง Setup Phase - -###### ๐Ÿ“Œ Duration - -``` -`0.0001200319966301322` -``` - -###### ๐Ÿ“Œ Outcome - -``` -`passed` -``` - - -### ๐Ÿ”ง Call Phase - -###### ๐Ÿ“Œ Duration - -``` -`0.0001476749312132597` -``` - -###### ๐Ÿ“Œ Outcome - -``` -`failed` -``` - -###### ๐Ÿ“Œ Crash - -``` -`path: `/workspace/tligui_y/slic/tests/test_math_utils.py``, `lineno: `69``, `message: `TimeoutError: Simulated timeout error`` -``` - -###### ๐Ÿ“Œ Traceback - -``` -`path: `tests/test_math_utils.py``, `lineno: `69``, `message: `TimeoutError`` -``` - -###### ๐Ÿ“Œ Longrepr - -``` -`def test_timeout_error(): - # Manually raise TimeoutError simulating timeout conditions -> raise TimeoutError("Simulated timeout error") -E TimeoutError: Simulated timeout error - -tests/test_math_utils.py:69: TimeoutError` -``` - - -### ๐Ÿ”ง Teardown Phase - -###### ๐Ÿ“Œ Duration - -``` -`0.00013843702618032694` -``` - -###### ๐Ÿ“Œ Outcome - -``` -`passed` -``` - -#### ๐Ÿ”ง Function: `test_recursion_error` - -###### โŒ #27 - -- **Status:** โŒ `failed` -- **Duration:** `0.000790` s - -### ๐Ÿ”ง Setup Phase - -###### ๐Ÿ“Œ Duration - -``` -`0.00012984592467546463` -``` - -###### ๐Ÿ“Œ Outcome - -``` -`passed` -``` - - -### ๐Ÿ”ง Call Phase - -###### ๐Ÿ“Œ Duration - -``` -`0.0007902949582785368` -``` - -###### ๐Ÿ“Œ Outcome - -``` -`failed` -``` - -###### ๐Ÿ“Œ Crash - -``` -`path: `/workspace/tligui_y/slic/tests/test_math_utils.py``, `lineno: `74``, `message: `RecursionError: maximum recursion depth exceeded`` -``` - -###### ๐Ÿ“Œ Traceback - -``` -`path: `tests/test_math_utils.py``, `lineno: `75``, `message: `None``, `path: `tests/test_math_utils.py``, `lineno: `74``, `message: `in recursive``, `path: `tests/test_math_utils.py``, `lineno: `74``, `message: `in recursive`` -``` - -###### ๐Ÿ“Œ Longrepr - -``` -`def test_recursion_error(): - # Infinite recursion triggers RecursionError - def recursive(): - return recursive() -> recursive() - -tests/test_math_utils.py:75: -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -tests/test_math_utils.py:74: in recursive - return recursive() -tests/test_math_utils.py:74: in recursive - return recursive() -E RecursionError: maximum recursion depth exceeded -!!! Recursion detected (same locals & position)` -``` - - -### ๐Ÿ”ง Teardown Phase - -###### ๐Ÿ“Œ Duration - -``` -`0.00014732603449374437` -``` - -###### ๐Ÿ“Œ Outcome - -``` -`passed` -``` - -#### ๐Ÿ”ง Function: `test_floating_point_error` - -###### โŒ #28 - -- **Status:** โŒ `failed` -- **Duration:** `0.000147` s - -### ๐Ÿ”ง Setup Phase - -###### ๐Ÿ“Œ Duration - -``` -`0.00011733302380889654` -``` - -###### ๐Ÿ“Œ Outcome - -``` -`passed` -``` - - -### ๐Ÿ”ง Call Phase - -###### ๐Ÿ“Œ Duration - -``` -`0.00014691194519400597` -``` - -###### ๐Ÿ“Œ Outcome - -``` -`failed` -``` - -###### ๐Ÿ“Œ Crash - -``` -`path: `/workspace/tligui_y/slic/tests/test_math_utils.py``, `lineno: `79``, `message: `FloatingPointError: Simulated floating point error`` -``` - -###### ๐Ÿ“Œ Traceback - -``` -`path: `tests/test_math_utils.py``, `lineno: `79``, `message: `FloatingPointError`` -``` - -###### ๐Ÿ“Œ Longrepr - -``` -`def test_floating_point_error(): - # Manually raise FloatingPointError (rare in practice) -> raise FloatingPointError("Simulated floating point error") -E FloatingPointError: Simulated floating point error - -tests/test_math_utils.py:79: FloatingPointError` -``` - - -### ๐Ÿ”ง Teardown Phase - -###### ๐Ÿ“Œ Duration - -``` -`0.00014001107774674892` -``` - -###### ๐Ÿ“Œ Outcome - -``` -`passed` -``` - -#### ๐Ÿ”ง Function: `test_floating_point_overflow` - -###### โŒ #29 - -- **Status:** โŒ `failed` -- **Duration:** `0.000170` s - -### ๐Ÿ”ง Setup Phase - -###### ๐Ÿ“Œ Duration - -``` -`0.00011868204455822706` -``` - -###### ๐Ÿ“Œ Outcome - -``` -`passed` -``` - - -### ๐Ÿ”ง Call Phase - -###### ๐Ÿ“Œ Duration - -``` -`0.00017008197028189898` -``` - -###### ๐Ÿ“Œ Outcome - -``` -`failed` -``` - -###### ๐Ÿ“Œ Crash - -``` -`path: `/workspace/tligui_y/slic/tests/test_math_utils.py``, `lineno: `83``, `message: `OverflowError: math range error`` -``` - -###### ๐Ÿ“Œ Traceback - -``` -`path: `tests/test_math_utils.py``, `lineno: `83``, `message: `OverflowError`` -``` - -###### ๐Ÿ“Œ Longrepr - -``` -`def test_floating_point_overflow(): - # Exponential overflow triggers OverflowError -> math.exp(1000) -E OverflowError: math range error - -tests/test_math_utils.py:83: OverflowError` -``` - - -### ๐Ÿ”ง Teardown Phase - -###### ๐Ÿ“Œ Duration - -``` -`0.00014039804227650166` -``` - -###### ๐Ÿ“Œ Outcome - -``` -`passed` -``` - -#### ๐Ÿ”ง Function: `test_value_error` - -###### โŒ #30 - -- **Status:** โŒ `failed` -- **Duration:** `0.000153` s - -### ๐Ÿ”ง Setup Phase - -###### ๐Ÿ“Œ Duration - -``` -`0.0001175740035250783` -``` - -###### ๐Ÿ“Œ Outcome - -``` -`passed` -``` - - -### ๐Ÿ”ง Call Phase - -###### ๐Ÿ“Œ Duration - -``` -`0.00015287508722394705` -``` - -###### ๐Ÿ“Œ Outcome - -``` -`failed` -``` - -###### ๐Ÿ“Œ Crash - -``` -`path: `/workspace/tligui_y/slic/tests/test_math_utils.py``, `lineno: `87``, `message: `ValueError: invalid literal for int() with base 10: 'invalid'`` -``` - -###### ๐Ÿ“Œ Traceback - -``` -`path: `tests/test_math_utils.py``, `lineno: `87``, `message: `ValueError`` -``` - -###### ๐Ÿ“Œ Longrepr - -``` -`def test_value_error(): - # ValueError on invalid integer conversion -> int("invalid") -E ValueError: invalid literal for int() with base 10: 'invalid' - -tests/test_math_utils.py:87: ValueError` -``` - - -### ๐Ÿ”ง Teardown Phase - -###### ๐Ÿ“Œ Duration - -``` -`0.00013840000610798597` -``` - -###### ๐Ÿ“Œ Outcome - -``` -`passed` -``` - -#### ๐Ÿ”ง Function: `test_type_error` - -###### โŒ #31 - -- **Status:** โŒ `failed` -- **Duration:** `0.000148` s - -### ๐Ÿ”ง Setup Phase - -###### ๐Ÿ“Œ Duration - -``` -`0.00011628307402133942` -``` - -###### ๐Ÿ“Œ Outcome - -``` -`passed` -``` - - -### ๐Ÿ”ง Call Phase - -###### ๐Ÿ“Œ Duration - -``` -`0.00014842103701084852` -``` - -###### ๐Ÿ“Œ Outcome - -``` -`failed` -``` - -###### ๐Ÿ“Œ Crash - -``` -`path: `/workspace/tligui_y/slic/tests/test_math_utils.py``, `lineno: `91``, `message: `TypeError: 'int' object is not iterable`` -``` - -###### ๐Ÿ“Œ Traceback - -``` -`path: `tests/test_math_utils.py``, `lineno: `91``, `message: `TypeError`` -``` - -###### ๐Ÿ“Œ Longrepr - -``` -`def test_type_error(): - # TypeError when passing wrong argument type to sum -> sum(5) -E TypeError: 'int' object is not iterable - -tests/test_math_utils.py:91: TypeError` -``` - - -### ๐Ÿ”ง Teardown Phase - -###### ๐Ÿ“Œ Duration - -``` -`0.0001388370292261243` -``` - -###### ๐Ÿ“Œ Outcome - -``` -`passed` -``` - -#### ๐Ÿ”ง Function: `test_unhandled_exception` - -###### โŒ #32 - -- **Status:** โŒ `failed` -- **Duration:** `0.000147` s - -### ๐Ÿ”ง Setup Phase - -###### ๐Ÿ“Œ Duration - -``` -`0.00011989299673587084` -``` - -###### ๐Ÿ“Œ Outcome - -``` -`passed` -``` - - -### ๐Ÿ”ง Call Phase - -###### ๐Ÿ“Œ Duration - -``` -`0.0001470400020480156` -``` - -###### ๐Ÿ“Œ Outcome - -``` -`failed` -``` - -###### ๐Ÿ“Œ Crash - -``` -`path: `/workspace/tligui_y/slic/tests/test_math_utils.py``, `lineno: `95``, `message: `Exception: Generic unhandled exception`` -``` - -###### ๐Ÿ“Œ Traceback - -``` -`path: `tests/test_math_utils.py``, `lineno: `95``, `message: `Exception`` -``` - -###### ๐Ÿ“Œ Longrepr - -``` -`def test_unhandled_exception(): - # Raises generic unhandled Exception -> raise Exception("Generic unhandled exception") -E Exception: Generic unhandled exception - -tests/test_math_utils.py:95: Exception` -``` - - -### ๐Ÿ”ง Teardown Phase - -###### ๐Ÿ“Œ Duration - -``` -`0.00013924797531217337` -``` - -###### ๐Ÿ“Œ Outcome - -``` -`passed` -``` - -#### ๐Ÿ”ง Function: `test_custom_error` - -###### โŒ #33 - -- **Status:** โŒ `failed` -- **Duration:** `0.000151` s - -### ๐Ÿ”ง Setup Phase - -###### ๐Ÿ“Œ Duration - -``` -`0.00012083398178219795` -``` - -###### ๐Ÿ“Œ Outcome - -``` -`passed` -``` - - -### ๐Ÿ”ง Call Phase - -###### ๐Ÿ“Œ Duration - -``` -`0.0001506999833509326` -``` - -###### ๐Ÿ“Œ Outcome - -``` -`failed` -``` - -###### ๐Ÿ“Œ Crash - -``` -`path: `/workspace/tligui_y/slic/tests/test_math_utils.py``, `lineno: `99``, `message: `test_math_utils.CustomError: Custom error simulation`` -``` - -###### ๐Ÿ“Œ Traceback - -``` -`path: `tests/test_math_utils.py``, `lineno: `99``, `message: `CustomError`` -``` - -###### ๐Ÿ“Œ Longrepr - -``` -`def test_custom_error(): - # Raises user-defined CustomError exception -> raise CustomError("Custom error simulation") -E test_math_utils.CustomError: Custom error simulation - -tests/test_math_utils.py:99: CustomError` -``` - - -### ๐Ÿ”ง Teardown Phase - -###### ๐Ÿ“Œ Duration - -``` -`0.0001408139942213893` -``` - -###### ๐Ÿ“Œ Outcome - -``` -`passed` -``` - -#### ๐Ÿ”ง Function: `test_stop_iteration_direct` - -###### โŒ #34 - -- **Status:** โŒ `failed` -- **Duration:** `0.000146` s - -### ๐Ÿ”ง Setup Phase - -###### ๐Ÿ“Œ Duration - -``` -`0.00011707504745572805` -``` - -###### ๐Ÿ“Œ Outcome - -``` -`passed` -``` - - -### ๐Ÿ”ง Call Phase - -###### ๐Ÿ“Œ Duration - -``` -`0.00014599901624023914` -``` - -###### ๐Ÿ“Œ 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: `None``, `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(): - # Directly raise StopIteration exception -> raise StopIteration() -E StopIteration - -tests/test_math_utils.py:103: StopIteration - -The above exception was the direct cause of the following exception: - -cls = -func = . at 0x7f45494159d0> -when = 'call' -reraise = (, ) - - @classmethod - def from_call( - cls, - func: Callable[[], TResult], - when: Literal["collect", "setup", "call", "teardown"], - reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, - ) -> CallInfo[TResult]: - """Call func, wrapping the result in a CallInfo. - - :param func: - The function to call. Called without arguments. - :type func: Callable[[], _pytest.runner.TResult] - :param when: - The phase in which the function is called. - :param reraise: - Exception or exceptions that shall propagate if raised by the - function, instead of being wrapped in the CallInfo. - """ - excinfo = None - start = timing.time() - precise_start = timing.perf_counter() - try: -> result: TResult | None = func() - -.pixi/envs/default/lib/python3.8/site-packages/_pytest/runner.py:341: -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -.pixi/envs/default/lib/python3.8/site-packages/_pytest/runner.py:242: in - lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise -.pixi/envs/default/lib/python3.8/site-packages/pluggy/_hooks.py:513: in __call__ - return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) -.pixi/envs/default/lib/python3.8/site-packages/pluggy/_manager.py:120: in _hookexec - return self._inner_hookexec(hook_name, methods, kwargs, firstresult) -.pixi/envs/default/lib/python3.8/site-packages/_pytest/threadexception.py:92: in pytest_runtest_call - yield from thread_exception_runtest_hook() -.pixi/envs/default/lib/python3.8/site-packages/_pytest/threadexception.py:68: in thread_exception_runtest_hook - yield -.pixi/envs/default/lib/python3.8/site-packages/_pytest/unraisableexception.py:95: in pytest_runtest_call - yield from unraisable_exception_runtest_hook() -.pixi/envs/default/lib/python3.8/site-packages/_pytest/unraisableexception.py:70: in unraisable_exception_runtest_hook - yield -.pixi/envs/default/lib/python3.8/site-packages/_pytest/logging.py:846: in pytest_runtest_call - yield from self._runtest_for(item, "call") -.pixi/envs/default/lib/python3.8/site-packages/_pytest/logging.py:829: in _runtest_for - yield -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ - -self = _capture_fixture=None> -item = - - @hookimpl(wrapper=True) - def pytest_runtest_call(self, item: Item) -> Generator[None]: - with self.item_capture("call", item): -> return (yield) -E RuntimeError: generator raised StopIteration - -.pixi/envs/default/lib/python3.8/site-packages/_pytest/capture.py:880: RuntimeError` -``` - - -### ๐Ÿ”ง Teardown Phase - -###### ๐Ÿ“Œ Duration - -``` -`0.0002715260488912463` -``` - -###### ๐Ÿ“Œ Outcome - -``` -`passed` -``` - -#### ๐Ÿ”ง Function: `test_generator_exit_direct` - -###### โŒ #35 - -- **Status:** โŒ `failed` -- **Duration:** `0.000194` s - -### ๐Ÿ”ง Setup Phase - -###### ๐Ÿ“Œ Duration - -``` -`0.00014523800928145647` -``` - -###### ๐Ÿ“Œ Outcome - -``` -`passed` -``` - - -### ๐Ÿ”ง Call Phase - -###### ๐Ÿ“Œ Duration - -``` -`0.00019391102250665426` -``` - -###### ๐Ÿ“Œ Outcome - -``` -`failed` -``` - -###### ๐Ÿ“Œ Crash - -``` -`path: `/workspace/tligui_y/slic/tests/test_math_utils.py``, `lineno: `107``, `message: `GeneratorExit`` -``` - -###### ๐Ÿ“Œ Traceback - -``` -`path: `tests/test_math_utils.py``, `lineno: `107``, `message: `GeneratorExit`` -``` - -###### ๐Ÿ“Œ Longrepr - -``` -`def test_generator_exit_direct(): - # Directly raise GeneratorExit exception -> raise GeneratorExit() -E GeneratorExit - -tests/test_math_utils.py:107: GeneratorExit` -``` - - -### ๐Ÿ”ง Teardown Phase - -###### ๐Ÿ“Œ Duration - -``` -`0.00018377997912466526` -``` - -###### ๐Ÿ“Œ Outcome - -``` -`passed` -``` - -#### ๐Ÿ”ง Function: `test_recursion_limit` - -###### โŒ #36 - -- **Status:** โŒ `failed` -- **Duration:** `0.000165` s - -### ๐Ÿ”ง Setup Phase - -###### ๐Ÿ“Œ Duration - -``` -`0.00012531899847090244` -``` - -###### ๐Ÿ“Œ Outcome - -``` -`passed` -``` - - -### ๐Ÿ”ง Call Phase - -###### ๐Ÿ“Œ Duration - -``` -`0.00016452092677354813` -``` - -###### ๐Ÿ“Œ Outcome - -``` -`failed` -``` - -###### ๐Ÿ“Œ Crash - -``` -`path: `/workspace/tligui_y/slic/tests/test_math_utils.py``, `lineno: `112``, `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: `112``, `message: `RecursionError`` -``` - -###### ๐Ÿ“Œ Longrepr - -``` -`def test_recursion_limit(): - # Lower recursion limit to force RecursionError on deep recursion - original_limit = sys.getrecursionlimit() -> sys.setrecursionlimit(50) -E RecursionError: cannot set the recursion limit to 50 at the recursion depth 37: the limit is too low - -tests/test_math_utils.py:112: RecursionError` -``` - - -### ๐Ÿ”ง Teardown Phase - -###### ๐Ÿ“Œ Duration - -``` -`0.00014143495354801416` -``` - -###### ๐Ÿ“Œ Outcome - -``` -`passed` -``` - -#### ๐Ÿ”ง Function: `test_malformed_code` - -###### โŒ #37 - -- **Status:** โŒ `failed` -- **Duration:** `0.000163` s - -### ๐Ÿ”ง Setup Phase - -###### ๐Ÿ“Œ Duration - -``` -`0.00012529094237834215` -``` - -###### ๐Ÿ“Œ Outcome - -``` -`passed` -``` - - -### ๐Ÿ”ง Call Phase - -###### ๐Ÿ“Œ Duration - -``` -`0.000163018936291337` -``` - -###### ๐Ÿ“Œ Outcome - -``` -`failed` -``` - -###### ๐Ÿ“Œ Crash - -``` -`path: `/workspace/tligui_y/slic/tests/test_math_utils.py``, `lineno: `122``, `message: ` File "", line 1 - def bad(: - ^ -SyntaxError: invalid syntax`` -``` - -###### ๐Ÿ“Œ Traceback - -``` -`path: `tests/test_math_utils.py``, `lineno: `122``, `message: `SyntaxError`` -``` - -###### ๐Ÿ“Œ Longrepr - -``` -`def test_malformed_code(): - # SyntaxError when executing malformed Python code -> exec("def bad(:\n pass") -E File "", line 1 -E def bad(: -E ^ -E SyntaxError: invalid syntax - -tests/test_math_utils.py:122: SyntaxError` -``` - - -### ๐Ÿ”ง Teardown Phase - -###### ๐Ÿ“Œ Duration - -``` -`0.00013939000200480223` -``` - -###### ๐Ÿ“Œ Outcome - -``` -`passed` -``` - -#### ๐Ÿ”ง Function: `test_sys_exit` - -###### โŒ #38 - -- **Status:** โŒ `failed` -- **Duration:** `0.000148` s - -### ๐Ÿ”ง Setup Phase - -###### ๐Ÿ“Œ Duration - -``` -`0.00012842891737818718` -``` - -###### ๐Ÿ“Œ Outcome - -``` -`passed` -``` - - -### ๐Ÿ”ง Call Phase - -###### ๐Ÿ“Œ Duration - -``` -`0.00014804606325924397` -``` - -###### ๐Ÿ“Œ Outcome - -``` -`failed` -``` - -###### ๐Ÿ“Œ Crash - -``` -`path: `/workspace/tligui_y/slic/tests/test_math_utils.py``, `lineno: `126``, `message: `SystemExit: 1`` -``` - -###### ๐Ÿ“Œ Traceback - -``` -`path: `tests/test_math_utils.py``, `lineno: `126``, `message: `SystemExit`` -``` - -###### ๐Ÿ“Œ Longrepr - -``` -`def test_sys_exit(): - # Simulate SystemExit via sys.exit -> sys.exit(1) -E SystemExit: 1 - -tests/test_math_utils.py:126: SystemExit` -``` - - -### ๐Ÿ”ง Teardown Phase - -###### ๐Ÿ“Œ Duration - -``` -`0.00014186103362590075` -``` - -###### ๐Ÿ“Œ Outcome - -``` -`passed` -``` - -#### ๐Ÿ”ง Function: `test_broken_function` - -###### โŒ #39 - -- **Status:** โŒ `failed` -- **Duration:** `0.000164` s - -### ๐Ÿ”ง Setup Phase - -###### ๐Ÿ“Œ Duration - -``` -`0.00011639401782304049` -``` - -###### ๐Ÿ“Œ Outcome - -``` -`passed` -``` - - -### ๐Ÿ”ง Call Phase - -###### ๐Ÿ“Œ Duration - -``` -`0.0001637510722503066` -``` - -###### ๐Ÿ“Œ Outcome - -``` -`failed` -``` - -###### ๐Ÿ“Œ Crash - -``` -`path: `/workspace/tligui_y/slic/tests/test_math_utils.py``, `lineno: `131``, `message: `TypeError: Broken function`` -``` - -###### ๐Ÿ“Œ Traceback - -``` -`path: `tests/test_math_utils.py``, `lineno: `132``, `message: `None``, `path: `tests/test_math_utils.py``, `lineno: `131``, `message: `TypeError`` -``` - -###### ๐Ÿ“Œ Longrepr - -``` -`def test_broken_function(): - # Simulate broken function raising TypeError - def broken_func(*args, **kwargs): - raise TypeError("Broken function") -> broken_func() - -tests/test_math_utils.py:132: -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ - -args = (), kwargs = {} - - def broken_func(*args, **kwargs): -> raise TypeError("Broken function") -E TypeError: Broken function - -tests/test_math_utils.py:131: TypeError` -``` - - -### ๐Ÿ”ง Teardown Phase - -###### ๐Ÿ“Œ Duration - -``` -`0.00014208804350346327` -``` - -###### ๐Ÿ“Œ Outcome - -``` -`passed` -``` - -#### ๐Ÿ”ง Function: `test_import_error_patch` - -###### โŒ #40 - -- **Status:** โŒ `failed` -- **Duration:** `0.000165` s - -### ๐Ÿ”ง Setup Phase - -###### ๐Ÿ“Œ Duration - -``` -`0.00011552497744560242` -``` - -###### ๐Ÿ“Œ Outcome - -``` -`passed` -``` - - -### ๐Ÿ”ง Call Phase - -###### ๐Ÿ“Œ Duration - -``` -`0.00016487599350512028` -``` - -###### ๐Ÿ“Œ Outcome - -``` -`failed` -``` - -###### ๐Ÿ“Œ Crash - -``` -`path: `/workspace/tligui_y/slic/tests/test_math_utils.py``, `lineno: `139``, `message: `ImportError: Simulated ImportError`` -``` - -###### ๐Ÿ“Œ Traceback - -``` -`path: `tests/test_math_utils.py``, `lineno: `144``, `message: `None``, `path: `tests/test_math_utils.py``, `lineno: `139``, `message: `ImportError`` -``` - -###### ๐Ÿ“Œ Longrepr - -``` -`def test_import_error_patch(): - # Patch import to simulate ImportError on specific module - original_import = __import__ - def fake_import(name, *args, **kwargs): - if name == "fake_module": - raise ImportError("Simulated ImportError") - return original_import(name, *args, **kwargs) - import builtins - builtins.__import__, old_import = fake_import, builtins.__import__ - try: -> __import__("fake_module") - -tests/test_math_utils.py:144: -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ - -name = 'fake_module', args = (), kwargs = {} - - def fake_import(name, *args, **kwargs): - if name == "fake_module": -> raise ImportError("Simulated ImportError") -E ImportError: Simulated ImportError - -tests/test_math_utils.py:139: ImportError` -``` - - -### ๐Ÿ”ง Teardown Phase - -###### ๐Ÿ“Œ Duration - -``` -`0.0001433549914509058` -``` - -###### ๐Ÿ“Œ Outcome - -``` -`passed` -``` - -#### ๐Ÿ”ง Function: `test_module_not_found_error` - -###### โŒ #41 - -- **Status:** โŒ `failed` -- **Duration:** `0.000476` s - -### ๐Ÿ”ง Setup Phase - -###### ๐Ÿ“Œ Duration - -``` -`0.00011692498810589314` -``` - -###### ๐Ÿ“Œ Outcome - -``` -`passed` -``` - - -### ๐Ÿ”ง Call Phase - -###### ๐Ÿ“Œ Duration - -``` -`0.0004757900023832917` -``` - -###### ๐Ÿ“Œ Outcome - -``` -`failed` -``` - -###### ๐Ÿ“Œ Crash - -``` -`path: ```, `lineno: `973``, `message: `ModuleNotFoundError: No module named 'non_existent_module_xyz'`` -``` - -###### ๐Ÿ“Œ Traceback - -``` -`path: `tests/test_math_utils.py``, `lineno: `150``, `message: `None``, `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(): - # Raises ModuleNotFoundError (subclass of ImportError) for missing module -> importlib.import_module("non_existent_module_xyz") - -tests/test_math_utils.py:150: -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -.pixi/envs/default/lib/python3.8/importlib/__init__.py:127: in import_module - return _bootstrap._gcd_import(name[level:], package, level) -:1014: in _gcd_import - ??? -:991: in _find_and_load - ??? -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ - -name = 'non_existent_module_xyz' -import_ = - -> ??? -E ModuleNotFoundError: No module named 'non_existent_module_xyz' - -:973: ModuleNotFoundError` -``` - - -### ๐Ÿ”ง Teardown Phase - -###### ๐Ÿ“Œ Duration - -``` -`0.00014302099589258432` -``` - -###### ๐Ÿ“Œ Outcome - -``` -`passed` -``` - -
- -
-๐Ÿ“ test_string_utils.py - -#### ๐Ÿ”ง Function: `test_uppercase_type_error` - -###### โŒ #43 - -- **Status:** โŒ `failed` -- **Duration:** `0.000143` s - -### ๐Ÿ”ง Setup Phase - -###### ๐Ÿ“Œ Duration - -``` -`0.00011397106572985649` -``` - -###### ๐Ÿ“Œ Outcome - -``` -`passed` -``` - - -### ๐Ÿ”ง Call Phase - -###### ๐Ÿ“Œ Duration - -``` -`0.0001431129639968276` -``` - -###### ๐Ÿ“Œ Outcome - -``` -`failed` -``` - -###### ๐Ÿ“Œ Crash - -``` -`path: `/workspace/tligui_y/slic/functions/string_utils.py``, `lineno: `3``, `message: `TypeError: Input cannot be None`` -``` - -###### ๐Ÿ“Œ Traceback - -``` -`path: `tests/test_string_utils.py``, `lineno: `14``, `message: `None``, `path: `functions/string_utils.py``, `lineno: `3``, `message: `TypeError`` -``` - -###### ๐Ÿ“Œ Longrepr - -``` -`def test_uppercase_type_error(): - # TypeError when input is None (invalid input) -> uppercase(None) - -tests/test_string_utils.py:14: -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ - -s = None - - def uppercase(s): - if s is None: -> raise TypeError("Input cannot be None") -E TypeError: Input cannot be None - -functions/string_utils.py:3: TypeError` -``` - - -### ๐Ÿ”ง Teardown Phase - -###### ๐Ÿ“Œ Duration - -``` -`0.0001555809285491705` -``` - -###### ๐Ÿ“Œ Outcome - -``` -`passed` -``` - -#### ๐Ÿ”ง Function: `test_unicode_decode_error` - -###### โŒ #46 - -- **Status:** โŒ `failed` -- **Duration:** `0.000149` s - -### ๐Ÿ”ง Setup Phase - -###### ๐Ÿ“Œ Duration - -``` -`0.0001129229785874486` -``` - -###### ๐Ÿ“Œ Outcome - -``` -`passed` -``` - - -### ๐Ÿ”ง Call Phase - -###### ๐Ÿ“Œ Duration - -``` -`0.00014862604439258575` -``` - -###### ๐Ÿ“Œ Outcome - -``` -`failed` -``` - -###### ๐Ÿ“Œ Crash - -``` -`path: `/workspace/tligui_y/slic/tests/test_string_utils.py``, `lineno: `26``, `message: `UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 0: invalid start byte`` -``` - -###### ๐Ÿ“Œ Traceback - -``` -`path: `tests/test_string_utils.py``, `lineno: `26``, `message: `UnicodeDecodeError`` -``` - -###### ๐Ÿ“Œ Longrepr - -``` -`def test_unicode_decode_error(): - # UnicodeDecodeError when decoding invalid byte sequence -> b'\xff'.decode('utf-8') -E UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 0: invalid start byte - -tests/test_string_utils.py:26: UnicodeDecodeError` -``` - - -### ๐Ÿ”ง Teardown Phase - -###### ๐Ÿ“Œ Duration - -``` -`0.00013591500464826822` -``` - -###### ๐Ÿ“Œ Outcome - -``` -`passed` -``` - -#### ๐Ÿ”ง Function: `test_unicode_decode_surrogateescape` - -###### โŒ #47 - -- **Status:** โŒ `failed` -- **Duration:** `0.000159` s - -### ๐Ÿ”ง Setup Phase - -###### ๐Ÿ“Œ Duration - -``` -`0.0001163469860330224` -``` - -###### ๐Ÿ“Œ Outcome - -``` -`passed` -``` - - -### ๐Ÿ”ง Call Phase - -###### ๐Ÿ“Œ Duration - -``` -`0.00015918898861855268` -``` - -###### ๐Ÿ“Œ Outcome - -``` -`failed` -``` - -###### ๐Ÿ“Œ Crash - -``` -`path: `/workspace/tligui_y/slic/tests/test_string_utils.py``, `lineno: `30``, `message: `UnicodeDecodeError: 'utf-8' codec can't decode byte 0x80 in position 0: invalid start byte`` -``` - -###### ๐Ÿ“Œ Traceback - -``` -`path: `tests/test_string_utils.py``, `lineno: `30``, `message: `UnicodeDecodeError`` -``` - -###### ๐Ÿ“Œ Longrepr - -``` -`def test_unicode_decode_surrogateescape(): - # UnicodeDecodeError with strict error handler on invalid byte -> b"\x80".decode("utf-8", errors="strict") -E UnicodeDecodeError: 'utf-8' codec can't decode byte 0x80 in position 0: invalid start byte - -tests/test_string_utils.py:30: UnicodeDecodeError` -``` - - -### ๐Ÿ”ง Teardown Phase - -###### ๐Ÿ“Œ Duration - -``` -`0.00013616401702165604` -``` - -###### ๐Ÿ“Œ Outcome - -``` -`passed` -``` - -
- - -
โŒ Xfailed (2)
-๐Ÿ“ test_math_utils.py + ๐Ÿ“ test_math_utils.py -#### ๐Ÿ”ง Function: `test_multiply_xfail` - -###### โŒ #23 - -- **Status:** โŒ `xfailed` -- **Duration:** `0.000261` s - -### ๐Ÿ”ง Setup Phase - -###### ๐Ÿ“Œ Duration - -``` -`0.00013305002357810736` -``` - -###### ๐Ÿ“Œ Outcome - -``` -`passed` -``` - - -### ๐Ÿ”ง Call Phase - -###### ๐Ÿ“Œ Duration - -``` -`0.0002614330733194947` -``` - -###### ๐Ÿ“Œ Outcome - -``` -`skipped` -``` - -###### ๐Ÿ“Œ Crash - -``` -`path: `/workspace/tligui_y/slic/tests/test_math_utils.py``, `lineno: `57``, `message: `assert 4 == 5 - + where 4 = multiply(2, 2)`` -``` - -###### ๐Ÿ“Œ Traceback - -``` -`path: `tests/test_math_utils.py``, `lineno: `57``, `message: `AssertionError`` -``` - -###### ๐Ÿ“Œ Longrepr - -``` -`@pytest.mark.xfail(reason="Expected failure") - def test_multiply_xfail(): - # Expected fail test (xfail): incorrect expected multiply result -> assert multiply(2, 2) == 5 -E assert 4 == 5 -E + where 4 = multiply(2, 2) - -tests/test_math_utils.py:57: AssertionError` -``` - - -### ๐Ÿ”ง Teardown Phase - -###### ๐Ÿ“Œ Duration - -``` -`0.00013987801503390074` -``` - -###### ๐Ÿ“Œ Outcome - -``` -`passed` -``` - -
- -
-๐Ÿ“ test_string_utils.py - -#### ๐Ÿ”ง Function: `test_xfail_uppercase_digits` - -###### โŒ #49 - -- **Status:** โŒ `xfailed` -- **Duration:** `0.000612` s - -### ๐Ÿ”ง Setup Phase - -###### ๐Ÿ“Œ Duration - -``` -`0.00011542008724063635` -``` - -###### ๐Ÿ“Œ Outcome - -``` -`passed` -``` - - -### ๐Ÿ”ง Call Phase - -###### ๐Ÿ“Œ Duration - -``` -`0.0006117690354585648` -``` - -###### ๐Ÿ“Œ Outcome - -``` -`skipped` -``` - -###### ๐Ÿ“Œ Crash - -``` -`path: `/workspace/tligui_y/slic/tests/test_string_utils.py``, `lineno: `39``, `message: `AssertionError: assert 'ABC123' == 'ABC1234' +
+ ๐Ÿ”ง Function: `test_multiply_xfail` - - ABC1234 - ? - - + ABC123`` -``` +
+ โŒ #23 + + - **Status:** โŒ `xfailed` + - **Duration:** `0.000279` s + + ### ๐Ÿ”ง Setup Phase + +
+ ๐Ÿ“Œ Duration + + ``` + `0.00013550394214689732` + ``` + +
+
+ ๐Ÿ“Œ Outcome + + ``` + `passed` + ``` + +
+ + ### ๐Ÿ”ง Call Phase + +
+ ๐Ÿ“Œ Duration + + ``` + `0.00027888803742825985` + ``` + +
+
+ ๐Ÿ“Œ Outcome + + ``` + `skipped` + ``` + +
+
+ ๐Ÿ“Œ Crash + + ``` + `path: `/workspace/tligui_y/slic/tests/test_math_utils.py``, `lineno: `57``, `message: `assert 4 == 5 + + where 4 = multiply(2, 2)`` + ``` + +
+
+ ๐Ÿ“Œ Traceback + + ``` + `path: `tests/test_math_utils.py``, `lineno: `57``, `message: `AssertionError`` + ``` + +
+
+ ๐Ÿ“Œ Longrepr + + ``` + `@pytest.mark.xfail(reason="Expected failure") + def test_multiply_xfail(): + # Expected fail test (xfail): incorrect expected multiply result + > assert multiply(2, 2) == 5 + E assert 4 == 5 + E + where 4 = multiply(2, 2) + + tests/test_math_utils.py:57: AssertionError` + ``` + +
+ + ### ๐Ÿ”ง Teardown Phase + +
+ ๐Ÿ“Œ Duration + + ``` + `0.0001409549731761217` + ``` + +
+
+ ๐Ÿ“Œ Outcome + + ``` + `passed` + ``` + +
+ +
+ +
-###### ๐Ÿ“Œ Traceback +
+
+ ๐Ÿ“ test_string_utils.py -``` -`path: `tests/test_string_utils.py``, `lineno: `39``, `message: `AssertionError`` -``` +
+ ๐Ÿ”ง Function: `test_xfail_uppercase_digits` + +
+ โŒ #49 + + - **Status:** โŒ `xfailed` + - **Duration:** `0.000642` s + + ### ๐Ÿ”ง Setup Phase + +
+ ๐Ÿ“Œ Duration + + ``` + `0.00012023700401186943` + ``` + +
+
+ ๐Ÿ“Œ Outcome + + ``` + `passed` + ``` + +
+ + ### ๐Ÿ”ง Call Phase + +
+ ๐Ÿ“Œ Duration + + ``` + `0.0006416110554710031` + ``` + +
+
+ ๐Ÿ“Œ Outcome + + ``` + `skipped` + ``` + +
+
+ ๐Ÿ“Œ Crash + + ``` + `path: `/workspace/tligui_y/slic/tests/test_string_utils.py``, `lineno: `39``, `message: `AssertionError: assert 'ABC123' == 'ABC1234' + + - ABC1234 + ? - + + ABC123`` + ``` + +
+
+ ๐Ÿ“Œ Traceback + + ``` + `path: `tests/test_string_utils.py``, `lineno: `39``, `message: `AssertionError`` + ``` + +
+
+ ๐Ÿ“Œ Longrepr + + ``` + `@pytest.mark.xfail(reason="Expected failure: uppercase does not handle digits") + def test_xfail_uppercase_digits(): + # Expected fail test because uppercase won't change digits + > assert uppercase("abc123") == "ABC1234" + E AssertionError: assert 'ABC123' == 'ABC1234' + E + E - ABC1234 + E ? - + E + ABC123 + + tests/test_string_utils.py:39: AssertionError` + ``` + +
+ + ### ๐Ÿ”ง Teardown Phase + +
+ ๐Ÿ“Œ Duration + + ``` + `0.00013497495092451572` + ``` + +
+
+ ๐Ÿ“Œ Outcome + + ``` + `passed` + ``` + +
+ +
+ +
-###### ๐Ÿ“Œ Longrepr - -``` -`@pytest.mark.xfail(reason="Expected failure: uppercase does not handle digits") - def test_xfail_uppercase_digits(): - # Expected fail test because uppercase won't change digits -> assert uppercase("abc123") == "ABC1234" -E AssertionError: assert 'ABC123' == 'ABC1234' -E -E - ABC1234 -E ? - -E + ABC123 - -tests/test_string_utils.py:39: AssertionError` -``` - - -### ๐Ÿ”ง Teardown Phase - -###### ๐Ÿ“Œ Duration - -``` -`0.00013532699085772038` -``` - -###### ๐Ÿ“Œ Outcome - -``` -`passed` -``` +
- - - ## ๐Ÿ“š Collected files -
-โœ… (1 tests) - -#### โœ… - -- **Outcome:** `passed` -- **Details:** -``` -result: -`nodeid: `.``, `type: `Dir`` - -``` - -
- -
-โœ… ci-reports (12 tests) - -#### โœ… ci-reports - -- **Outcome:** `passed` -- **Details:** -``` -result: -`nodeid: `ci-reports/allure``, `type: `Dir``, `nodeid: `ci-reports/coverage``, `type: `Dir``, `nodeid: `ci-reports/markdown``, `type: `Dir`` - -``` - -#### โœ… ci-reports/allure - -- **Outcome:** `passed` -- **Details:** -``` -result: -`nodeid: `ci-reports/allure/data``, `type: `Dir``, `nodeid: `ci-reports/allure/export``, `type: `Dir``, `nodeid: `ci-reports/allure/history``, `type: `Dir``, `nodeid: `ci-reports/allure/plugin``, `type: `Dir``, `nodeid: `ci-reports/allure/widgets``, `type: `Dir`` - -``` - -#### โœ… ci-reports/allure/data - -- **Outcome:** `passed` -- **Details:** -``` -result: - - -``` - -#### โœ… ci-reports/allure/export - -- **Outcome:** `passed` -- **Details:** -``` -result: - - -``` - -#### โœ… ci-reports/allure/history - -- **Outcome:** `passed` -- **Details:** -``` -result: - - -``` - -#### โœ… ci-reports/allure/plugin - -- **Outcome:** `passed` -- **Details:** -``` -result: -`nodeid: `ci-reports/allure/plugin/behaviors``, `type: `Dir``, `nodeid: `ci-reports/allure/plugin/packages``, `type: `Dir``, `nodeid: `ci-reports/allure/plugin/screen-diff``, `type: `Dir`` - -``` - -#### โœ… ci-reports/allure/plugin/behaviors - -- **Outcome:** `passed` -- **Details:** -``` -result: - - -``` - -#### โœ… ci-reports/allure/plugin/packages - -- **Outcome:** `passed` -- **Details:** -``` -result: - - -``` - -#### โœ… ci-reports/allure/plugin/screen-diff - -- **Outcome:** `passed` -- **Details:** -``` -result: - - -``` - -#### โœ… ci-reports/allure/widgets - -- **Outcome:** `passed` -- **Details:** -``` -result: - - -``` - -#### โœ… ci-reports/coverage - -- **Outcome:** `passed` -- **Details:** -``` -result: - - -``` - -#### โœ… ci-reports/markdown - -- **Outcome:** `passed` -- **Details:** -``` -result: - - -``` - -
- -
-โœ… functions (1 tests) - -#### โœ… functions - -- **Outcome:** `passed` -- **Details:** -``` -result: - - -``` - -
- -
-โŒ tests (6 tests) - -#### โœ… tests - -- **Outcome:** `passed` -- **Details:** -``` -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`` - -``` - -#### โŒ tests/test_broken_fct.py - -- **Outcome:** `failed` -- **Details:** -``` -result: - - -longrepr: -`.pixi/envs/default/lib/python3.8/site-packages/_pytest/python.py:493: in importtestmodule - mod = import_path( -.pixi/envs/default/lib/python3.8/site-packages/_pytest/pathlib.py:587: in import_path - importlib.import_module(module_name) -.pixi/envs/default/lib/python3.8/importlib/__init__.py:127: in import_module - return _bootstrap._gcd_import(name[level:], package, level) -:1014: in _gcd_import - ??? -:991: in _find_and_load - ??? -:975: in _find_and_load_unlocked - ??? -:671: in _load_unlocked - ??? -.pixi/envs/default/lib/python3.8/site-packages/_pytest/assertion/rewrite.py:175: in exec_module - source_stat, co = _rewrite_test(fn, self.config) -.pixi/envs/default/lib/python3.8/site-packages/_pytest/assertion/rewrite.py:355: in _rewrite_test - tree = ast.parse(source, filename=strfn) -.pixi/envs/default/lib/python3.8/ast.py:47: in parse - return compile(source, filename, mode, flags, -E File "/workspace/tligui_y/slic/tests/test_broken_fct.py", line 8 -E def test_valid_2(): -E ^ -E SyntaxError: invalid syntax` - -``` - -#### โŒ tests/test_collector_error.py - -- **Outcome:** `failed` -- **Details:** -``` -result: - - -longrepr: -`ImportError while importing test module '/workspace/tligui_y/slic/tests/test_collector_error.py'. -Hint: make sure your test modules/packages have valid Python names. -Traceback: -.pixi/envs/default/lib/python3.8/importlib/__init__.py:127: in import_module - return _bootstrap._gcd_import(name[level:], package, level) -tests/test_collector_error.py:1: in - from no_existing_module.math_utils import * -E ModuleNotFoundError: No module named 'no_existing_module'` - -``` - -#### โœ… tests/test_io_utils.py - -- **Outcome:** `passed` -- **Details:** -``` -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`` - -``` - -#### โœ… tests/test_math_utils.py - -- **Outcome:** `passed` -- **Details:** -``` -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[2-2-4]``, `type: `Function``, `lineno: `21``, `nodeid: `tests/test_math_utils.py::test_addition_pass[1-5-6]``, `type: `Function``, `lineno: `21``, `nodeid: `tests/test_math_utils.py::test_addition_pass[3-4-7]``, `type: `Function``, `lineno: `21``, `nodeid: `tests/test_math_utils.py::test_addition_pass[3-5-8]``, `type: `Function``, `lineno: `21``, `nodeid: `tests/test_math_utils.py::test_addition_pass[3-6-9]``, `type: `Function``, `lineno: `21``, `nodeid: `tests/test_math_utils.py::test_addition_pass_id[a=2,b=2,expected=4]``, `type: `Function``, `lineno: `34``, `nodeid: `tests/test_math_utils.py::test_addition_pass_id[a=1,b=5,expected=6]``, `type: `Function``, `lineno: `34``, `nodeid: `tests/test_math_utils.py::test_addition_pass_id[a=3,b=4,expected=7]``, `type: `Function``, `lineno: `34``, `nodeid: `tests/test_math_utils.py::test_addition_fail``, `type: `Function``, `lineno: `45``, `nodeid: `tests/test_math_utils.py::test_division_zero``, `type: `Function``, `lineno: `49``, `nodeid: `tests/test_math_utils.py::test_multiply_xfail``, `type: `Function``, `lineno: `53``, `nodeid: `tests/test_math_utils.py::test_runtime_error``, `type: `Function``, `lineno: `58``, `nodeid: `tests/test_math_utils.py::test_memory_error``, `type: `Function``, `lineno: `62``, `nodeid: `tests/test_math_utils.py::test_timeout_error``, `type: `Function``, `lineno: `66``, `nodeid: `tests/test_math_utils.py::test_recursion_error``, `type: `Function``, `lineno: `70``, `nodeid: `tests/test_math_utils.py::test_floating_point_error``, `type: `Function``, `lineno: `76``, `nodeid: `tests/test_math_utils.py::test_floating_point_overflow``, `type: `Function``, `lineno: `80``, `nodeid: `tests/test_math_utils.py::test_value_error``, `type: `Function``, `lineno: `84``, `nodeid: `tests/test_math_utils.py::test_type_error``, `type: `Function``, `lineno: `88``, `nodeid: `tests/test_math_utils.py::test_unhandled_exception``, `type: `Function``, `lineno: `92``, `nodeid: `tests/test_math_utils.py::test_custom_error``, `type: `Function``, `lineno: `96``, `nodeid: `tests/test_math_utils.py::test_stop_iteration_direct``, `type: `Function``, `lineno: `100``, `nodeid: `tests/test_math_utils.py::test_generator_exit_direct``, `type: `Function``, `lineno: `104``, `nodeid: `tests/test_math_utils.py::test_recursion_limit``, `type: `Function``, `lineno: `108``, `nodeid: `tests/test_math_utils.py::test_malformed_code``, `type: `Function``, `lineno: `119``, `nodeid: `tests/test_math_utils.py::test_sys_exit``, `type: `Function``, `lineno: `123``, `nodeid: `tests/test_math_utils.py::test_broken_function``, `type: `Function``, `lineno: `127``, `nodeid: `tests/test_math_utils.py::test_import_error_patch``, `type: `Function``, `lineno: `133``, `nodeid: `tests/test_math_utils.py::test_module_not_found_error``, `type: `Function``, `lineno: `147`` - -``` - -#### โœ… tests/test_string_utils.py - -- **Outcome:** `passed` -- **Details:** -``` -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: `15``, `nodeid: `tests/test_string_utils.py::test_warning_emit``, `type: `Function``, `lineno: `19``, `nodeid: `tests/test_string_utils.py::test_unicode_decode_error``, `type: `Function``, `lineno: `23``, `nodeid: `tests/test_string_utils.py::test_unicode_decode_surrogateescape``, `type: `Function``, `lineno: `27``, `nodeid: `tests/test_string_utils.py::test_import_warning``, `type: `Function``, `lineno: `31``, `nodeid: `tests/test_string_utils.py::test_xfail_uppercase_digits``, `type: `Function``, `lineno: `35``, `nodeid: `tests/test_string_utils.py::test_keyboard_interrupt_direct``, `type: `Function``, `lineno: `40`` - -``` - -
- -
-โœ… . (1 tests) - -#### โœ… . - -- **Outcome:** `passed` -- **Details:** -``` -result: -`nodeid: `ci-reports``, `type: `Dir``, `nodeid: `functions``, `type: `Package``, `nodeid: `tests``, `type: `Dir`` - -``` - -
- +
+ โœ… (1 tests) + +
+ โœ… + + - **Outcome:** `passed` + - **Details:** + ``` + result: + `nodeid: `.``, `type: `Dir`` + + ``` + +
+ +
+
+ โœ… ci-reports (12 tests) + +
+ โœ… ci-reports + + - **Outcome:** `passed` + - **Details:** + ``` + result: + `nodeid: `ci-reports/allure``, `type: `Dir``, `nodeid: `ci-reports/coverage``, `type: `Dir``, `nodeid: `ci-reports/markdown``, `type: `Dir`` + + ``` + +
+
+ โœ… ci-reports/allure + + - **Outcome:** `passed` + - **Details:** + ``` + result: + `nodeid: `ci-reports/allure/data``, `type: `Dir``, `nodeid: `ci-reports/allure/export``, `type: `Dir``, `nodeid: `ci-reports/allure/history``, `type: `Dir``, `nodeid: `ci-reports/allure/plugin``, `type: `Dir``, `nodeid: `ci-reports/allure/widgets``, `type: `Dir`` + + ``` + +
+
+ โœ… ci-reports/allure/data + + - **Outcome:** `passed` + - **Details:** + ``` + result: + + + ``` + +
+
+ โœ… ci-reports/allure/export + + - **Outcome:** `passed` + - **Details:** + ``` + result: + + + ``` + +
+
+ โœ… ci-reports/allure/history + + - **Outcome:** `passed` + - **Details:** + ``` + result: + + + ``` + +
+
+ โœ… ci-reports/allure/plugin + + - **Outcome:** `passed` + - **Details:** + ``` + result: + `nodeid: `ci-reports/allure/plugin/behaviors``, `type: `Dir``, `nodeid: `ci-reports/allure/plugin/packages``, `type: `Dir``, `nodeid: `ci-reports/allure/plugin/screen-diff``, `type: `Dir`` + + ``` + +
+
+ โœ… ci-reports/allure/plugin/behaviors + + - **Outcome:** `passed` + - **Details:** + ``` + result: + + + ``` + +
+
+ โœ… ci-reports/allure/plugin/packages + + - **Outcome:** `passed` + - **Details:** + ``` + result: + + + ``` + +
+
+ โœ… ci-reports/allure/plugin/screen-diff + + - **Outcome:** `passed` + - **Details:** + ``` + result: + + + ``` + +
+
+ โœ… ci-reports/allure/widgets + + - **Outcome:** `passed` + - **Details:** + ``` + result: + + + ``` + +
+
+ โœ… ci-reports/coverage + + - **Outcome:** `passed` + - **Details:** + ``` + result: + + + ``` + +
+
+ โœ… ci-reports/markdown + + - **Outcome:** `passed` + - **Details:** + ``` + result: + + + ``` + +
+ +
+
+ โœ… functions (1 tests) + +
+ โœ… functions + + - **Outcome:** `passed` + - **Details:** + ``` + result: + + + ``` + +
+ +
+
+ โŒ tests (6 tests) + +
+ โœ… tests + + - **Outcome:** `passed` + - **Details:** + ``` + 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`` + + ``` + +
+
+ โŒ tests/test_broken_fct.py + + - **Outcome:** `failed` + - **Details:** + ``` + result: + + + longrepr: + `.pixi/envs/default/lib/python3.8/site-packages/_pytest/python.py:493: in importtestmodule + mod = import_path( + .pixi/envs/default/lib/python3.8/site-packages/_pytest/pathlib.py:587: in import_path + importlib.import_module(module_name) + .pixi/envs/default/lib/python3.8/importlib/__init__.py:127: in import_module + return _bootstrap._gcd_import(name[level:], package, level) + :1014: in _gcd_import + ??? + :991: in _find_and_load + ??? + :975: in _find_and_load_unlocked + ??? + :671: in _load_unlocked + ??? + .pixi/envs/default/lib/python3.8/site-packages/_pytest/assertion/rewrite.py:175: in exec_module + source_stat, co = _rewrite_test(fn, self.config) + .pixi/envs/default/lib/python3.8/site-packages/_pytest/assertion/rewrite.py:355: in _rewrite_test + tree = ast.parse(source, filename=strfn) + .pixi/envs/default/lib/python3.8/ast.py:47: in parse + return compile(source, filename, mode, flags, + E File "/workspace/tligui_y/slic/tests/test_broken_fct.py", line 8 + E def test_valid_2(): + E ^ + E SyntaxError: invalid syntax` + + ``` + +
+
+ โŒ tests/test_collector_error.py + + - **Outcome:** `failed` + - **Details:** + ``` + result: + + + longrepr: + `ImportError while importing test module '/workspace/tligui_y/slic/tests/test_collector_error.py'. + Hint: make sure your test modules/packages have valid Python names. + Traceback: + .pixi/envs/default/lib/python3.8/importlib/__init__.py:127: in import_module + return _bootstrap._gcd_import(name[level:], package, level) + tests/test_collector_error.py:1: in + from no_existing_module.math_utils import * + E ModuleNotFoundError: No module named 'no_existing_module'` + + ``` + +
+
+ โœ… tests/test_io_utils.py + + - **Outcome:** `passed` + - **Details:** + ``` + 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`` + + ``` + +
+
+ โœ… tests/test_math_utils.py + + - **Outcome:** `passed` + - **Details:** + ``` + 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[2-2-4]``, `type: `Function``, `lineno: `21``, `nodeid: `tests/test_math_utils.py::test_addition_pass[1-5-6]``, `type: `Function``, `lineno: `21``, `nodeid: `tests/test_math_utils.py::test_addition_pass[3-4-7]``, `type: `Function``, `lineno: `21``, `nodeid: `tests/test_math_utils.py::test_addition_pass[3-5-8]``, `type: `Function``, `lineno: `21``, `nodeid: `tests/test_math_utils.py::test_addition_pass[3-6-9]``, `type: `Function``, `lineno: `21``, `nodeid: `tests/test_math_utils.py::test_addition_pass_id[a=2,b=2,expected=4]``, `type: `Function``, `lineno: `34``, `nodeid: `tests/test_math_utils.py::test_addition_pass_id[a=1,b=5,expected=6]``, `type: `Function``, `lineno: `34``, `nodeid: `tests/test_math_utils.py::test_addition_pass_id[a=3,b=4,expected=7]``, `type: `Function``, `lineno: `34``, `nodeid: `tests/test_math_utils.py::test_addition_fail``, `type: `Function``, `lineno: `45``, `nodeid: `tests/test_math_utils.py::test_division_zero``, `type: `Function``, `lineno: `49``, `nodeid: `tests/test_math_utils.py::test_multiply_xfail``, `type: `Function``, `lineno: `53``, `nodeid: `tests/test_math_utils.py::test_runtime_error``, `type: `Function``, `lineno: `58``, `nodeid: `tests/test_math_utils.py::test_memory_error``, `type: `Function``, `lineno: `62``, `nodeid: `tests/test_math_utils.py::test_timeout_error``, `type: `Function``, `lineno: `66``, `nodeid: `tests/test_math_utils.py::test_recursion_error``, `type: `Function``, `lineno: `70``, `nodeid: `tests/test_math_utils.py::test_floating_point_error``, `type: `Function``, `lineno: `76``, `nodeid: `tests/test_math_utils.py::test_floating_point_overflow``, `type: `Function``, `lineno: `80``, `nodeid: `tests/test_math_utils.py::test_value_error``, `type: `Function``, `lineno: `84``, `nodeid: `tests/test_math_utils.py::test_type_error``, `type: `Function``, `lineno: `88``, `nodeid: `tests/test_math_utils.py::test_unhandled_exception``, `type: `Function``, `lineno: `92``, `nodeid: `tests/test_math_utils.py::test_custom_error``, `type: `Function``, `lineno: `96``, `nodeid: `tests/test_math_utils.py::test_stop_iteration_direct``, `type: `Function``, `lineno: `100``, `nodeid: `tests/test_math_utils.py::test_generator_exit_direct``, `type: `Function``, `lineno: `104``, `nodeid: `tests/test_math_utils.py::test_recursion_limit``, `type: `Function``, `lineno: `108``, `nodeid: `tests/test_math_utils.py::test_malformed_code``, `type: `Function``, `lineno: `119``, `nodeid: `tests/test_math_utils.py::test_sys_exit``, `type: `Function``, `lineno: `123``, `nodeid: `tests/test_math_utils.py::test_broken_function``, `type: `Function``, `lineno: `127``, `nodeid: `tests/test_math_utils.py::test_import_error_patch``, `type: `Function``, `lineno: `133``, `nodeid: `tests/test_math_utils.py::test_module_not_found_error``, `type: `Function``, `lineno: `147`` + + ``` + +
+
+ โœ… tests/test_string_utils.py + + - **Outcome:** `passed` + - **Details:** + ``` + 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: `15``, `nodeid: `tests/test_string_utils.py::test_warning_emit``, `type: `Function``, `lineno: `19``, `nodeid: `tests/test_string_utils.py::test_unicode_decode_error``, `type: `Function``, `lineno: `23``, `nodeid: `tests/test_string_utils.py::test_unicode_decode_surrogateescape``, `type: `Function``, `lineno: `27``, `nodeid: `tests/test_string_utils.py::test_import_warning``, `type: `Function``, `lineno: `31``, `nodeid: `tests/test_string_utils.py::test_xfail_uppercase_digits``, `type: `Function``, `lineno: `35``, `nodeid: `tests/test_string_utils.py::test_keyboard_interrupt_direct``, `type: `Function``, `lineno: `40`` + + ``` + +
+ +
+
+ โœ… . (1 tests) + +
+ โœ… . + + - **Outcome:** `passed` + - **Details:** + ``` + result: + `nodeid: `ci-reports``, `type: `Dir``, `nodeid: `functions``, `type: `Package``, `nodeid: `tests``, `type: `Dir`` + + ``` + +
+ +
## โš ๏ธ Warnings -
-Warning #1 +
+ Warning #1 -``` -message: Test warning -category: UserWarning -when: runtest -filename: /workspace/tligui_y/slic/tests/test_string_utils.py -lineno: 22 -``` - -
+ ``` + message: Test warning + category: UserWarning + when: runtest + filename: /workspace/tligui_y/slic/tests/test_string_utils.py + lineno: 22 + ``` +
diff --git a/ci-reports/markdown/pytest-report.json b/ci-reports/markdown/pytest-report.json index 463fa8b5..d32df834 100644 --- a/ci-reports/markdown/pytest-report.json +++ b/ci-reports/markdown/pytest-report.json @@ -1 +1 @@ -{"created": 1752583539.0070465, "duration": 0.7477016448974609, "exitcode": 2, "root": "/workspace/tligui_y/slic", "environment": {}, "summary": {"passed": 16, "failed": 32, "xfailed": 2, "total": 50, "collected": 50}, "collectors": [{"nodeid": "", "outcome": "passed", "result": [{"nodeid": ".", "type": "Dir"}]}, {"nodeid": "ci-reports/allure/data", "outcome": "passed", "result": []}, {"nodeid": "ci-reports/allure/export", "outcome": "passed", "result": []}, {"nodeid": "ci-reports/allure/history", "outcome": "passed", "result": []}, {"nodeid": "ci-reports/allure/plugin/behaviors", "outcome": "passed", "result": []}, {"nodeid": "ci-reports/allure/plugin/packages", "outcome": "passed", "result": []}, {"nodeid": "ci-reports/allure/plugin/screen-diff", "outcome": "passed", "result": []}, {"nodeid": "ci-reports/allure/plugin", "outcome": "passed", "result": [{"nodeid": "ci-reports/allure/plugin/behaviors", "type": "Dir"}, {"nodeid": "ci-reports/allure/plugin/packages", "type": "Dir"}, {"nodeid": "ci-reports/allure/plugin/screen-diff", "type": "Dir"}]}, {"nodeid": "ci-reports/allure/widgets", "outcome": "passed", "result": []}, {"nodeid": "ci-reports/allure", "outcome": "passed", "result": [{"nodeid": "ci-reports/allure/data", "type": "Dir"}, {"nodeid": "ci-reports/allure/export", "type": "Dir"}, {"nodeid": "ci-reports/allure/history", "type": "Dir"}, {"nodeid": "ci-reports/allure/plugin", "type": "Dir"}, {"nodeid": "ci-reports/allure/widgets", "type": "Dir"}]}, {"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[2-2-4]", "type": "Function", "lineno": 21}, {"nodeid": "tests/test_math_utils.py::test_addition_pass[1-5-6]", "type": "Function", "lineno": 21}, {"nodeid": "tests/test_math_utils.py::test_addition_pass[3-4-7]", "type": "Function", "lineno": 21}, {"nodeid": "tests/test_math_utils.py::test_addition_pass[3-5-8]", "type": "Function", "lineno": 21}, {"nodeid": "tests/test_math_utils.py::test_addition_pass[3-6-9]", "type": "Function", "lineno": 21}, {"nodeid": "tests/test_math_utils.py::test_addition_pass_id[a=2,b=2,expected=4]", "type": "Function", "lineno": 34}, {"nodeid": "tests/test_math_utils.py::test_addition_pass_id[a=1,b=5,expected=6]", "type": "Function", "lineno": 34}, {"nodeid": "tests/test_math_utils.py::test_addition_pass_id[a=3,b=4,expected=7]", "type": "Function", "lineno": 34}, {"nodeid": "tests/test_math_utils.py::test_addition_fail", "type": "Function", "lineno": 45}, {"nodeid": "tests/test_math_utils.py::test_division_zero", "type": "Function", "lineno": 49}, {"nodeid": "tests/test_math_utils.py::test_multiply_xfail", "type": "Function", "lineno": 53}, {"nodeid": "tests/test_math_utils.py::test_runtime_error", "type": "Function", "lineno": 58}, {"nodeid": "tests/test_math_utils.py::test_memory_error", "type": "Function", "lineno": 62}, {"nodeid": "tests/test_math_utils.py::test_timeout_error", "type": "Function", "lineno": 66}, {"nodeid": "tests/test_math_utils.py::test_recursion_error", "type": "Function", "lineno": 70}, {"nodeid": "tests/test_math_utils.py::test_floating_point_error", "type": "Function", "lineno": 76}, {"nodeid": "tests/test_math_utils.py::test_floating_point_overflow", "type": "Function", "lineno": 80}, {"nodeid": "tests/test_math_utils.py::test_value_error", "type": "Function", "lineno": 84}, {"nodeid": "tests/test_math_utils.py::test_type_error", "type": "Function", "lineno": 88}, {"nodeid": "tests/test_math_utils.py::test_unhandled_exception", "type": "Function", "lineno": 92}, {"nodeid": "tests/test_math_utils.py::test_custom_error", "type": "Function", "lineno": 96}, {"nodeid": "tests/test_math_utils.py::test_stop_iteration_direct", "type": "Function", "lineno": 100}, {"nodeid": "tests/test_math_utils.py::test_generator_exit_direct", "type": "Function", "lineno": 104}, {"nodeid": "tests/test_math_utils.py::test_recursion_limit", "type": "Function", "lineno": 108}, {"nodeid": "tests/test_math_utils.py::test_malformed_code", "type": "Function", "lineno": 119}, {"nodeid": "tests/test_math_utils.py::test_sys_exit", "type": "Function", "lineno": 123}, {"nodeid": "tests/test_math_utils.py::test_broken_function", "type": "Function", "lineno": 127}, {"nodeid": "tests/test_math_utils.py::test_import_error_patch", "type": "Function", "lineno": 133}, {"nodeid": "tests/test_math_utils.py::test_module_not_found_error", "type": "Function", "lineno": 147}]}, {"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": 15}, {"nodeid": "tests/test_string_utils.py::test_warning_emit", "type": "Function", "lineno": 19}, {"nodeid": "tests/test_string_utils.py::test_unicode_decode_error", "type": "Function", "lineno": 23}, {"nodeid": "tests/test_string_utils.py::test_unicode_decode_surrogateescape", "type": "Function", "lineno": 27}, {"nodeid": "tests/test_string_utils.py::test_import_warning", "type": "Function", "lineno": 31}, {"nodeid": "tests/test_string_utils.py::test_xfail_uppercase_digits", "type": "Function", "lineno": 35}, {"nodeid": "tests/test_string_utils.py::test_keyboard_interrupt_direct", "type": "Function", "lineno": 40}]}, {"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": "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.003306024009361863, "outcome": "passed"}, "call": {"duration": 0.00043122703209519386, "outcome": "passed"}, "teardown": {"duration": 0.0002455620560795069, "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.00047692202497273684, "outcome": "passed"}, "call": {"duration": 0.00027267204131931067, "outcome": "passed"}, "teardown": {"duration": 0.0001439769985154271, "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.00011632195673882961, "outcome": "passed"}, "call": {"duration": 0.0001543089747428894, "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.00014571298379451036, "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.00011727400124073029, "outcome": "passed"}, "call": {"duration": 0.0001713389065116644, "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.00015539710875600576, "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.0001983650727197528, "outcome": "passed"}, "call": {"duration": 0.00017721892800182104, "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 0x7f454bc836a0>\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.00016739394050091505, "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.0001892779255285859, "outcome": "passed"}, "call": {"duration": 0.0032198999542742968, "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 0x7f454bcaa640>\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.00033507205080240965, "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.0001474160235375166, "outcome": "passed"}, "call": {"duration": 0.00019636203069239855, "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.0001796690048649907, "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.0002509739715605974, "outcome": "passed"}, "call": {"duration": 0.0001822509802877903, "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 0x7f4549430820>\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.00017032900359481573, "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.000639135017991066, "outcome": "passed"}, "call": {"duration": 0.0009187669493257999, "outcome": "passed"}, "teardown": {"duration": 0.00014366197865456343, "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.00011486595030874014, "outcome": "passed"}, "call": {"duration": 0.0001667090691626072, "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.000141237978823483, "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.00013490708079189062, "outcome": "passed"}, "call": {"duration": 0.0001534830080345273, "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.00014054193161427975, "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.00013450102414935827, "outcome": "passed"}, "call": {"duration": 0.00016440299805253744, "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.00013949396088719368, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_addition_pass[2-2-4]", "lineno": 21, "outcome": "passed", "keywords": ["test_addition_pass[2-2-4]", "parametrize", "pytestmark", "2-2-4", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.0002769000129774213, "outcome": "passed"}, "call": {"duration": 0.00015333190094679594, "outcome": "passed"}, "teardown": {"duration": 0.00014177605044096708, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_addition_pass[1-5-6]", "lineno": 21, "outcome": "passed", "keywords": ["test_addition_pass[1-5-6]", "parametrize", "pytestmark", "1-5-6", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.0002591729862615466, "outcome": "passed"}, "call": {"duration": 0.0001311220694333315, "outcome": "passed"}, "teardown": {"duration": 0.00013376399874687195, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_addition_pass[3-4-7]", "lineno": 21, "outcome": "passed", "keywords": ["test_addition_pass[3-4-7]", "parametrize", "pytestmark", "3-4-7", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00024793099146336317, "outcome": "passed"}, "call": {"duration": 0.00013324199244379997, "outcome": "passed"}, "teardown": {"duration": 0.0001355030108243227, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_addition_pass[3-5-8]", "lineno": 21, "outcome": "passed", "keywords": ["test_addition_pass[3-5-8]", "parametrize", "pytestmark", "3-5-8", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00024345493875443935, "outcome": "passed"}, "call": {"duration": 0.00012541399337351322, "outcome": "passed"}, "teardown": {"duration": 0.00013200694229453802, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_addition_pass[3-6-9]", "lineno": 21, "outcome": "passed", "keywords": ["test_addition_pass[3-6-9]", "parametrize", "pytestmark", "3-6-9", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.0002495580120012164, "outcome": "passed"}, "call": {"duration": 0.00012878398410975933, "outcome": "passed"}, "teardown": {"duration": 0.00013866799417883158, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_addition_pass_id[a=2,b=2,expected=4]", "lineno": 34, "outcome": "passed", "keywords": ["test_addition_pass_id[a=2,b=2,expected=4]", "parametrize", "pytestmark", "a=2,b=2,expected=4", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.000251802965067327, "outcome": "passed"}, "call": {"duration": 0.0001290289219468832, "outcome": "passed"}, "teardown": {"duration": 0.00013180298265069723, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_addition_pass_id[a=1,b=5,expected=6]", "lineno": 34, "outcome": "passed", "keywords": ["test_addition_pass_id[a=1,b=5,expected=6]", "parametrize", "pytestmark", "a=1,b=5,expected=6", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00023559504188597202, "outcome": "passed"}, "call": {"duration": 0.00012937607243657112, "outcome": "passed"}, "teardown": {"duration": 0.000134129892103374, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_addition_pass_id[a=3,b=4,expected=7]", "lineno": 34, "outcome": "passed", "keywords": ["test_addition_pass_id[a=3,b=4,expected=7]", "parametrize", "pytestmark", "a=3,b=4,expected=7", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.0002325690584257245, "outcome": "passed"}, "call": {"duration": 0.00012418197002261877, "outcome": "passed"}, "teardown": {"duration": 0.00013059494085609913, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_addition_fail", "lineno": 45, "outcome": "failed", "keywords": ["test_addition_fail", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00010482210200279951, "outcome": "passed"}, "call": {"duration": 0.00046012108214199543, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 48, "message": "assert 4 == 5\n + where 4 = addition(2, 2)"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 48, "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:48: AssertionError"}, "teardown": {"duration": 0.00013959698844701052, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_division_zero", "lineno": 49, "outcome": "failed", "keywords": ["test_division_zero", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.0001177910016849637, "outcome": "passed"}, "call": {"duration": 0.00016630592290312052, "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": 52, "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:52: \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.00014093692880123854, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_multiply_xfail", "lineno": 53, "outcome": "xfailed", "keywords": ["test_multiply_xfail", "xfail", "pytestmark", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00013305002357810736, "outcome": "passed"}, "call": {"duration": 0.0002614330733194947, "outcome": "skipped", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 57, "message": "assert 4 == 5\n + where 4 = multiply(2, 2)"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 57, "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:57: AssertionError"}, "teardown": {"duration": 0.00013987801503390074, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_runtime_error", "lineno": 58, "outcome": "failed", "keywords": ["test_runtime_error", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00013403804041445255, "outcome": "passed"}, "call": {"duration": 0.00015042000450193882, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 61, "message": "RuntimeError: Forced runtime error"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 61, "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:61: RuntimeError"}, "teardown": {"duration": 0.00013818300794810057, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_memory_error", "lineno": 62, "outcome": "failed", "keywords": ["test_memory_error", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00011951697524636984, "outcome": "passed"}, "call": {"duration": 0.00015881890431046486, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 65, "message": "MemoryError: Simulated memory error"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 65, "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:65: MemoryError"}, "teardown": {"duration": 0.000157942995429039, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_timeout_error", "lineno": 66, "outcome": "failed", "keywords": ["test_timeout_error", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.0001200319966301322, "outcome": "passed"}, "call": {"duration": 0.0001476749312132597, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 69, "message": "TimeoutError: Simulated timeout error"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 69, "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:69: TimeoutError"}, "teardown": {"duration": 0.00013843702618032694, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_recursion_error", "lineno": 70, "outcome": "failed", "keywords": ["test_recursion_error", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00012984592467546463, "outcome": "passed"}, "call": {"duration": 0.0007902949582785368, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 74, "message": "RecursionError: maximum recursion depth exceeded"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 75, "message": ""}, {"path": "tests/test_math_utils.py", "lineno": 74, "message": "in recursive"}, {"path": "tests/test_math_utils.py", "lineno": 74, "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:75: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_math_utils.py:74: in recursive\n return recursive()\ntests/test_math_utils.py:74: in recursive\n return recursive()\nE RecursionError: maximum recursion depth exceeded\n!!! Recursion detected (same locals & position)"}, "teardown": {"duration": 0.00014732603449374437, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_floating_point_error", "lineno": 76, "outcome": "failed", "keywords": ["test_floating_point_error", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00011733302380889654, "outcome": "passed"}, "call": {"duration": 0.00014691194519400597, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 79, "message": "FloatingPointError: Simulated floating point error"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 79, "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:79: FloatingPointError"}, "teardown": {"duration": 0.00014001107774674892, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_floating_point_overflow", "lineno": 80, "outcome": "failed", "keywords": ["test_floating_point_overflow", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00011868204455822706, "outcome": "passed"}, "call": {"duration": 0.00017008197028189898, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 83, "message": "OverflowError: math range error"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 83, "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:83: OverflowError"}, "teardown": {"duration": 0.00014039804227650166, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_value_error", "lineno": 84, "outcome": "failed", "keywords": ["test_value_error", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.0001175740035250783, "outcome": "passed"}, "call": {"duration": 0.00015287508722394705, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 87, "message": "ValueError: invalid literal for int() with base 10: 'invalid'"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 87, "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:87: ValueError"}, "teardown": {"duration": 0.00013840000610798597, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_type_error", "lineno": 88, "outcome": "failed", "keywords": ["test_type_error", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00011628307402133942, "outcome": "passed"}, "call": {"duration": 0.00014842103701084852, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 91, "message": "TypeError: 'int' object is not iterable"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 91, "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:91: TypeError"}, "teardown": {"duration": 0.0001388370292261243, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_unhandled_exception", "lineno": 92, "outcome": "failed", "keywords": ["test_unhandled_exception", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00011989299673587084, "outcome": "passed"}, "call": {"duration": 0.0001470400020480156, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 95, "message": "Exception: Generic unhandled exception"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 95, "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:95: Exception"}, "teardown": {"duration": 0.00013924797531217337, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_custom_error", "lineno": 96, "outcome": "failed", "keywords": ["test_custom_error", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00012083398178219795, "outcome": "passed"}, "call": {"duration": 0.0001506999833509326, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 99, "message": "test_math_utils.CustomError: Custom error simulation"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 99, "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:99: CustomError"}, "teardown": {"duration": 0.0001408139942213893, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_stop_iteration_direct", "lineno": 100, "outcome": "failed", "keywords": ["test_stop_iteration_direct", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00011707504745572805, "outcome": "passed"}, "call": {"duration": 0.00014599901624023914, "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:103: StopIteration\n\nThe above exception was the direct cause of the following exception:\n\ncls = \nfunc = . at 0x7f45494159d0>\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.0002715260488912463, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_generator_exit_direct", "lineno": 104, "outcome": "failed", "keywords": ["test_generator_exit_direct", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00014523800928145647, "outcome": "passed"}, "call": {"duration": 0.00019391102250665426, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 107, "message": "GeneratorExit"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 107, "message": "GeneratorExit"}], "longrepr": "def test_generator_exit_direct():\n # Directly raise GeneratorExit exception\n> raise GeneratorExit()\nE GeneratorExit\n\ntests/test_math_utils.py:107: GeneratorExit"}, "teardown": {"duration": 0.00018377997912466526, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_recursion_limit", "lineno": 108, "outcome": "failed", "keywords": ["test_recursion_limit", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00012531899847090244, "outcome": "passed"}, "call": {"duration": 0.00016452092677354813, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 112, "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": 112, "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:112: RecursionError"}, "teardown": {"duration": 0.00014143495354801416, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_malformed_code", "lineno": 119, "outcome": "failed", "keywords": ["test_malformed_code", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00012529094237834215, "outcome": "passed"}, "call": {"duration": 0.000163018936291337, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 122, "message": " File \"\", line 1\n def bad(:\n ^\nSyntaxError: invalid syntax"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 122, "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:122: SyntaxError"}, "teardown": {"duration": 0.00013939000200480223, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_sys_exit", "lineno": 123, "outcome": "failed", "keywords": ["test_sys_exit", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00012842891737818718, "outcome": "passed"}, "call": {"duration": 0.00014804606325924397, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 126, "message": "SystemExit: 1"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 126, "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:126: SystemExit"}, "teardown": {"duration": 0.00014186103362590075, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_broken_function", "lineno": 127, "outcome": "failed", "keywords": ["test_broken_function", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00011639401782304049, "outcome": "passed"}, "call": {"duration": 0.0001637510722503066, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 131, "message": "TypeError: Broken function"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 132, "message": ""}, {"path": "tests/test_math_utils.py", "lineno": 131, "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:132: \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:131: TypeError"}, "teardown": {"duration": 0.00014208804350346327, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_import_error_patch", "lineno": 133, "outcome": "failed", "keywords": ["test_import_error_patch", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00011552497744560242, "outcome": "passed"}, "call": {"duration": 0.00016487599350512028, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 139, "message": "ImportError: Simulated ImportError"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 144, "message": ""}, {"path": "tests/test_math_utils.py", "lineno": 139, "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:144: \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:139: ImportError"}, "teardown": {"duration": 0.0001433549914509058, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_module_not_found_error", "lineno": 147, "outcome": "failed", "keywords": ["test_module_not_found_error", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00011692498810589314, "outcome": "passed"}, "call": {"duration": 0.0004757900023832917, "outcome": "failed", "crash": {"path": "", "lineno": 973, "message": "ModuleNotFoundError: No module named 'non_existent_module_xyz'"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 150, "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:150: \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.00014302099589258432, "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.0001260540448129177, "outcome": "passed"}, "call": {"duration": 0.00014317291788756847, "outcome": "passed"}, "teardown": {"duration": 0.00010073604062199593, "outcome": "passed"}}, {"nodeid": "tests/test_string_utils.py::test_uppercase_type_error", "lineno": 11, "outcome": "failed", "keywords": ["test_uppercase_type_error", "test_string_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00011397106572985649, "outcome": "passed"}, "call": {"duration": 0.0001431129639968276, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/functions/string_utils.py", "lineno": 3, "message": "TypeError: Input cannot be None"}, "traceback": [{"path": "tests/test_string_utils.py", "lineno": 14, "message": ""}, {"path": "functions/string_utils.py", "lineno": 3, "message": "TypeError"}], "longrepr": "def test_uppercase_type_error():\n # TypeError when input is None (invalid input)\n> uppercase(None)\n\ntests/test_string_utils.py:14: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\ns = None\n\n def uppercase(s):\n if s is None:\n> raise TypeError(\"Input cannot be None\")\nE TypeError: Input cannot be None\n\nfunctions/string_utils.py:3: TypeError"}, "teardown": {"duration": 0.0001555809285491705, "outcome": "passed"}}, {"nodeid": "tests/test_string_utils.py::test_reverse_string", "lineno": 15, "outcome": "passed", "keywords": ["test_reverse_string", "test_string_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00011937308590859175, "outcome": "passed"}, "call": {"duration": 0.00013982807286083698, "outcome": "passed"}, "teardown": {"duration": 0.00010069191921502352, "outcome": "passed"}}, {"nodeid": "tests/test_string_utils.py::test_warning_emit", "lineno": 19, "outcome": "passed", "keywords": ["test_warning_emit", "test_string_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00010798603761941195, "outcome": "passed"}, "call": {"duration": 0.00014248699881136417, "outcome": "passed"}, "teardown": {"duration": 9.622995276004076e-05, "outcome": "passed"}}, {"nodeid": "tests/test_string_utils.py::test_unicode_decode_error", "lineno": 23, "outcome": "failed", "keywords": ["test_unicode_decode_error", "test_string_utils.py", "tests", "slic", ""], "setup": {"duration": 0.0001129229785874486, "outcome": "passed"}, "call": {"duration": 0.00014862604439258575, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_string_utils.py", "lineno": 26, "message": "UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 0: invalid start byte"}, "traceback": [{"path": "tests/test_string_utils.py", "lineno": 26, "message": "UnicodeDecodeError"}], "longrepr": "def test_unicode_decode_error():\n # UnicodeDecodeError when decoding invalid byte sequence\n> b'\\xff'.decode('utf-8')\nE UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 0: invalid start byte\n\ntests/test_string_utils.py:26: UnicodeDecodeError"}, "teardown": {"duration": 0.00013591500464826822, "outcome": "passed"}}, {"nodeid": "tests/test_string_utils.py::test_unicode_decode_surrogateescape", "lineno": 27, "outcome": "failed", "keywords": ["test_unicode_decode_surrogateescape", "test_string_utils.py", "tests", "slic", ""], "setup": {"duration": 0.0001163469860330224, "outcome": "passed"}, "call": {"duration": 0.00015918898861855268, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_string_utils.py", "lineno": 30, "message": "UnicodeDecodeError: 'utf-8' codec can't decode byte 0x80 in position 0: invalid start byte"}, "traceback": [{"path": "tests/test_string_utils.py", "lineno": 30, "message": "UnicodeDecodeError"}], "longrepr": "def test_unicode_decode_surrogateescape():\n # UnicodeDecodeError with strict error handler on invalid byte\n> b\"\\x80\".decode(\"utf-8\", errors=\"strict\")\nE UnicodeDecodeError: 'utf-8' codec can't decode byte 0x80 in position 0: invalid start byte\n\ntests/test_string_utils.py:30: UnicodeDecodeError"}, "teardown": {"duration": 0.00013616401702165604, "outcome": "passed"}}, {"nodeid": "tests/test_string_utils.py::test_import_warning", "lineno": 31, "outcome": "passed", "keywords": ["test_import_warning", "test_string_utils.py", "tests", "slic", ""], "setup": {"duration": 0.0001198500394821167, "outcome": "passed"}, "call": {"duration": 0.0001356599386781454, "outcome": "passed"}, "teardown": {"duration": 0.00010376307182013988, "outcome": "passed"}}, {"nodeid": "tests/test_string_utils.py::test_xfail_uppercase_digits", "lineno": 35, "outcome": "xfailed", "keywords": ["test_xfail_uppercase_digits", "xfail", "pytestmark", "test_string_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00011542008724063635, "outcome": "passed"}, "call": {"duration": 0.0006117690354585648, "outcome": "skipped", "crash": {"path": "/workspace/tligui_y/slic/tests/test_string_utils.py", "lineno": 39, "message": "AssertionError: assert 'ABC123' == 'ABC1234'\n \n - ABC1234\n ? -\n + ABC123"}, "traceback": [{"path": "tests/test_string_utils.py", "lineno": 39, "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:39: AssertionError"}, "teardown": {"duration": 0.00013532699085772038, "outcome": "passed"}}, {"nodeid": "tests/test_string_utils.py::test_keyboard_interrupt_direct", "lineno": 40, "outcome": "passed", "keywords": ["test_keyboard_interrupt_direct", "test_string_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00011842406820505857, "outcome": "passed"}}], "warnings": [{"message": "Test warning", "category": "UserWarning", "when": "runtest", "filename": "/workspace/tligui_y/slic/tests/test_string_utils.py", "lineno": 22}]} \ No newline at end of file +{"created": 1752583627.7121985, "duration": 0.7412312030792236, "exitcode": 2, "root": "/workspace/tligui_y/slic", "environment": {}, "summary": {"passed": 16, "failed": 32, "xfailed": 2, "total": 50, "collected": 50}, "collectors": [{"nodeid": "", "outcome": "passed", "result": [{"nodeid": ".", "type": "Dir"}]}, {"nodeid": "ci-reports/allure/data", "outcome": "passed", "result": []}, {"nodeid": "ci-reports/allure/export", "outcome": "passed", "result": []}, {"nodeid": "ci-reports/allure/history", "outcome": "passed", "result": []}, {"nodeid": "ci-reports/allure/plugin/behaviors", "outcome": "passed", "result": []}, {"nodeid": "ci-reports/allure/plugin/packages", "outcome": "passed", "result": []}, {"nodeid": "ci-reports/allure/plugin/screen-diff", "outcome": "passed", "result": []}, {"nodeid": "ci-reports/allure/plugin", "outcome": "passed", "result": [{"nodeid": "ci-reports/allure/plugin/behaviors", "type": "Dir"}, {"nodeid": "ci-reports/allure/plugin/packages", "type": "Dir"}, {"nodeid": "ci-reports/allure/plugin/screen-diff", "type": "Dir"}]}, {"nodeid": "ci-reports/allure/widgets", "outcome": "passed", "result": []}, {"nodeid": "ci-reports/allure", "outcome": "passed", "result": [{"nodeid": "ci-reports/allure/data", "type": "Dir"}, {"nodeid": "ci-reports/allure/export", "type": "Dir"}, {"nodeid": "ci-reports/allure/history", "type": "Dir"}, {"nodeid": "ci-reports/allure/plugin", "type": "Dir"}, {"nodeid": "ci-reports/allure/widgets", "type": "Dir"}]}, {"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[2-2-4]", "type": "Function", "lineno": 21}, {"nodeid": "tests/test_math_utils.py::test_addition_pass[1-5-6]", "type": "Function", "lineno": 21}, {"nodeid": "tests/test_math_utils.py::test_addition_pass[3-4-7]", "type": "Function", "lineno": 21}, {"nodeid": "tests/test_math_utils.py::test_addition_pass[3-5-8]", "type": "Function", "lineno": 21}, {"nodeid": "tests/test_math_utils.py::test_addition_pass[3-6-9]", "type": "Function", "lineno": 21}, {"nodeid": "tests/test_math_utils.py::test_addition_pass_id[a=2,b=2,expected=4]", "type": "Function", "lineno": 34}, {"nodeid": "tests/test_math_utils.py::test_addition_pass_id[a=1,b=5,expected=6]", "type": "Function", "lineno": 34}, {"nodeid": "tests/test_math_utils.py::test_addition_pass_id[a=3,b=4,expected=7]", "type": "Function", "lineno": 34}, {"nodeid": "tests/test_math_utils.py::test_addition_fail", "type": "Function", "lineno": 45}, {"nodeid": "tests/test_math_utils.py::test_division_zero", "type": "Function", "lineno": 49}, {"nodeid": "tests/test_math_utils.py::test_multiply_xfail", "type": "Function", "lineno": 53}, {"nodeid": "tests/test_math_utils.py::test_runtime_error", "type": "Function", "lineno": 58}, {"nodeid": "tests/test_math_utils.py::test_memory_error", "type": "Function", "lineno": 62}, {"nodeid": "tests/test_math_utils.py::test_timeout_error", "type": "Function", "lineno": 66}, {"nodeid": "tests/test_math_utils.py::test_recursion_error", "type": "Function", "lineno": 70}, {"nodeid": "tests/test_math_utils.py::test_floating_point_error", "type": "Function", "lineno": 76}, {"nodeid": "tests/test_math_utils.py::test_floating_point_overflow", "type": "Function", "lineno": 80}, {"nodeid": "tests/test_math_utils.py::test_value_error", "type": "Function", "lineno": 84}, {"nodeid": "tests/test_math_utils.py::test_type_error", "type": "Function", "lineno": 88}, {"nodeid": "tests/test_math_utils.py::test_unhandled_exception", "type": "Function", "lineno": 92}, {"nodeid": "tests/test_math_utils.py::test_custom_error", "type": "Function", "lineno": 96}, {"nodeid": "tests/test_math_utils.py::test_stop_iteration_direct", "type": "Function", "lineno": 100}, {"nodeid": "tests/test_math_utils.py::test_generator_exit_direct", "type": "Function", "lineno": 104}, {"nodeid": "tests/test_math_utils.py::test_recursion_limit", "type": "Function", "lineno": 108}, {"nodeid": "tests/test_math_utils.py::test_malformed_code", "type": "Function", "lineno": 119}, {"nodeid": "tests/test_math_utils.py::test_sys_exit", "type": "Function", "lineno": 123}, {"nodeid": "tests/test_math_utils.py::test_broken_function", "type": "Function", "lineno": 127}, {"nodeid": "tests/test_math_utils.py::test_import_error_patch", "type": "Function", "lineno": 133}, {"nodeid": "tests/test_math_utils.py::test_module_not_found_error", "type": "Function", "lineno": 147}]}, {"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": 15}, {"nodeid": "tests/test_string_utils.py::test_warning_emit", "type": "Function", "lineno": 19}, {"nodeid": "tests/test_string_utils.py::test_unicode_decode_error", "type": "Function", "lineno": 23}, {"nodeid": "tests/test_string_utils.py::test_unicode_decode_surrogateescape", "type": "Function", "lineno": 27}, {"nodeid": "tests/test_string_utils.py::test_import_warning", "type": "Function", "lineno": 31}, {"nodeid": "tests/test_string_utils.py::test_xfail_uppercase_digits", "type": "Function", "lineno": 35}, {"nodeid": "tests/test_string_utils.py::test_keyboard_interrupt_direct", "type": "Function", "lineno": 40}]}, {"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": "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.00357565691228956, "outcome": "passed"}, "call": {"duration": 0.0005319260526448488, "outcome": "passed"}, "teardown": {"duration": 0.000257298001088202, "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.00048141402658075094, "outcome": "passed"}, "call": {"duration": 0.0002904899884015322, "outcome": "passed"}, "teardown": {"duration": 0.00013869802933186293, "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.00010975205805152655, "outcome": "passed"}, "call": {"duration": 0.00015606603119522333, "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.0001492849551141262, "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.00012114399578422308, "outcome": "passed"}, "call": {"duration": 0.00018042209558188915, "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.0001516400370746851, "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.00020881893578916788, "outcome": "passed"}, "call": {"duration": 0.000175846042111516, "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 0x7fafcb908490>\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.00016581895761191845, "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.0001955120824277401, "outcome": "passed"}, "call": {"duration": 0.0032885189866647124, "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 0x7fafcbcb9370>\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.0003398940898478031, "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.00014093797653913498, "outcome": "passed"}, "call": {"duration": 0.00020234601106494665, "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.00020648003555834293, "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.00024214608129113913, "outcome": "passed"}, "call": {"duration": 0.00018181907944381237, "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 0x7fafcbca59d0>\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.00017514999490231276, "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.0006633950397372246, "outcome": "passed"}, "call": {"duration": 0.0009680049261078238, "outcome": "passed"}, "teardown": {"duration": 0.00014728005044162273, "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.00011447502765804529, "outcome": "passed"}, "call": {"duration": 0.00017145206220448017, "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.00014994700904935598, "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.00012550107203423977, "outcome": "passed"}, "call": {"duration": 0.00015411106869578362, "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.0001560969976708293, "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.00011706200893968344, "outcome": "passed"}, "call": {"duration": 0.0001500491052865982, "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.00013729301281273365, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_addition_pass[2-2-4]", "lineno": 21, "outcome": "passed", "keywords": ["test_addition_pass[2-2-4]", "parametrize", "pytestmark", "2-2-4", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.000296312035061419, "outcome": "passed"}, "call": {"duration": 0.00014442799147218466, "outcome": "passed"}, "teardown": {"duration": 0.00014861999079585075, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_addition_pass[1-5-6]", "lineno": 21, "outcome": "passed", "keywords": ["test_addition_pass[1-5-6]", "parametrize", "pytestmark", "1-5-6", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.0002547319745644927, "outcome": "passed"}, "call": {"duration": 0.00013586506247520447, "outcome": "passed"}, "teardown": {"duration": 0.00014216499403119087, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_addition_pass[3-4-7]", "lineno": 21, "outcome": "passed", "keywords": ["test_addition_pass[3-4-7]", "parametrize", "pytestmark", "3-4-7", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.0002360380021855235, "outcome": "passed"}, "call": {"duration": 0.00012578698806464672, "outcome": "passed"}, "teardown": {"duration": 0.0001390549587085843, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_addition_pass[3-5-8]", "lineno": 21, "outcome": "passed", "keywords": ["test_addition_pass[3-5-8]", "parametrize", "pytestmark", "3-5-8", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00024050194770097733, "outcome": "passed"}, "call": {"duration": 0.0001274690730497241, "outcome": "passed"}, "teardown": {"duration": 0.0001366030192002654, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_addition_pass[3-6-9]", "lineno": 21, "outcome": "passed", "keywords": ["test_addition_pass[3-6-9]", "parametrize", "pytestmark", "3-6-9", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00023324904032051563, "outcome": "passed"}, "call": {"duration": 0.00012290303129702806, "outcome": "passed"}, "teardown": {"duration": 0.0001262999139726162, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_addition_pass_id[a=2,b=2,expected=4]", "lineno": 34, "outcome": "passed", "keywords": ["test_addition_pass_id[a=2,b=2,expected=4]", "parametrize", "pytestmark", "a=2,b=2,expected=4", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00023070001043379307, "outcome": "passed"}, "call": {"duration": 0.0001236150274053216, "outcome": "passed"}, "teardown": {"duration": 0.00013060797937214375, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_addition_pass_id[a=1,b=5,expected=6]", "lineno": 34, "outcome": "passed", "keywords": ["test_addition_pass_id[a=1,b=5,expected=6]", "parametrize", "pytestmark", "a=1,b=5,expected=6", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00023892405442893505, "outcome": "passed"}, "call": {"duration": 0.00012131198309361935, "outcome": "passed"}, "teardown": {"duration": 0.00012410595081746578, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_addition_pass_id[a=3,b=4,expected=7]", "lineno": 34, "outcome": "passed", "keywords": ["test_addition_pass_id[a=3,b=4,expected=7]", "parametrize", "pytestmark", "a=3,b=4,expected=7", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00024421699345111847, "outcome": "passed"}, "call": {"duration": 0.00012618897017091513, "outcome": "passed"}, "teardown": {"duration": 0.00013066898100078106, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_addition_fail", "lineno": 45, "outcome": "failed", "keywords": ["test_addition_fail", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00010063906665891409, "outcome": "passed"}, "call": {"duration": 0.0004639949183911085, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 48, "message": "assert 4 == 5\n + where 4 = addition(2, 2)"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 48, "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:48: AssertionError"}, "teardown": {"duration": 0.00014838401693850756, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_division_zero", "lineno": 49, "outcome": "failed", "keywords": ["test_division_zero", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.0001145040150731802, "outcome": "passed"}, "call": {"duration": 0.00015226297546178102, "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": 52, "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:52: \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.00013816601131111383, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_multiply_xfail", "lineno": 53, "outcome": "xfailed", "keywords": ["test_multiply_xfail", "xfail", "pytestmark", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00013550394214689732, "outcome": "passed"}, "call": {"duration": 0.00027888803742825985, "outcome": "skipped", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 57, "message": "assert 4 == 5\n + where 4 = multiply(2, 2)"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 57, "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:57: AssertionError"}, "teardown": {"duration": 0.0001409549731761217, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_runtime_error", "lineno": 58, "outcome": "failed", "keywords": ["test_runtime_error", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00011498597450554371, "outcome": "passed"}, "call": {"duration": 0.00015740294475108385, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 61, "message": "RuntimeError: Forced runtime error"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 61, "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:61: RuntimeError"}, "teardown": {"duration": 0.00014895608182996511, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_memory_error", "lineno": 62, "outcome": "failed", "keywords": ["test_memory_error", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00011588598135858774, "outcome": "passed"}, "call": {"duration": 0.00014624395407736301, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 65, "message": "MemoryError: Simulated memory error"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 65, "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:65: MemoryError"}, "teardown": {"duration": 0.00013591500464826822, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_timeout_error", "lineno": 66, "outcome": "failed", "keywords": ["test_timeout_error", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00011850905138999224, "outcome": "passed"}, "call": {"duration": 0.00014857808127999306, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 69, "message": "TimeoutError: Simulated timeout error"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 69, "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:69: TimeoutError"}, "teardown": {"duration": 0.00013402104377746582, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_recursion_error", "lineno": 70, "outcome": "failed", "keywords": ["test_recursion_error", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00011731707490980625, "outcome": "passed"}, "call": {"duration": 0.0008344230009242892, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 74, "message": "RecursionError: maximum recursion depth exceeded"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 75, "message": ""}, {"path": "tests/test_math_utils.py", "lineno": 74, "message": "in recursive"}, {"path": "tests/test_math_utils.py", "lineno": 74, "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:75: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_math_utils.py:74: in recursive\n return recursive()\ntests/test_math_utils.py:74: in recursive\n return recursive()\nE RecursionError: maximum recursion depth exceeded\n!!! Recursion detected (same locals & position)"}, "teardown": {"duration": 0.0001551120076328516, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_floating_point_error", "lineno": 76, "outcome": "failed", "keywords": ["test_floating_point_error", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00012273492757230997, "outcome": "passed"}, "call": {"duration": 0.0001493419986218214, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 79, "message": "FloatingPointError: Simulated floating point error"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 79, "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:79: FloatingPointError"}, "teardown": {"duration": 0.00014115998055785894, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_floating_point_overflow", "lineno": 80, "outcome": "failed", "keywords": ["test_floating_point_overflow", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.0001254229573532939, "outcome": "passed"}, "call": {"duration": 0.00017133902292698622, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 83, "message": "OverflowError: math range error"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 83, "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:83: OverflowError"}, "teardown": {"duration": 0.00014139094855636358, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_value_error", "lineno": 84, "outcome": "failed", "keywords": ["test_value_error", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00011835095938295126, "outcome": "passed"}, "call": {"duration": 0.0001625650329515338, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 87, "message": "ValueError: invalid literal for int() with base 10: 'invalid'"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 87, "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:87: ValueError"}, "teardown": {"duration": 0.0001487360568717122, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_type_error", "lineno": 88, "outcome": "failed", "keywords": ["test_type_error", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00011670205276459455, "outcome": "passed"}, "call": {"duration": 0.00015025900211185217, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 91, "message": "TypeError: 'int' object is not iterable"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 91, "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:91: TypeError"}, "teardown": {"duration": 0.00015126296784728765, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_unhandled_exception", "lineno": 92, "outcome": "failed", "keywords": ["test_unhandled_exception", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00011894991621375084, "outcome": "passed"}, "call": {"duration": 0.0001481849467381835, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 95, "message": "Exception: Generic unhandled exception"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 95, "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:95: Exception"}, "teardown": {"duration": 0.00013894704170525074, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_custom_error", "lineno": 96, "outcome": "failed", "keywords": ["test_custom_error", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00011696608271449804, "outcome": "passed"}, "call": {"duration": 0.00014750100672245026, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 99, "message": "test_math_utils.CustomError: Custom error simulation"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 99, "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:99: CustomError"}, "teardown": {"duration": 0.00013697310350835323, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_stop_iteration_direct", "lineno": 100, "outcome": "failed", "keywords": ["test_stop_iteration_direct", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00011839705985039473, "outcome": "passed"}, "call": {"duration": 0.00016201799735426903, "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:103: StopIteration\n\nThe above exception was the direct cause of the following exception:\n\ncls = \nfunc = . at 0x7fafce0d8550>\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.00026274402625858784, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_generator_exit_direct", "lineno": 104, "outcome": "failed", "keywords": ["test_generator_exit_direct", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.0001527620479464531, "outcome": "passed"}, "call": {"duration": 0.00018576800357550383, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 107, "message": "GeneratorExit"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 107, "message": "GeneratorExit"}], "longrepr": "def test_generator_exit_direct():\n # Directly raise GeneratorExit exception\n> raise GeneratorExit()\nE GeneratorExit\n\ntests/test_math_utils.py:107: GeneratorExit"}, "teardown": {"duration": 0.0001841250341385603, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_recursion_limit", "lineno": 108, "outcome": "failed", "keywords": ["test_recursion_limit", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00012514600530266762, "outcome": "passed"}, "call": {"duration": 0.00017099804244935513, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 112, "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": 112, "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:112: RecursionError"}, "teardown": {"duration": 0.00014385196845978498, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_malformed_code", "lineno": 119, "outcome": "failed", "keywords": ["test_malformed_code", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.0001204499276354909, "outcome": "passed"}, "call": {"duration": 0.00016057502944022417, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 122, "message": " File \"\", line 1\n def bad(:\n ^\nSyntaxError: invalid syntax"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 122, "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:122: SyntaxError"}, "teardown": {"duration": 0.00013678392861038446, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_sys_exit", "lineno": 123, "outcome": "failed", "keywords": ["test_sys_exit", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00011535489466041327, "outcome": "passed"}, "call": {"duration": 0.0001469220733270049, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 126, "message": "SystemExit: 1"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 126, "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:126: SystemExit"}, "teardown": {"duration": 0.00013784505426883698, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_broken_function", "lineno": 127, "outcome": "failed", "keywords": ["test_broken_function", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.0001164779532700777, "outcome": "passed"}, "call": {"duration": 0.00015197100583463907, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 131, "message": "TypeError: Broken function"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 132, "message": ""}, {"path": "tests/test_math_utils.py", "lineno": 131, "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:132: \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:131: TypeError"}, "teardown": {"duration": 0.00014306092634797096, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_import_error_patch", "lineno": 133, "outcome": "failed", "keywords": ["test_import_error_patch", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.0001171020558103919, "outcome": "passed"}, "call": {"duration": 0.00015627394896000624, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 139, "message": "ImportError: Simulated ImportError"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 144, "message": ""}, {"path": "tests/test_math_utils.py", "lineno": 139, "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:144: \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:139: ImportError"}, "teardown": {"duration": 0.00014185498002916574, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_module_not_found_error", "lineno": 147, "outcome": "failed", "keywords": ["test_module_not_found_error", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00011491100303828716, "outcome": "passed"}, "call": {"duration": 0.0004885760135948658, "outcome": "failed", "crash": {"path": "", "lineno": 973, "message": "ModuleNotFoundError: No module named 'non_existent_module_xyz'"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 150, "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:150: \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.00015132792759686708, "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.00012812006752938032, "outcome": "passed"}, "call": {"duration": 0.00014116999227553606, "outcome": "passed"}, "teardown": {"duration": 0.00011786306276917458, "outcome": "passed"}}, {"nodeid": "tests/test_string_utils.py::test_uppercase_type_error", "lineno": 11, "outcome": "failed", "keywords": ["test_uppercase_type_error", "test_string_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00010353792458772659, "outcome": "passed"}, "call": {"duration": 0.00014010095037519932, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/functions/string_utils.py", "lineno": 3, "message": "TypeError: Input cannot be None"}, "traceback": [{"path": "tests/test_string_utils.py", "lineno": 14, "message": ""}, {"path": "functions/string_utils.py", "lineno": 3, "message": "TypeError"}], "longrepr": "def test_uppercase_type_error():\n # TypeError when input is None (invalid input)\n> uppercase(None)\n\ntests/test_string_utils.py:14: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\ns = None\n\n def uppercase(s):\n if s is None:\n> raise TypeError(\"Input cannot be None\")\nE TypeError: Input cannot be None\n\nfunctions/string_utils.py:3: TypeError"}, "teardown": {"duration": 0.00013964495155960321, "outcome": "passed"}}, {"nodeid": "tests/test_string_utils.py::test_reverse_string", "lineno": 15, "outcome": "passed", "keywords": ["test_reverse_string", "test_string_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00011440191883593798, "outcome": "passed"}, "call": {"duration": 0.0001365359639748931, "outcome": "passed"}, "teardown": {"duration": 0.00010037596803158522, "outcome": "passed"}}, {"nodeid": "tests/test_string_utils.py::test_warning_emit", "lineno": 19, "outcome": "passed", "keywords": ["test_warning_emit", "test_string_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00010325200855731964, "outcome": "passed"}, "call": {"duration": 0.00014043902046978474, "outcome": "passed"}, "teardown": {"duration": 9.429897181689739e-05, "outcome": "passed"}}, {"nodeid": "tests/test_string_utils.py::test_unicode_decode_error", "lineno": 23, "outcome": "failed", "keywords": ["test_unicode_decode_error", "test_string_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00010833691339939833, "outcome": "passed"}, "call": {"duration": 0.0001430049305781722, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_string_utils.py", "lineno": 26, "message": "UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 0: invalid start byte"}, "traceback": [{"path": "tests/test_string_utils.py", "lineno": 26, "message": "UnicodeDecodeError"}], "longrepr": "def test_unicode_decode_error():\n # UnicodeDecodeError when decoding invalid byte sequence\n> b'\\xff'.decode('utf-8')\nE UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 0: invalid start byte\n\ntests/test_string_utils.py:26: UnicodeDecodeError"}, "teardown": {"duration": 0.00013374397531151772, "outcome": "passed"}}, {"nodeid": "tests/test_string_utils.py::test_unicode_decode_surrogateescape", "lineno": 27, "outcome": "failed", "keywords": ["test_unicode_decode_surrogateescape", "test_string_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00012567604426294565, "outcome": "passed"}, "call": {"duration": 0.0001547579886391759, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_string_utils.py", "lineno": 30, "message": "UnicodeDecodeError: 'utf-8' codec can't decode byte 0x80 in position 0: invalid start byte"}, "traceback": [{"path": "tests/test_string_utils.py", "lineno": 30, "message": "UnicodeDecodeError"}], "longrepr": "def test_unicode_decode_surrogateescape():\n # UnicodeDecodeError with strict error handler on invalid byte\n> b\"\\x80\".decode(\"utf-8\", errors=\"strict\")\nE UnicodeDecodeError: 'utf-8' codec can't decode byte 0x80 in position 0: invalid start byte\n\ntests/test_string_utils.py:30: UnicodeDecodeError"}, "teardown": {"duration": 0.00013282708823680878, "outcome": "passed"}}, {"nodeid": "tests/test_string_utils.py::test_import_warning", "lineno": 31, "outcome": "passed", "keywords": ["test_import_warning", "test_string_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00011390901636332273, "outcome": "passed"}, "call": {"duration": 0.00014756806194782257, "outcome": "passed"}, "teardown": {"duration": 9.950203821063042e-05, "outcome": "passed"}}, {"nodeid": "tests/test_string_utils.py::test_xfail_uppercase_digits", "lineno": 35, "outcome": "xfailed", "keywords": ["test_xfail_uppercase_digits", "xfail", "pytestmark", "test_string_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00012023700401186943, "outcome": "passed"}, "call": {"duration": 0.0006416110554710031, "outcome": "skipped", "crash": {"path": "/workspace/tligui_y/slic/tests/test_string_utils.py", "lineno": 39, "message": "AssertionError: assert 'ABC123' == 'ABC1234'\n \n - ABC1234\n ? -\n + ABC123"}, "traceback": [{"path": "tests/test_string_utils.py", "lineno": 39, "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:39: AssertionError"}, "teardown": {"duration": 0.00013497495092451572, "outcome": "passed"}}, {"nodeid": "tests/test_string_utils.py::test_keyboard_interrupt_direct", "lineno": 40, "outcome": "passed", "keywords": ["test_keyboard_interrupt_direct", "test_string_utils.py", "tests", "slic", ""], "setup": {"duration": 0.0001152759650722146, "outcome": "passed"}}], "warnings": [{"message": "Test warning", "category": "UserWarning", "when": "runtest", "filename": "/workspace/tligui_y/slic/tests/test_string_utils.py", "lineno": 22}]} \ No newline at end of file diff --git a/ci-reports/markdown/raw-test-output.log b/ci-reports/markdown/raw-test-output.log index cfc597e5..bbe39845 100644 --- a/ci-reports/markdown/raw-test-output.log +++ b/ci-reports/markdown/raw-test-output.log @@ -1,7 +1,7 @@ ============================= test session starts ============================== platform linux -- Python 3.8.20, pytest-8.3.4, pluggy-1.5.0 rootdir: /workspace/tligui_y/slic -plugins: html-4.1.1, cov-5.0.0, metadata-3.1.1, 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, html-4.1.1, cov-5.0.0, md-report-0.6.2, json-report-1.5.0 collected 50 items / 2 errors tests/test_io_utils.py ..FFFFFF.F @@ -76,7 +76,7 @@ E FileNotFoundError: [Errno 2] No such file or directory: 'nonexistent.fil functions/io_utils.py:2: FileNotFoundError ____________________________ test_permission_error _____________________________ -monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f454bc836a0> +monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fafcb908490> def test_permission_error(monkeypatch): # Patch open to raise PermissionError simulating access denial @@ -100,7 +100,7 @@ E PermissionError: Permission denied tests/test_io_utils.py:34: PermissionError _____________________________ test_mock_open_error _____________________________ -monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f454bcaa640> +monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fafcbcb9370> def test_mock_open_error(monkeypatch): # Mock open() to raise IOError simulating read error @@ -117,7 +117,7 @@ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ return self._execute_mock_call(*args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = +self = args = ('file.txt', 'r'), kwargs = {}, effect = OSError('Mocked IOError') def _execute_mock_call(self, /, *args, **kwargs): @@ -143,7 +143,7 @@ E ValueError: I/O operation on closed file tests/test_io_utils.py:50: ValueError ________________________________ test_os_error _________________________________ -monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f4549430820> +monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fafcbca59d0> def test_os_error(monkeypatch): # Patch os.remove to raise OSError simulating filesystem error @@ -311,7 +311,7 @@ tests/test_math_utils.py:103: StopIteration The above exception was the direct cause of the following exception: cls = -func = . at 0x7f45494159d0> +func = . at 0x7fafce0d8550> when = 'call' reraise = (, ) @@ -467,7 +467,7 @@ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ name = 'non_existent_module_xyz' -import_ = +import_ = > ??? E ModuleNotFoundError: No module named 'non_existent_module_xyz' @@ -561,4 +561,4 @@ ERROR tests/test_collector_error.py !!!!!!!!!!!!!!!!!!!!!!!!!!!!!! KeyboardInterrupt !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! /workspace/tligui_y/slic/tests/test_string_utils.py:43: KeyboardInterrupt (to show a full traceback on KeyboardInterrupt use --full-trace) -======== 32 failed, 15 passed, 2 xfailed, 1 warning, 2 errors in 0.75s ========= +======== 32 failed, 15 passed, 2 xfailed, 1 warning, 2 errors in 0.74s =========