diff --git a/ci-reports/markdown/TEST-REPORT.md b/ci-reports/markdown/TEST-REPORT.md index 5198bddb..6a848a59 100644 --- a/ci-reports/markdown/TEST-REPORT.md +++ b/ci-reports/markdown/TEST-REPORT.md @@ -37,7 +37,7 @@ FAILED tests/test_math_utils.py::test_malformed_code - File "", line 1 SyntaxError: invalid syntax FAILED tests/test_math_utils.py::test_sys_exit - SystemExit: 1 FAILED tests/test_math_utils.py::test_broken_function - TypeError: Broken function -FAILED tests/test_math_utils.py::test_import_error_patch - ImportError: Simulated ImportError +FAILED tests/test_math_utils.py::test_import_error - ImportError: Simulated ImportError FAILED tests/test_math_utils.py::test_module_not_found_error - ModuleNotFoundError: No module named 'non_existent_module_xyz' FAILED tests/test_string_utils.py::test_uppercase_type_error - TypeError: Input cannot be None FAILED tests/test_string_utils.py::test_unicode_decode_error - UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 0: invalid start byte @@ -47,7 +47,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) -======== 31 failed, 15 passed, 2 xfailed, 1 warning, 2 errors in 0.74s ========= +======== 31 failed, 15 passed, 2 xfailed, 1 warning, 2 errors in 0.71s ========= ``` @@ -58,7 +58,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: metadata-3.1.1, allure-pytest-2.13.5, cov-5.0.0, html-4.1.1, json-report-1.5.0, md-report-0.6.2 +plugins: cov-5.0.0, metadata-3.1.1, allure-pytest-2.13.5, html-4.1.1, json-report-1.5.0, md-report-0.6.2 collected 49 items / 2 errors tests/test_io_utils.py ..FFFFFF.F @@ -133,7 +133,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 0x7fd64692daf0> +monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fca802a9f10> def test_permission_error(monkeypatch): # Patch open to raise PermissionError simulating access denial @@ -157,7 +157,7 @@ E PermissionError: Permission denied tests/test_io_utils.py:34: PermissionError _____________________________ test_mock_open_error _____________________________ -monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fd64691c760> +monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fca80336160> def test_mock_open_error(monkeypatch): # Mock open() to raise IOError simulating read error @@ -174,7 +174,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): @@ -200,7 +200,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 0x7fd642ca8640> +monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fca802a9f10> def test_os_error(monkeypatch): # Patch os.remove to raise OSError simulating filesystem error @@ -368,7 +368,7 @@ tests/test_math_utils.py:106: StopIteration The above exception was the direct cause of the following exception: cls = -func = . at 0x7fd642c8c9d0> +func = . at 0x7fca807fe9d0> when = 'call' reraise = (, ) @@ -473,38 +473,20 @@ args = (), kwargs = {} E TypeError: Broken function tests/test_math_utils.py:123: TypeError -___________________________ test_import_error_patch ____________________________ +______________________________ test_import_error _______________________________ - 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") + def test_import_error(): +> raise ImportError("Simulated ImportError") +E ImportError: Simulated ImportError -tests/test_math_utils.py:136: -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ - -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:131: ImportError +tests/test_math_utils.py:127: ImportError _________________________ test_module_not_found_error __________________________ 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:142: +tests/test_math_utils.py:131: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ .pixi/envs/default/lib/python3.8/importlib/__init__.py:127: in import_module return _bootstrap._gcd_import(name[level:], package, level) @@ -515,7 +497,7 @@ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ name = 'non_existent_module_xyz' -import_ = +import_ = > ??? E ModuleNotFoundError: No module named 'non_existent_module_xyz' @@ -598,7 +580,7 @@ FAILED tests/test_math_utils.py::test_malformed_code - File "", line 1 SyntaxError: invalid syntax FAILED tests/test_math_utils.py::test_sys_exit - SystemExit: 1 FAILED tests/test_math_utils.py::test_broken_function - TypeError: Broken function -FAILED tests/test_math_utils.py::test_import_error_patch - ImportError: Simulated ImportError +FAILED tests/test_math_utils.py::test_import_error - ImportError: Simulated ImportError FAILED tests/test_math_utils.py::test_module_not_found_error - ModuleNotFoundError: No module named 'non_existent_module_xyz' FAILED tests/test_string_utils.py::test_uppercase_type_error - TypeError: Input cannot be None FAILED tests/test_string_utils.py::test_unicode_decode_error - UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 0: invalid start byte @@ -608,14 +590,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) -======== 31 failed, 15 passed, 2 xfailed, 1 warning, 2 errors in 0.74s ========= +======== 31 failed, 15 passed, 2 xfailed, 1 warning, 2 errors in 0.71s ========= ``` --- # ๐Ÿงช Test Report -*Generated on 2025-07-15 14:06:37* +*Generated on 2025-07-15 14:08:32* ## ๐Ÿ“‹ Summary - **Passed**: `16` @@ -623,7 +605,7 @@ ERROR tests/test_collector_error.py - **Xfailed**: `2` - **Total**: `49` - **Collected**: `49` -- **Total Duration**: `0.740`s +- **Total Duration**: `0.716`s ## ๐Ÿ”Ž Tests
@@ -643,7 +625,7 @@ ERROR tests/test_collector_error.py โœ… #1 - **Status:** โœ… `passed` -- **Duration:** `0.000461` s +- **Duration:** `0.000416` s ### ๐Ÿ”ง Setup Phase @@ -652,7 +634,7 @@ ERROR tests/test_collector_error.py ๐Ÿ“Œ Duration ``` -`0.003937671077437699` +`0.0033172060502693057` ``` @@ -677,7 +659,7 @@ ERROR tests/test_collector_error.py ๐Ÿ“Œ Duration ``` -`0.0004612880293279886` +`0.0004157009534537792` ``` @@ -702,7 +684,7 @@ ERROR tests/test_collector_error.py ๐Ÿ“Œ Duration ``` -`0.0002516089007258415` +`0.00025737204123288393` ``` @@ -736,7 +718,7 @@ ERROR tests/test_collector_error.py โœ… #2 - **Status:** โœ… `passed` -- **Duration:** `0.000293` s +- **Duration:** `0.000305` s ### ๐Ÿ”ง Setup Phase @@ -745,7 +727,7 @@ ERROR tests/test_collector_error.py ๐Ÿ“Œ Duration ``` -`0.00048657110892236233` +`0.00045859592501074076` ``` @@ -770,7 +752,7 @@ ERROR tests/test_collector_error.py ๐Ÿ“Œ Duration ``` -`0.00029277196153998375` +`0.00030468800105154514` ``` @@ -795,7 +777,7 @@ ERROR tests/test_collector_error.py ๐Ÿ“Œ Duration ``` -`0.0001417009625583887` +`0.00014054705388844013` ``` @@ -829,7 +811,7 @@ ERROR tests/test_collector_error.py โœ… #9 - **Status:** โœ… `passed` -- **Duration:** `0.001058` s +- **Duration:** `0.001101` s ### ๐Ÿ”ง Setup Phase @@ -838,7 +820,7 @@ ERROR tests/test_collector_error.py ๐Ÿ“Œ Duration ``` -`0.0006332140183076262` +`0.0006988380337134004` ``` @@ -863,7 +845,7 @@ ERROR tests/test_collector_error.py ๐Ÿ“Œ Duration ``` -`0.0010576170170679688` +`0.0011005420237779617` ``` @@ -888,7 +870,7 @@ ERROR tests/test_collector_error.py ๐Ÿ“Œ Duration ``` -`0.0001396790612488985` +`0.00015400699339807034` ``` @@ -930,7 +912,7 @@ ERROR tests/test_collector_error.py โœ… #13 parameters: [2-2-4] - **Status:** โœ… `passed` -- **Duration:** `0.000149` s +- **Duration:** `0.000157` s - **Parameters:** `2-2-4` ### ๐Ÿ”ง Setup Phase @@ -940,7 +922,7 @@ ERROR tests/test_collector_error.py ๐Ÿ“Œ Duration ``` -`0.0002896880032494664` +`0.0003210400464013219` ``` @@ -965,7 +947,7 @@ ERROR tests/test_collector_error.py ๐Ÿ“Œ Duration ``` -`0.00014889601152390242` +`0.00015713798347860575` ``` @@ -990,7 +972,7 @@ ERROR tests/test_collector_error.py ๐Ÿ“Œ Duration ``` -`0.00014386302791535854` +`0.00014523696154356003` ``` @@ -1016,7 +998,7 @@ ERROR tests/test_collector_error.py โœ… #14 parameters: [1-5-6] - **Status:** โœ… `passed` -- **Duration:** `0.000141` s +- **Duration:** `0.000136` s - **Parameters:** `1-5-6` ### ๐Ÿ”ง Setup Phase @@ -1026,7 +1008,7 @@ ERROR tests/test_collector_error.py ๐Ÿ“Œ Duration ``` -`0.00026876700576394796` +`0.00026101304683834314` ``` @@ -1051,7 +1033,7 @@ ERROR tests/test_collector_error.py ๐Ÿ“Œ Duration ``` -`0.00014147197362035513` +`0.00013629300519824028` ``` @@ -1076,7 +1058,7 @@ ERROR tests/test_collector_error.py ๐Ÿ“Œ Duration ``` -`0.00013815297279506922` +`0.00013860990293323994` ``` @@ -1102,7 +1084,7 @@ ERROR tests/test_collector_error.py โœ… #15 parameters: [3-4-7] - **Status:** โœ… `passed` -- **Duration:** `0.000130` s +- **Duration:** `0.000129` s - **Parameters:** `3-4-7` ### ๐Ÿ”ง Setup Phase @@ -1112,7 +1094,7 @@ ERROR tests/test_collector_error.py ๐Ÿ“Œ Duration ``` -`0.00024445599410682917` +`0.0002625610213726759` ``` @@ -1137,7 +1119,7 @@ ERROR tests/test_collector_error.py ๐Ÿ“Œ Duration ``` -`0.00013012101408094168` +`0.00012864591553807259` ``` @@ -1162,7 +1144,7 @@ ERROR tests/test_collector_error.py ๐Ÿ“Œ Duration ``` -`0.0001326050842180848` +`0.0001323759788647294` ``` @@ -1198,7 +1180,7 @@ ERROR tests/test_collector_error.py ๐Ÿ“Œ Duration ``` -`0.00024137995205819607` +`0.0002624019980430603` ``` @@ -1223,7 +1205,7 @@ ERROR tests/test_collector_error.py ๐Ÿ“Œ Duration ``` -`0.00013106793630868196` +`0.00013136595953255892` ``` @@ -1248,7 +1230,7 @@ ERROR tests/test_collector_error.py ๐Ÿ“Œ Duration ``` -`0.0001356430584564805` +`0.0001352030085399747` ``` @@ -1274,7 +1256,7 @@ ERROR tests/test_collector_error.py โœ… #17 parameters: [3-6-9] - **Status:** โœ… `passed` -- **Duration:** `0.000124` s +- **Duration:** `0.000139` s - **Parameters:** `3-6-9` ### ๐Ÿ”ง Setup Phase @@ -1284,7 +1266,7 @@ ERROR tests/test_collector_error.py ๐Ÿ“Œ Duration ``` -`0.00023806397803127766` +`0.00024789199233055115` ``` @@ -1309,7 +1291,7 @@ ERROR tests/test_collector_error.py ๐Ÿ“Œ Duration ``` -`0.00012430606875568628` +`0.00013904401566833258` ``` @@ -1334,7 +1316,7 @@ ERROR tests/test_collector_error.py ๐Ÿ“Œ Duration ``` -`0.0001339860027655959` +`0.0001403969945386052` ``` @@ -1378,7 +1360,7 @@ ERROR tests/test_collector_error.py ๐Ÿ“Œ Duration ``` -`0.00024334993213415146` +`0.0002581619191914797` ``` @@ -1403,7 +1385,7 @@ ERROR tests/test_collector_error.py ๐Ÿ“Œ Duration ``` -`0.00012752600014209747` +`0.00012848398182541132` ``` @@ -1428,7 +1410,7 @@ ERROR tests/test_collector_error.py ๐Ÿ“Œ Duration ``` -`0.00013167900033295155` +`0.00013925100211054087` ``` @@ -1454,7 +1436,7 @@ ERROR tests/test_collector_error.py โœ… #19 parameters: [a=1,b=5,expected=6] - **Status:** โœ… `passed` -- **Duration:** `0.000130` s +- **Duration:** `0.000134` s - **Parameters:** `a=1,b=5,expected=6` ### ๐Ÿ”ง Setup Phase @@ -1464,7 +1446,7 @@ ERROR tests/test_collector_error.py ๐Ÿ“Œ Duration ``` -`0.000244183000177145` +`0.00025459693279117346` ``` @@ -1489,7 +1471,7 @@ ERROR tests/test_collector_error.py ๐Ÿ“Œ Duration ``` -`0.00013014092110097408` +`0.00013373792171478271` ``` @@ -1514,7 +1496,7 @@ ERROR tests/test_collector_error.py ๐Ÿ“Œ Duration ``` -`0.0001353409606963396` +`0.00014246301725506783` ``` @@ -1550,7 +1532,7 @@ ERROR tests/test_collector_error.py ๐Ÿ“Œ Duration ``` -`0.00023409293498843908` +`0.00024441699497401714` ``` @@ -1575,7 +1557,7 @@ ERROR tests/test_collector_error.py ๐Ÿ“Œ Duration ``` -`0.00012490293011069298` +`0.00012544903438538313` ``` @@ -1600,7 +1582,7 @@ ERROR tests/test_collector_error.py ๐Ÿ“Œ Duration ``` -`0.0001316489651799202` +`0.00013036199379712343` ``` @@ -1642,7 +1624,7 @@ ERROR tests/test_collector_error.py โœ… #41 - **Status:** โœ… `passed` -- **Duration:** `0.000150` s +- **Duration:** `0.000156` s ### ๐Ÿ”ง Setup Phase @@ -1651,7 +1633,7 @@ ERROR tests/test_collector_error.py ๐Ÿ“Œ Duration ``` -`0.0001261499710381031` +`0.00013214501086622477` ``` @@ -1676,7 +1658,7 @@ ERROR tests/test_collector_error.py ๐Ÿ“Œ Duration ``` -`0.0001502479426562786` +`0.00015621003694832325` ``` @@ -1701,7 +1683,7 @@ ERROR tests/test_collector_error.py ๐Ÿ“Œ Duration ``` -`0.00011064193677157164` +`0.00010547705460339785` ``` @@ -1735,7 +1717,7 @@ ERROR tests/test_collector_error.py โœ… #43 - **Status:** โœ… `passed` -- **Duration:** `0.000142` s +- **Duration:** `0.000140` s ### ๐Ÿ”ง Setup Phase @@ -1744,7 +1726,7 @@ ERROR tests/test_collector_error.py ๐Ÿ“Œ Duration ``` -`0.00011993502266705036` +`0.00012347206939011812` ``` @@ -1769,7 +1751,7 @@ ERROR tests/test_collector_error.py ๐Ÿ“Œ Duration ``` -`0.00014239910524338484` +`0.00014037801884114742` ``` @@ -1794,7 +1776,7 @@ ERROR tests/test_collector_error.py ๐Ÿ“Œ Duration ``` -`0.00011215603444725275` +`0.00010290194768458605` ``` @@ -1828,7 +1810,7 @@ ERROR tests/test_collector_error.py โœ… #44 - **Status:** โœ… `passed` -- **Duration:** `0.000150` s +- **Duration:** `0.000142` s ### ๐Ÿ”ง Setup Phase @@ -1837,7 +1819,7 @@ ERROR tests/test_collector_error.py ๐Ÿ“Œ Duration ``` -`0.00010594096966087818` +`0.00010593398474156857` ``` @@ -1862,7 +1844,7 @@ ERROR tests/test_collector_error.py ๐Ÿ“Œ Duration ``` -`0.00015017192345112562` +`0.00014155101962387562` ``` @@ -1887,7 +1869,7 @@ ERROR tests/test_collector_error.py ๐Ÿ“Œ Duration ``` -`0.00010892900172621012` +`0.000105067971162498` ``` @@ -1921,7 +1903,7 @@ ERROR tests/test_collector_error.py โœ… #47 - **Status:** โœ… `passed` -- **Duration:** `0.000152` s +- **Duration:** `0.000139` s ### ๐Ÿ”ง Setup Phase @@ -1930,7 +1912,7 @@ ERROR tests/test_collector_error.py ๐Ÿ“Œ Duration ``` -`0.00012191699352115393` +`0.00012649898417294025` ``` @@ -1955,7 +1937,7 @@ ERROR tests/test_collector_error.py ๐Ÿ“Œ Duration ``` -`0.00015209801495075226` +`0.00013916403986513615` ``` @@ -1980,7 +1962,7 @@ ERROR tests/test_collector_error.py ๐Ÿ“Œ Duration ``` -`0.00010333000682294369` +`0.00010100600775331259` ``` @@ -2023,7 +2005,7 @@ ERROR tests/test_collector_error.py ๐Ÿ“Œ Duration ``` -`0.00011605501640588045` +`0.00012043304741382599` ``` @@ -2073,7 +2055,7 @@ ERROR tests/test_collector_error.py โŒ #3 - **Status:** โŒ `failed` -- **Duration:** `0.000160` s +- **Duration:** `0.000162` s ### ๐Ÿ”ง Setup Phase @@ -2082,7 +2064,7 @@ ERROR tests/test_collector_error.py ๐Ÿ“Œ Duration ``` -`0.00011295604053884745` +`0.00011585000902414322` ``` @@ -2107,7 +2089,7 @@ ERROR tests/test_collector_error.py ๐Ÿ“Œ Duration ``` -`0.00015978701412677765` +`0.0001624280121177435` ``` @@ -2176,7 +2158,7 @@ functions/io_utils.py:10: OSError` ๐Ÿ“Œ Duration ``` -`0.00014809495769441128` +`0.00015452702064067125` ``` @@ -2210,7 +2192,7 @@ functions/io_utils.py:10: OSError` โŒ #4 - **Status:** โŒ `failed` -- **Duration:** `0.000185` s +- **Duration:** `0.000183` s ### ๐Ÿ”ง Setup Phase @@ -2219,7 +2201,7 @@ functions/io_utils.py:10: OSError` ๐Ÿ“Œ Duration ``` -`0.00015063595492392778` +`0.00011873093899339437` ``` @@ -2244,7 +2226,7 @@ functions/io_utils.py:10: OSError` ๐Ÿ“Œ Duration ``` -`0.0001845110673457384` +`0.00018346600700169802` ``` @@ -2315,7 +2297,7 @@ functions/io_utils.py:2: FileNotFoundError` ๐Ÿ“Œ Duration ``` -`0.00013610499445348978` +`0.00013900292105972767` ``` @@ -2349,7 +2331,7 @@ functions/io_utils.py:2: FileNotFoundError` โŒ #5 - **Status:** โŒ `failed` -- **Duration:** `0.000175` s +- **Duration:** `0.000183` s ### ๐Ÿ”ง Setup Phase @@ -2358,7 +2340,7 @@ functions/io_utils.py:2: FileNotFoundError` ๐Ÿ“Œ Duration ``` -`0.00022545107640326023` +`0.0002115229144692421` ``` @@ -2383,7 +2365,7 @@ functions/io_utils.py:2: FileNotFoundError` ๐Ÿ“Œ Duration ``` -`0.00017541996203362942` +`0.0001825540093705058` ``` @@ -2427,7 +2409,7 @@ functions/io_utils.py:2: FileNotFoundError` ๐Ÿ“Œ Longrepr ``` -`monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fd64692daf0> +`monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fca802a9f10> def test_permission_error(monkeypatch): # Patch open to raise PermissionError simulating access denial @@ -2462,7 +2444,7 @@ tests/test_io_utils.py:34: PermissionError` ๐Ÿ“Œ Duration ``` -`0.00017082295380532742` +`0.00016726902686059475` ``` @@ -2496,7 +2478,7 @@ tests/test_io_utils.py:34: PermissionError` โŒ #6 - **Status:** โŒ `failed` -- **Duration:** `0.003332` s +- **Duration:** `0.003254` s ### ๐Ÿ”ง Setup Phase @@ -2505,7 +2487,7 @@ tests/test_io_utils.py:34: PermissionError` ๐Ÿ“Œ Duration ``` -`0.00020603998564183712` +`0.00020821299403905869` ``` @@ -2530,7 +2512,7 @@ tests/test_io_utils.py:34: PermissionError` ๐Ÿ“Œ Duration ``` -`0.003331771935336292` +`0.0032537200022488832` ``` @@ -2574,7 +2556,7 @@ tests/test_io_utils.py:34: PermissionError` ๐Ÿ“Œ Longrepr ``` -`monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fd64691c760> +`monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fca80336160> def test_mock_open_error(monkeypatch): # Mock open() to raise IOError simulating read error @@ -2591,7 +2573,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): @@ -2618,7 +2600,7 @@ E OSError: Mocked IOError ๐Ÿ“Œ Duration ``` -`0.0003158769104629755` +`0.0003365569282323122` ``` @@ -2652,7 +2634,7 @@ E OSError: Mocked IOError โŒ #7 - **Status:** โŒ `failed` -- **Duration:** `0.000189` s +- **Duration:** `0.000200` s ### ๐Ÿ”ง Setup Phase @@ -2661,7 +2643,7 @@ E OSError: Mocked IOError ๐Ÿ“Œ Duration ``` -`0.0001553189940750599` +`0.00015492108650505543` ``` @@ -2686,7 +2668,7 @@ E OSError: Mocked IOError ๐Ÿ“Œ Duration ``` -`0.00018929596990346909` +`0.0002002849942073226` ``` @@ -2751,7 +2733,7 @@ tests/test_io_utils.py:50: ValueError` ๐Ÿ“Œ Duration ``` -`0.0001978840446099639` +`0.00018326402641832829` ``` @@ -2785,7 +2767,7 @@ tests/test_io_utils.py:50: ValueError` โŒ #8 - **Status:** โŒ `failed` -- **Duration:** `0.000190` s +- **Duration:** `0.000192` s ### ๐Ÿ”ง Setup Phase @@ -2794,7 +2776,7 @@ tests/test_io_utils.py:50: ValueError` ๐Ÿ“Œ Duration ``` -`0.0002663220511749387` +`0.0002485569566488266` ``` @@ -2819,7 +2801,7 @@ tests/test_io_utils.py:50: ValueError` ๐Ÿ“Œ Duration ``` -`0.00018976896535605192` +`0.00019227794837206602` ``` @@ -2863,7 +2845,7 @@ tests/test_io_utils.py:50: ValueError` ๐Ÿ“Œ Longrepr ``` -`monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fd642ca8640> +`monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fca802a9f10> def test_os_error(monkeypatch): # Patch os.remove to raise OSError simulating filesystem error @@ -2895,7 +2877,7 @@ tests/test_io_utils.py:55: OSError` ๐Ÿ“Œ Duration ``` -`0.00017943396233022213` +`0.00018819898832589388` ``` @@ -2929,7 +2911,7 @@ tests/test_io_utils.py:55: OSError` โŒ #10 - **Status:** โŒ `failed` -- **Duration:** `0.000181` s +- **Duration:** `0.000169` s ### ๐Ÿ”ง Setup Phase @@ -2938,7 +2920,7 @@ tests/test_io_utils.py:55: OSError` ๐Ÿ“Œ Duration ``` -`0.00012205704115331173` +`0.00011646398343145847` ``` @@ -2963,7 +2945,7 @@ tests/test_io_utils.py:55: OSError` ๐Ÿ“Œ Duration ``` -`0.0001806470099836588` +`0.0001691100187599659` ``` @@ -3026,7 +3008,7 @@ tests/test_io_utils.py:69: FileNotFoundError` ๐Ÿ“Œ Duration ``` -`0.0001377720618620515` +`0.00014163204468786716` ``` @@ -3068,7 +3050,7 @@ tests/test_io_utils.py:69: FileNotFoundError` โŒ #11 - **Status:** โŒ `failed` -- **Duration:** `0.000152` s +- **Duration:** `0.000162` s ### ๐Ÿ”ง Setup Phase @@ -3077,7 +3059,7 @@ tests/test_io_utils.py:69: FileNotFoundError` ๐Ÿ“Œ Duration ``` -`0.00014420796651393175` +`0.0001335109118372202` ``` @@ -3102,7 +3084,7 @@ tests/test_io_utils.py:69: FileNotFoundError` ๐Ÿ“Œ Duration ``` -`0.00015189603436738253` +`0.00016223802231252193` ``` @@ -3165,7 +3147,7 @@ tests/test_math_utils.py:16: NameError` ๐Ÿ“Œ Duration ``` -`0.00013984390534460545` +`0.00014082901179790497` ``` @@ -3199,7 +3181,7 @@ tests/test_math_utils.py:16: NameError` โŒ #12 - **Status:** โŒ `failed` -- **Duration:** `0.000164` s +- **Duration:** `0.000165` s ### ๐Ÿ”ง Setup Phase @@ -3208,7 +3190,7 @@ tests/test_math_utils.py:16: NameError` ๐Ÿ“Œ Duration ``` -`0.00011843303218483925` +`0.00012609397526830435` ``` @@ -3233,7 +3215,7 @@ tests/test_math_utils.py:16: NameError` ๐Ÿ“Œ Duration ``` -`0.00016421300824731588` +`0.00016478798352181911` ``` @@ -3296,7 +3278,7 @@ tests/test_math_utils.py:20: AttributeError` ๐Ÿ“Œ Duration ``` -`0.00014699494931846857` +`0.00013732793740928173` ``` @@ -3330,7 +3312,7 @@ tests/test_math_utils.py:20: AttributeError` โŒ #21 - **Status:** โŒ `failed` -- **Duration:** `0.000471` s +- **Duration:** `0.000462` s ### ๐Ÿ”ง Setup Phase @@ -3339,7 +3321,7 @@ tests/test_math_utils.py:20: AttributeError` ๐Ÿ“Œ Duration ``` -`0.00010768999345600605` +`0.00010830000974237919` ``` @@ -3364,7 +3346,7 @@ tests/test_math_utils.py:20: AttributeError` ๐Ÿ“Œ Duration ``` -`0.00047051894944161177` +`0.00046193203888833523` ``` @@ -3429,7 +3411,7 @@ tests/test_math_utils.py:51: AssertionError` ๐Ÿ“Œ Duration ``` -`0.00014931289479136467` +`0.00013660406693816185` ``` @@ -3463,7 +3445,7 @@ tests/test_math_utils.py:51: AssertionError` โŒ #22 - **Status:** โŒ `failed` -- **Duration:** `0.000161` s +- **Duration:** `0.000157` s ### ๐Ÿ”ง Setup Phase @@ -3472,7 +3454,7 @@ tests/test_math_utils.py:51: AssertionError` ๐Ÿ“Œ Duration ``` -`0.00011802499648183584` +`0.00012057996354997158` ``` @@ -3497,7 +3479,7 @@ tests/test_math_utils.py:51: AssertionError` ๐Ÿ“Œ Duration ``` -`0.00016080797649919987` +`0.00015724997501820326` ``` @@ -3568,7 +3550,7 @@ functions/math_utils.py:5: ZeroDivisionError` ๐Ÿ“Œ Duration ``` -`0.00013790407683700323` +`0.00014126196037977934` ``` @@ -3602,7 +3584,7 @@ functions/math_utils.py:5: ZeroDivisionError` โŒ #24 - **Status:** โŒ `failed` -- **Duration:** `0.000149` s +- **Duration:** `0.000156` s ### ๐Ÿ”ง Setup Phase @@ -3611,7 +3593,7 @@ functions/math_utils.py:5: ZeroDivisionError` ๐Ÿ“Œ Duration ``` -`0.00011831801384687424` +`0.00011560996063053608` ``` @@ -3636,7 +3618,7 @@ functions/math_utils.py:5: ZeroDivisionError` ๐Ÿ“Œ Duration ``` -`0.00014861999079585075` +`0.0001555519411340356` ``` @@ -3699,7 +3681,7 @@ tests/test_math_utils.py:64: RuntimeError` ๐Ÿ“Œ Duration ``` -`0.0001367840450257063` +`0.000137986964546144` ``` @@ -3733,7 +3715,7 @@ tests/test_math_utils.py:64: RuntimeError` โŒ #25 - **Status:** โŒ `failed` -- **Duration:** `0.000148` s +- **Duration:** `0.000147` s ### ๐Ÿ”ง Setup Phase @@ -3742,7 +3724,7 @@ tests/test_math_utils.py:64: RuntimeError` ๐Ÿ“Œ Duration ``` -`0.000117251998744905` +`0.00011925806757062674` ``` @@ -3767,7 +3749,7 @@ tests/test_math_utils.py:64: RuntimeError` ๐Ÿ“Œ Duration ``` -`0.0001484269741922617` +`0.00014711299445480108` ``` @@ -3830,7 +3812,7 @@ tests/test_math_utils.py:68: MemoryError` ๐Ÿ“Œ Duration ``` -`0.0001465650275349617` +`0.00014676700811833143` ``` @@ -3864,7 +3846,7 @@ tests/test_math_utils.py:68: MemoryError` โŒ #26 - **Status:** โŒ `failed` -- **Duration:** `0.000157` s +- **Duration:** `0.000156` s ### ๐Ÿ”ง Setup Phase @@ -3873,7 +3855,7 @@ tests/test_math_utils.py:68: MemoryError` ๐Ÿ“Œ Duration ``` -`0.00012153398711234331` +`0.00011719600297510624` ``` @@ -3898,7 +3880,7 @@ tests/test_math_utils.py:68: MemoryError` ๐Ÿ“Œ Duration ``` -`0.00015706010162830353` +`0.00015604798682034016` ``` @@ -3961,7 +3943,7 @@ tests/test_math_utils.py:72: TimeoutError` ๐Ÿ“Œ Duration ``` -`0.00013605598360300064` +`0.0001434370642527938` ``` @@ -3995,7 +3977,7 @@ tests/test_math_utils.py:72: TimeoutError` โŒ #27 - **Status:** โŒ `failed` -- **Duration:** `0.000726` s +- **Duration:** `0.000764` s ### ๐Ÿ”ง Setup Phase @@ -4004,7 +3986,7 @@ tests/test_math_utils.py:72: TimeoutError` ๐Ÿ“Œ Duration ``` -`0.00012399093247950077` +`0.00012157601304352283` ``` @@ -4029,7 +4011,7 @@ tests/test_math_utils.py:72: TimeoutError` ๐Ÿ“Œ Duration ``` -`0.0007260870188474655` +`0.0007640880066901445` ``` @@ -4100,7 +4082,7 @@ E RecursionError: maximum recursion depth exceeded ๐Ÿ“Œ Duration ``` -`0.0001365399220958352` +`0.00015297392383217812` ``` @@ -4134,7 +4116,7 @@ E RecursionError: maximum recursion depth exceeded โŒ #28 - **Status:** โŒ `failed` -- **Duration:** `0.000151` s +- **Duration:** `0.000159` s ### ๐Ÿ”ง Setup Phase @@ -4143,7 +4125,7 @@ E RecursionError: maximum recursion depth exceeded ๐Ÿ“Œ Duration ``` -`0.00013091601431369781` +`0.00012920994777232409` ``` @@ -4168,7 +4150,7 @@ E RecursionError: maximum recursion depth exceeded ๐Ÿ“Œ Duration ``` -`0.00015077297575771809` +`0.00015900295693427324` ``` @@ -4231,7 +4213,7 @@ tests/test_math_utils.py:82: FloatingPointError` ๐Ÿ“Œ Duration ``` -`0.0001358219888061285` +`0.00014309899415820837` ``` @@ -4265,7 +4247,7 @@ tests/test_math_utils.py:82: FloatingPointError` โŒ #29 - **Status:** โŒ `failed` -- **Duration:** `0.000154` s +- **Duration:** `0.000177` s ### ๐Ÿ”ง Setup Phase @@ -4274,7 +4256,7 @@ tests/test_math_utils.py:82: FloatingPointError` ๐Ÿ“Œ Duration ``` -`0.00012059102300554514` +`0.00012554600834846497` ``` @@ -4299,7 +4281,7 @@ tests/test_math_utils.py:82: FloatingPointError` ๐Ÿ“Œ Duration ``` -`0.00015434494707733393` +`0.00017693405970931053` ``` @@ -4362,7 +4344,7 @@ tests/test_math_utils.py:86: OverflowError` ๐Ÿ“Œ Duration ``` -`0.00013666599988937378` +`0.00013890897389501333` ``` @@ -4396,7 +4378,7 @@ tests/test_math_utils.py:86: OverflowError` โŒ #30 - **Status:** โŒ `failed` -- **Duration:** `0.000154` s +- **Duration:** `0.000155` s ### ๐Ÿ”ง Setup Phase @@ -4405,7 +4387,7 @@ tests/test_math_utils.py:86: OverflowError` ๐Ÿ“Œ Duration ``` -`0.000119037926197052` +`0.00013219495303928852` ``` @@ -4430,7 +4412,7 @@ tests/test_math_utils.py:86: OverflowError` ๐Ÿ“Œ Duration ``` -`0.0001540129305794835` +`0.0001548790605738759` ``` @@ -4493,7 +4475,7 @@ tests/test_math_utils.py:90: ValueError` ๐Ÿ“Œ Duration ``` -`0.00013616494834423065` +`0.00013572792522609234` ``` @@ -4527,7 +4509,7 @@ tests/test_math_utils.py:90: ValueError` โŒ #31 - **Status:** โŒ `failed` -- **Duration:** `0.000157` s +- **Duration:** `0.000155` s ### ๐Ÿ”ง Setup Phase @@ -4536,7 +4518,7 @@ tests/test_math_utils.py:90: ValueError` ๐Ÿ“Œ Duration ``` -`0.00011816201731562614` +`0.0001179729588329792` ``` @@ -4561,7 +4543,7 @@ tests/test_math_utils.py:90: ValueError` ๐Ÿ“Œ Duration ``` -`0.00015738303773105145` +`0.00015486590564250946` ``` @@ -4624,7 +4606,7 @@ tests/test_math_utils.py:94: TypeError` ๐Ÿ“Œ Duration ``` -`0.00013409496750682592` +`0.0001332459505647421` ``` @@ -4658,7 +4640,7 @@ tests/test_math_utils.py:94: TypeError` โŒ #32 - **Status:** โŒ `failed` -- **Duration:** `0.000151` s +- **Duration:** `0.000166` s ### ๐Ÿ”ง Setup Phase @@ -4667,7 +4649,7 @@ tests/test_math_utils.py:94: TypeError` ๐Ÿ“Œ Duration ``` -`0.0001243259757757187` +`0.0001329620135948062` ``` @@ -4692,7 +4674,7 @@ tests/test_math_utils.py:94: TypeError` ๐Ÿ“Œ Duration ``` -`0.00015108007937669754` +`0.0001655810046941042` ``` @@ -4755,7 +4737,7 @@ tests/test_math_utils.py:98: Exception` ๐Ÿ“Œ Duration ``` -`0.00013780896551907063` +`0.00013618299271911383` ``` @@ -4789,7 +4771,7 @@ tests/test_math_utils.py:98: Exception` โŒ #33 - **Status:** โŒ `failed` -- **Duration:** `0.000150` s +- **Duration:** `0.000159` s ### ๐Ÿ”ง Setup Phase @@ -4798,7 +4780,7 @@ tests/test_math_utils.py:98: Exception` ๐Ÿ“Œ Duration ``` -`0.00011817191261798143` +`0.00011864700354635715` ``` @@ -4823,7 +4805,7 @@ tests/test_math_utils.py:98: Exception` ๐Ÿ“Œ Duration ``` -`0.00015009799972176552` +`0.00015874207019805908` ``` @@ -4886,7 +4868,7 @@ tests/test_math_utils.py:102: CustomError` ๐Ÿ“Œ Duration ``` -`0.00014834897592663765` +`0.00014582101721316576` ``` @@ -4920,7 +4902,7 @@ tests/test_math_utils.py:102: CustomError` โŒ #34 - **Status:** โŒ `failed` -- **Duration:** `0.000160` s +- **Duration:** `0.000157` s ### ๐Ÿ”ง Setup Phase @@ -4929,7 +4911,7 @@ tests/test_math_utils.py:102: CustomError` ๐Ÿ“Œ Duration ``` -`0.00012362701818346977` +`0.00012644799426198006` ``` @@ -4954,7 +4936,7 @@ tests/test_math_utils.py:102: CustomError` ๐Ÿ“Œ Duration ``` -`0.00015996198635548353` +`0.00015734496992081404` ``` @@ -5008,7 +4990,7 @@ tests/test_math_utils.py:106: StopIteration The above exception was the direct cause of the following exception: cls = -func = . at 0x7fd642c8c9d0> +func = . at 0x7fca807fe9d0> when = 'call' reraise = (, ) @@ -5081,7 +5063,7 @@ E RuntimeError: generator raised StopIteration ๐Ÿ“Œ Duration ``` -`0.00023702892940491438` +`0.0002563969464972615` ``` @@ -5115,7 +5097,7 @@ E RuntimeError: generator raised StopIteration โŒ #35 - **Status:** โŒ `failed` -- **Duration:** `0.000167` s +- **Duration:** `0.000179` s ### ๐Ÿ”ง Setup Phase @@ -5124,7 +5106,7 @@ E RuntimeError: generator raised StopIteration ๐Ÿ“Œ Duration ``` -`0.0001637228997424245` +`0.00014788098633289337` ``` @@ -5149,7 +5131,7 @@ E RuntimeError: generator raised StopIteration ๐Ÿ“Œ Duration ``` -`0.00016721896827220917` +`0.0001789960078895092` ``` @@ -5212,7 +5194,7 @@ tests/test_math_utils.py:110: GeneratorExit` ๐Ÿ“Œ Duration ``` -`0.0001719319261610508` +`0.00016625795979052782` ``` @@ -5246,7 +5228,7 @@ tests/test_math_utils.py:110: GeneratorExit` โŒ #36 - **Status:** โŒ `failed` -- **Duration:** `0.000169` s +- **Duration:** `0.000174` s ### ๐Ÿ”ง Setup Phase @@ -5255,7 +5237,7 @@ tests/test_math_utils.py:110: GeneratorExit` ๐Ÿ“Œ Duration ``` -`0.00012798607349395752` +`0.00012155401054769754` ``` @@ -5280,7 +5262,7 @@ tests/test_math_utils.py:110: GeneratorExit` ๐Ÿ“Œ Duration ``` -`0.00016893190331757069` +`0.00017426698468625546` ``` @@ -5349,7 +5331,7 @@ tests/test_math_utils.py:114: SyntaxError` ๐Ÿ“Œ Duration ``` -`0.00016047991812229156` +`0.0001384679926559329` ``` @@ -5383,7 +5365,7 @@ tests/test_math_utils.py:114: SyntaxError` โŒ #37 - **Status:** โŒ `failed` -- **Duration:** `0.000154` s +- **Duration:** `0.000146` s ### ๐Ÿ”ง Setup Phase @@ -5392,7 +5374,7 @@ tests/test_math_utils.py:114: SyntaxError` ๐Ÿ“Œ Duration ``` -`0.00012275599874556065` +`0.00011598202399909496` ``` @@ -5417,7 +5399,7 @@ tests/test_math_utils.py:114: SyntaxError` ๐Ÿ“Œ Duration ``` -`0.00015381199773401022` +`0.00014594208914786577` ``` @@ -5480,7 +5462,7 @@ tests/test_math_utils.py:118: SystemExit` ๐Ÿ“Œ Duration ``` -`0.00015029206406325102` +`0.0001350479433313012` ``` @@ -5514,7 +5496,7 @@ tests/test_math_utils.py:118: SystemExit` โŒ #38 - **Status:** โŒ `failed` -- **Duration:** `0.000159` s +- **Duration:** `0.000151` s ### ๐Ÿ”ง Setup Phase @@ -5523,7 +5505,7 @@ tests/test_math_utils.py:118: SystemExit` ๐Ÿ“Œ Duration ``` -`0.00012634205631911755` +`0.0001187729649245739` ``` @@ -5548,7 +5530,7 @@ tests/test_math_utils.py:118: SystemExit` ๐Ÿ“Œ Duration ``` -`0.00015923497267067432` +`0.00015059893485158682` ``` @@ -5621,7 +5603,7 @@ tests/test_math_utils.py:123: TypeError` ๐Ÿ“Œ Duration ``` -`0.0001481400104239583` +`0.00014546606689691544` ``` @@ -5648,14 +5630,14 @@ tests/test_math_utils.py:123: TypeError`
-๐Ÿ”ง Function: `test_import_error_patch` +๐Ÿ”ง Function: `test_import_error`
โŒ #39 - **Status:** โŒ `failed` -- **Duration:** `0.000162` s +- **Duration:** `0.000150` s ### ๐Ÿ”ง Setup Phase @@ -5664,7 +5646,7 @@ tests/test_math_utils.py:123: TypeError` ๐Ÿ“Œ Duration ``` -`0.00013004103675484657` +`0.00012724800035357475` ```
@@ -5689,7 +5671,7 @@ tests/test_math_utils.py:123: TypeError` ๐Ÿ“Œ Duration ``` -`0.00016211799811571836` +`0.00015033700037747622` ```
@@ -5711,7 +5693,7 @@ tests/test_math_utils.py:123: TypeError` ๐Ÿ“Œ Crash ``` -`path: `/workspace/tligui_y/slic/tests/test_math_utils.py``, `lineno: `131``, `message: `ImportError: Simulated ImportError`` +`path: `/workspace/tligui_y/slic/tests/test_math_utils.py``, `lineno: `127``, `message: `ImportError: Simulated ImportError`` ``` @@ -5722,7 +5704,7 @@ tests/test_math_utils.py:123: TypeError` ๐Ÿ“Œ Traceback ``` -`path: `tests/test_math_utils.py``, `lineno: `136``, `message: `None``, `path: `tests/test_math_utils.py``, `lineno: `131``, `message: `ImportError`` +`path: `tests/test_math_utils.py``, `lineno: `127``, `message: `ImportError`` ``` @@ -5733,29 +5715,11 @@ tests/test_math_utils.py:123: TypeError` ๐Ÿ“Œ 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") +`def test_import_error(): +> raise ImportError("Simulated ImportError") +E ImportError: Simulated ImportError -tests/test_math_utils.py:136: -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ - -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:131: ImportError` +tests/test_math_utils.py:127: ImportError` ``` @@ -5769,7 +5733,7 @@ tests/test_math_utils.py:131: ImportError` ๐Ÿ“Œ Duration ``` -`0.00014994002413004637` +`0.00014597305562347174` ``` @@ -5803,7 +5767,7 @@ tests/test_math_utils.py:131: ImportError` โŒ #40 - **Status:** โŒ `failed` -- **Duration:** `0.000486` s +- **Duration:** `0.000464` s ### ๐Ÿ”ง Setup Phase @@ -5812,7 +5776,7 @@ tests/test_math_utils.py:131: ImportError` ๐Ÿ“Œ Duration ``` -`0.00012033304665237665` +`0.00011592404916882515` ``` @@ -5837,7 +5801,7 @@ tests/test_math_utils.py:131: ImportError` ๐Ÿ“Œ Duration ``` -`0.00048631103709340096` +`0.0004635860677808523` ``` @@ -5870,7 +5834,7 @@ tests/test_math_utils.py:131: ImportError` ๐Ÿ“Œ Traceback ``` -`path: `tests/test_math_utils.py``, `lineno: `142``, `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`` +`path: `tests/test_math_utils.py``, `lineno: `131``, `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`` ``` @@ -5885,7 +5849,7 @@ tests/test_math_utils.py:131: ImportError` # Raises ModuleNotFoundError (subclass of ImportError) for missing module > importlib.import_module("non_existent_module_xyz") -tests/test_math_utils.py:142: +tests/test_math_utils.py:131: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ .pixi/envs/default/lib/python3.8/importlib/__init__.py:127: in import_module return _bootstrap._gcd_import(name[level:], package, level) @@ -5896,7 +5860,7 @@ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ name = 'non_existent_module_xyz' -import_ = +import_ = > ??? E ModuleNotFoundError: No module named 'non_existent_module_xyz' @@ -5915,7 +5879,7 @@ E ModuleNotFoundError: No module named 'non_existent_module_xyz' ๐Ÿ“Œ Duration ``` -`0.00015536404680460691` +`0.00014267093501985073` ``` @@ -5957,7 +5921,7 @@ E ModuleNotFoundError: No module named 'non_existent_module_xyz' โŒ #42 - **Status:** โŒ `failed` -- **Duration:** `0.000145` s +- **Duration:** `0.000144` s ### ๐Ÿ”ง Setup Phase @@ -5966,7 +5930,7 @@ E ModuleNotFoundError: No module named 'non_existent_module_xyz' ๐Ÿ“Œ Duration ``` -`0.00010769499931484461` +`0.00010519602801650763` ``` @@ -5991,7 +5955,7 @@ E ModuleNotFoundError: No module named 'non_existent_module_xyz' ๐Ÿ“Œ Duration ``` -`0.0001450380077585578` +`0.000143897021189332` ``` @@ -6063,7 +6027,7 @@ functions/string_utils.py:3: TypeError` ๐Ÿ“Œ Duration ``` -`0.00014123599976301193` +`0.00013579102233052254` ``` @@ -6097,7 +6061,7 @@ functions/string_utils.py:3: TypeError` โŒ #45 - **Status:** โŒ `failed` -- **Duration:** `0.000147` s +- **Duration:** `0.000141` s ### ๐Ÿ”ง Setup Phase @@ -6106,7 +6070,7 @@ functions/string_utils.py:3: TypeError` ๐Ÿ“Œ Duration ``` -`0.00010984903201460838` +`0.00010159204248338938` ``` @@ -6131,7 +6095,7 @@ functions/string_utils.py:3: TypeError` ๐Ÿ“Œ Duration ``` -`0.0001465278910472989` +`0.0001410660333931446` ``` @@ -6194,7 +6158,7 @@ tests/test_string_utils.py:26: UnicodeDecodeError` ๐Ÿ“Œ Duration ``` -`0.00013622490223497152` +`0.0001343809999525547` ``` @@ -6237,7 +6201,7 @@ tests/test_string_utils.py:26: UnicodeDecodeError` ๐Ÿ“Œ Duration ``` -`0.00011611101217567921` +`0.00013013789430260658` ``` @@ -6262,7 +6226,7 @@ tests/test_string_utils.py:26: UnicodeDecodeError` ๐Ÿ“Œ Duration ``` -`0.00015181000344455242` +`0.00015160406474024057` ``` @@ -6325,7 +6289,7 @@ tests/test_string_utils.py:30: UnicodeDecodeError` ๐Ÿ“Œ Duration ``` -`0.0001369500532746315` +`0.00013520894572138786` ``` @@ -6375,7 +6339,7 @@ tests/test_string_utils.py:30: UnicodeDecodeError` โŒ #23 - **Status:** โŒ `xfailed` -- **Duration:** `0.000254` s +- **Duration:** `0.000266` s ### ๐Ÿ”ง Setup Phase @@ -6384,7 +6348,7 @@ tests/test_string_utils.py:30: UnicodeDecodeError` ๐Ÿ“Œ Duration ``` -`0.00013185804709792137` +`0.00014679704327136278` ``` @@ -6409,7 +6373,7 @@ tests/test_string_utils.py:30: UnicodeDecodeError` ๐Ÿ“Œ Duration ``` -`0.0002544099697843194` +`0.000266409944742918` ``` @@ -6475,7 +6439,7 @@ tests/test_math_utils.py:60: AssertionError` ๐Ÿ“Œ Duration ``` -`0.00013732898514717817` +`0.0001401999033987522` ``` @@ -6517,7 +6481,7 @@ tests/test_math_utils.py:60: AssertionError` โŒ #48 - **Status:** โŒ `xfailed` -- **Duration:** `0.000622` s +- **Duration:** `0.000591` s ### ๐Ÿ”ง Setup Phase @@ -6526,7 +6490,7 @@ tests/test_math_utils.py:60: AssertionError` ๐Ÿ“Œ Duration ``` -`0.00011804501991719007` +`0.00011566991452127695` ``` @@ -6551,7 +6515,7 @@ tests/test_math_utils.py:60: AssertionError` ๐Ÿ“Œ Duration ``` -`0.0006223609670996666` +`0.000590565032325685` ``` @@ -6623,7 +6587,7 @@ tests/test_string_utils.py:39: AssertionError` ๐Ÿ“Œ Duration ``` -`0.00013484398368746042` +`0.00013522198423743248` ``` @@ -6999,7 +6963,7 @@ result: - **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: `22``, `nodeid: `tests/test_math_utils.py::test_addition_pass[1-5-6]``, `type: `Function``, `lineno: `22``, `nodeid: `tests/test_math_utils.py::test_addition_pass[3-4-7]``, `type: `Function``, `lineno: `22``, `nodeid: `tests/test_math_utils.py::test_addition_pass[3-5-8]``, `type: `Function``, `lineno: `22``, `nodeid: `tests/test_math_utils.py::test_addition_pass[3-6-9]``, `type: `Function``, `lineno: `22``, `nodeid: `tests/test_math_utils.py::test_addition_pass_id[a=2,b=2,expected=4]``, `type: `Function``, `lineno: `36``, `nodeid: `tests/test_math_utils.py::test_addition_pass_id[a=1,b=5,expected=6]``, `type: `Function``, `lineno: `36``, `nodeid: `tests/test_math_utils.py::test_addition_pass_id[a=3,b=4,expected=7]``, `type: `Function``, `lineno: `36``, `nodeid: `tests/test_math_utils.py::test_addition_fail``, `type: `Function``, `lineno: `48``, `nodeid: `tests/test_math_utils.py::test_division_zero``, `type: `Function``, `lineno: `52``, `nodeid: `tests/test_math_utils.py::test_multiply_xfail``, `type: `Function``, `lineno: `56``, `nodeid: `tests/test_math_utils.py::test_runtime_error``, `type: `Function``, `lineno: `61``, `nodeid: `tests/test_math_utils.py::test_memory_error``, `type: `Function``, `lineno: `65``, `nodeid: `tests/test_math_utils.py::test_timeout_error``, `type: `Function``, `lineno: `69``, `nodeid: `tests/test_math_utils.py::test_recursion_error``, `type: `Function``, `lineno: `73``, `nodeid: `tests/test_math_utils.py::test_floating_point_error``, `type: `Function``, `lineno: `79``, `nodeid: `tests/test_math_utils.py::test_floating_point_overflow``, `type: `Function``, `lineno: `83``, `nodeid: `tests/test_math_utils.py::test_value_error``, `type: `Function``, `lineno: `87``, `nodeid: `tests/test_math_utils.py::test_wrong_argument_error``, `type: `Function``, `lineno: `91``, `nodeid: `tests/test_math_utils.py::test_unhandled_exception``, `type: `Function``, `lineno: `95``, `nodeid: `tests/test_math_utils.py::test_custom_error``, `type: `Function``, `lineno: `99``, `nodeid: `tests/test_math_utils.py::test_stop_iteration_direct``, `type: `Function``, `lineno: `103``, `nodeid: `tests/test_math_utils.py::test_generator_exit_direct``, `type: `Function``, `lineno: `107``, `nodeid: `tests/test_math_utils.py::test_malformed_code``, `type: `Function``, `lineno: `111``, `nodeid: `tests/test_math_utils.py::test_sys_exit``, `type: `Function``, `lineno: `115``, `nodeid: `tests/test_math_utils.py::test_broken_function``, `type: `Function``, `lineno: `119``, `nodeid: `tests/test_math_utils.py::test_import_error_patch``, `type: `Function``, `lineno: `125``, `nodeid: `tests/test_math_utils.py::test_module_not_found_error``, `type: `Function``, `lineno: `139`` +`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: `22``, `nodeid: `tests/test_math_utils.py::test_addition_pass[1-5-6]``, `type: `Function``, `lineno: `22``, `nodeid: `tests/test_math_utils.py::test_addition_pass[3-4-7]``, `type: `Function``, `lineno: `22``, `nodeid: `tests/test_math_utils.py::test_addition_pass[3-5-8]``, `type: `Function``, `lineno: `22``, `nodeid: `tests/test_math_utils.py::test_addition_pass[3-6-9]``, `type: `Function``, `lineno: `22``, `nodeid: `tests/test_math_utils.py::test_addition_pass_id[a=2,b=2,expected=4]``, `type: `Function``, `lineno: `36``, `nodeid: `tests/test_math_utils.py::test_addition_pass_id[a=1,b=5,expected=6]``, `type: `Function``, `lineno: `36``, `nodeid: `tests/test_math_utils.py::test_addition_pass_id[a=3,b=4,expected=7]``, `type: `Function``, `lineno: `36``, `nodeid: `tests/test_math_utils.py::test_addition_fail``, `type: `Function``, `lineno: `48``, `nodeid: `tests/test_math_utils.py::test_division_zero``, `type: `Function``, `lineno: `52``, `nodeid: `tests/test_math_utils.py::test_multiply_xfail``, `type: `Function``, `lineno: `56``, `nodeid: `tests/test_math_utils.py::test_runtime_error``, `type: `Function``, `lineno: `61``, `nodeid: `tests/test_math_utils.py::test_memory_error``, `type: `Function``, `lineno: `65``, `nodeid: `tests/test_math_utils.py::test_timeout_error``, `type: `Function``, `lineno: `69``, `nodeid: `tests/test_math_utils.py::test_recursion_error``, `type: `Function``, `lineno: `73``, `nodeid: `tests/test_math_utils.py::test_floating_point_error``, `type: `Function``, `lineno: `79``, `nodeid: `tests/test_math_utils.py::test_floating_point_overflow``, `type: `Function``, `lineno: `83``, `nodeid: `tests/test_math_utils.py::test_value_error``, `type: `Function``, `lineno: `87``, `nodeid: `tests/test_math_utils.py::test_wrong_argument_error``, `type: `Function``, `lineno: `91``, `nodeid: `tests/test_math_utils.py::test_unhandled_exception``, `type: `Function``, `lineno: `95``, `nodeid: `tests/test_math_utils.py::test_custom_error``, `type: `Function``, `lineno: `99``, `nodeid: `tests/test_math_utils.py::test_stop_iteration_direct``, `type: `Function``, `lineno: `103``, `nodeid: `tests/test_math_utils.py::test_generator_exit_direct``, `type: `Function``, `lineno: `107``, `nodeid: `tests/test_math_utils.py::test_malformed_code``, `type: `Function``, `lineno: `111``, `nodeid: `tests/test_math_utils.py::test_sys_exit``, `type: `Function``, `lineno: `115``, `nodeid: `tests/test_math_utils.py::test_broken_function``, `type: `Function``, `lineno: `119``, `nodeid: `tests/test_math_utils.py::test_import_error``, `type: `Function``, `lineno: `125``, `nodeid: `tests/test_math_utils.py::test_module_not_found_error``, `type: `Function``, `lineno: `128`` ``` diff --git a/ci-reports/markdown/pytest-report.json b/ci-reports/markdown/pytest-report.json index fb62e5f2..1fd6c801 100644 --- a/ci-reports/markdown/pytest-report.json +++ b/ci-reports/markdown/pytest-report.json @@ -1 +1 @@ -{"created": 1752588396.920804, "duration": 0.7402665615081787, "exitcode": 2, "root": "/workspace/tligui_y/slic", "environment": {}, "summary": {"passed": 16, "failed": 31, "xfailed": 2, "total": 49, "collected": 49}, "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": 22}, {"nodeid": "tests/test_math_utils.py::test_addition_pass[1-5-6]", "type": "Function", "lineno": 22}, {"nodeid": "tests/test_math_utils.py::test_addition_pass[3-4-7]", "type": "Function", "lineno": 22}, {"nodeid": "tests/test_math_utils.py::test_addition_pass[3-5-8]", "type": "Function", "lineno": 22}, {"nodeid": "tests/test_math_utils.py::test_addition_pass[3-6-9]", "type": "Function", "lineno": 22}, {"nodeid": "tests/test_math_utils.py::test_addition_pass_id[a=2,b=2,expected=4]", "type": "Function", "lineno": 36}, {"nodeid": "tests/test_math_utils.py::test_addition_pass_id[a=1,b=5,expected=6]", "type": "Function", "lineno": 36}, {"nodeid": "tests/test_math_utils.py::test_addition_pass_id[a=3,b=4,expected=7]", "type": "Function", "lineno": 36}, {"nodeid": "tests/test_math_utils.py::test_addition_fail", "type": "Function", "lineno": 48}, {"nodeid": "tests/test_math_utils.py::test_division_zero", "type": "Function", "lineno": 52}, {"nodeid": "tests/test_math_utils.py::test_multiply_xfail", "type": "Function", "lineno": 56}, {"nodeid": "tests/test_math_utils.py::test_runtime_error", "type": "Function", "lineno": 61}, {"nodeid": "tests/test_math_utils.py::test_memory_error", "type": "Function", "lineno": 65}, {"nodeid": "tests/test_math_utils.py::test_timeout_error", "type": "Function", "lineno": 69}, {"nodeid": "tests/test_math_utils.py::test_recursion_error", "type": "Function", "lineno": 73}, {"nodeid": "tests/test_math_utils.py::test_floating_point_error", "type": "Function", "lineno": 79}, {"nodeid": "tests/test_math_utils.py::test_floating_point_overflow", "type": "Function", "lineno": 83}, {"nodeid": "tests/test_math_utils.py::test_value_error", "type": "Function", "lineno": 87}, {"nodeid": "tests/test_math_utils.py::test_wrong_argument_error", "type": "Function", "lineno": 91}, {"nodeid": "tests/test_math_utils.py::test_unhandled_exception", "type": "Function", "lineno": 95}, {"nodeid": "tests/test_math_utils.py::test_custom_error", "type": "Function", "lineno": 99}, {"nodeid": "tests/test_math_utils.py::test_stop_iteration_direct", "type": "Function", "lineno": 103}, {"nodeid": "tests/test_math_utils.py::test_generator_exit_direct", "type": "Function", "lineno": 107}, {"nodeid": "tests/test_math_utils.py::test_malformed_code", "type": "Function", "lineno": 111}, {"nodeid": "tests/test_math_utils.py::test_sys_exit", "type": "Function", "lineno": 115}, {"nodeid": "tests/test_math_utils.py::test_broken_function", "type": "Function", "lineno": 119}, {"nodeid": "tests/test_math_utils.py::test_import_error_patch", "type": "Function", "lineno": 125}, {"nodeid": "tests/test_math_utils.py::test_module_not_found_error", "type": "Function", "lineno": 139}]}, {"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.003937671077437699, "outcome": "passed"}, "call": {"duration": 0.0004612880293279886, "outcome": "passed"}, "teardown": {"duration": 0.0002516089007258415, "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.00048657110892236233, "outcome": "passed"}, "call": {"duration": 0.00029277196153998375, "outcome": "passed"}, "teardown": {"duration": 0.0001417009625583887, "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.00011295604053884745, "outcome": "passed"}, "call": {"duration": 0.00015978701412677765, "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.00014809495769441128, "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.00015063595492392778, "outcome": "passed"}, "call": {"duration": 0.0001845110673457384, "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.00013610499445348978, "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.00022545107640326023, "outcome": "passed"}, "call": {"duration": 0.00017541996203362942, "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 0x7fd64692daf0>\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.00017082295380532742, "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.00020603998564183712, "outcome": "passed"}, "call": {"duration": 0.003331771935336292, "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 0x7fd64691c760>\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.0003158769104629755, "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.0001553189940750599, "outcome": "passed"}, "call": {"duration": 0.00018929596990346909, "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.0001978840446099639, "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.0002663220511749387, "outcome": "passed"}, "call": {"duration": 0.00018976896535605192, "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 0x7fd642ca8640>\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.00017943396233022213, "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.0006332140183076262, "outcome": "passed"}, "call": {"duration": 0.0010576170170679688, "outcome": "passed"}, "teardown": {"duration": 0.0001396790612488985, "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.00012205704115331173, "outcome": "passed"}, "call": {"duration": 0.0001806470099836588, "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.0001377720618620515, "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.00014420796651393175, "outcome": "passed"}, "call": {"duration": 0.00015189603436738253, "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.00013984390534460545, "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.00011843303218483925, "outcome": "passed"}, "call": {"duration": 0.00016421300824731588, "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.00014699494931846857, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_addition_pass[2-2-4]", "lineno": 22, "outcome": "passed", "keywords": ["test_addition_pass[2-2-4]", "parametrize", "pytestmark", "2-2-4", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.0002896880032494664, "outcome": "passed"}, "call": {"duration": 0.00014889601152390242, "outcome": "passed"}, "teardown": {"duration": 0.00014386302791535854, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_addition_pass[1-5-6]", "lineno": 22, "outcome": "passed", "keywords": ["test_addition_pass[1-5-6]", "parametrize", "pytestmark", "1-5-6", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00026876700576394796, "outcome": "passed"}, "call": {"duration": 0.00014147197362035513, "outcome": "passed"}, "teardown": {"duration": 0.00013815297279506922, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_addition_pass[3-4-7]", "lineno": 22, "outcome": "passed", "keywords": ["test_addition_pass[3-4-7]", "parametrize", "pytestmark", "3-4-7", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00024445599410682917, "outcome": "passed"}, "call": {"duration": 0.00013012101408094168, "outcome": "passed"}, "teardown": {"duration": 0.0001326050842180848, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_addition_pass[3-5-8]", "lineno": 22, "outcome": "passed", "keywords": ["test_addition_pass[3-5-8]", "parametrize", "pytestmark", "3-5-8", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00024137995205819607, "outcome": "passed"}, "call": {"duration": 0.00013106793630868196, "outcome": "passed"}, "teardown": {"duration": 0.0001356430584564805, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_addition_pass[3-6-9]", "lineno": 22, "outcome": "passed", "keywords": ["test_addition_pass[3-6-9]", "parametrize", "pytestmark", "3-6-9", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00023806397803127766, "outcome": "passed"}, "call": {"duration": 0.00012430606875568628, "outcome": "passed"}, "teardown": {"duration": 0.0001339860027655959, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_addition_pass_id[a=2,b=2,expected=4]", "lineno": 36, "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.00024334993213415146, "outcome": "passed"}, "call": {"duration": 0.00012752600014209747, "outcome": "passed"}, "teardown": {"duration": 0.00013167900033295155, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_addition_pass_id[a=1,b=5,expected=6]", "lineno": 36, "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.000244183000177145, "outcome": "passed"}, "call": {"duration": 0.00013014092110097408, "outcome": "passed"}, "teardown": {"duration": 0.0001353409606963396, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_addition_pass_id[a=3,b=4,expected=7]", "lineno": 36, "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.00023409293498843908, "outcome": "passed"}, "call": {"duration": 0.00012490293011069298, "outcome": "passed"}, "teardown": {"duration": 0.0001316489651799202, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_addition_fail", "lineno": 48, "outcome": "failed", "keywords": ["test_addition_fail", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00010768999345600605, "outcome": "passed"}, "call": {"duration": 0.00047051894944161177, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 51, "message": "assert 4 == 5\n + where 4 = addition(2, 2)"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 51, "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:51: AssertionError"}, "teardown": {"duration": 0.00014931289479136467, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_division_zero", "lineno": 52, "outcome": "failed", "keywords": ["test_division_zero", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00011802499648183584, "outcome": "passed"}, "call": {"duration": 0.00016080797649919987, "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": 55, "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:55: \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.00013790407683700323, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_multiply_xfail", "lineno": 56, "outcome": "xfailed", "keywords": ["test_multiply_xfail", "xfail", "pytestmark", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00013185804709792137, "outcome": "passed"}, "call": {"duration": 0.0002544099697843194, "outcome": "skipped", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 60, "message": "assert 4 == 5\n + where 4 = multiply(2, 2)"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 60, "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:60: AssertionError"}, "teardown": {"duration": 0.00013732898514717817, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_runtime_error", "lineno": 61, "outcome": "failed", "keywords": ["test_runtime_error", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00011831801384687424, "outcome": "passed"}, "call": {"duration": 0.00014861999079585075, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 64, "message": "RuntimeError: Forced runtime error"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 64, "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:64: RuntimeError"}, "teardown": {"duration": 0.0001367840450257063, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_memory_error", "lineno": 65, "outcome": "failed", "keywords": ["test_memory_error", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.000117251998744905, "outcome": "passed"}, "call": {"duration": 0.0001484269741922617, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 68, "message": "MemoryError: Simulated memory error"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 68, "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:68: MemoryError"}, "teardown": {"duration": 0.0001465650275349617, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_timeout_error", "lineno": 69, "outcome": "failed", "keywords": ["test_timeout_error", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00012153398711234331, "outcome": "passed"}, "call": {"duration": 0.00015706010162830353, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 72, "message": "TimeoutError: Simulated timeout error"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 72, "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:72: TimeoutError"}, "teardown": {"duration": 0.00013605598360300064, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_recursion_error", "lineno": 73, "outcome": "failed", "keywords": ["test_recursion_error", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00012399093247950077, "outcome": "passed"}, "call": {"duration": 0.0007260870188474655, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 77, "message": "RecursionError: maximum recursion depth exceeded"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 78, "message": ""}, {"path": "tests/test_math_utils.py", "lineno": 77, "message": "in recursive"}, {"path": "tests/test_math_utils.py", "lineno": 77, "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:78: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_math_utils.py:77: in recursive\n return recursive()\ntests/test_math_utils.py:77: in recursive\n return recursive()\nE RecursionError: maximum recursion depth exceeded\n!!! Recursion detected (same locals & position)"}, "teardown": {"duration": 0.0001365399220958352, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_floating_point_error", "lineno": 79, "outcome": "failed", "keywords": ["test_floating_point_error", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00013091601431369781, "outcome": "passed"}, "call": {"duration": 0.00015077297575771809, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 82, "message": "FloatingPointError: Simulated floating point error"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 82, "message": "FloatingPointError"}], "longrepr": "def test_floating_point_error():\n # Manually raise FloatingPointError\n> raise FloatingPointError(\"Simulated floating point error\")\nE FloatingPointError: Simulated floating point error\n\ntests/test_math_utils.py:82: FloatingPointError"}, "teardown": {"duration": 0.0001358219888061285, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_floating_point_overflow", "lineno": 83, "outcome": "failed", "keywords": ["test_floating_point_overflow", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00012059102300554514, "outcome": "passed"}, "call": {"duration": 0.00015434494707733393, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 86, "message": "OverflowError: math range error"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 86, "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:86: OverflowError"}, "teardown": {"duration": 0.00013666599988937378, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_value_error", "lineno": 87, "outcome": "failed", "keywords": ["test_value_error", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.000119037926197052, "outcome": "passed"}, "call": {"duration": 0.0001540129305794835, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 90, "message": "ValueError: invalid literal for int() with base 10: 'invalid'"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 90, "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:90: ValueError"}, "teardown": {"duration": 0.00013616494834423065, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_wrong_argument_error", "lineno": 91, "outcome": "failed", "keywords": ["test_wrong_argument_error", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00011816201731562614, "outcome": "passed"}, "call": {"duration": 0.00015738303773105145, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 94, "message": "TypeError: 'int' object is not iterable"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 94, "message": "TypeError"}], "longrepr": "def test_wrong_argument_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:94: TypeError"}, "teardown": {"duration": 0.00013409496750682592, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_unhandled_exception", "lineno": 95, "outcome": "failed", "keywords": ["test_unhandled_exception", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.0001243259757757187, "outcome": "passed"}, "call": {"duration": 0.00015108007937669754, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 98, "message": "Exception: Generic unhandled exception"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 98, "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:98: Exception"}, "teardown": {"duration": 0.00013780896551907063, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_custom_error", "lineno": 99, "outcome": "failed", "keywords": ["test_custom_error", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00011817191261798143, "outcome": "passed"}, "call": {"duration": 0.00015009799972176552, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 102, "message": "test_math_utils.CustomError: Custom error simulation"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 102, "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:102: CustomError"}, "teardown": {"duration": 0.00014834897592663765, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_stop_iteration_direct", "lineno": 103, "outcome": "failed", "keywords": ["test_stop_iteration_direct", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00012362701818346977, "outcome": "passed"}, "call": {"duration": 0.00015996198635548353, "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:106: StopIteration\n\nThe above exception was the direct cause of the following exception:\n\ncls = \nfunc = . at 0x7fd642c8c9d0>\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.00023702892940491438, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_generator_exit_direct", "lineno": 107, "outcome": "failed", "keywords": ["test_generator_exit_direct", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.0001637228997424245, "outcome": "passed"}, "call": {"duration": 0.00016721896827220917, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 110, "message": "GeneratorExit"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 110, "message": "GeneratorExit"}], "longrepr": "def test_generator_exit_direct():\n # Directly raise GeneratorExit exception\n> raise GeneratorExit()\nE GeneratorExit\n\ntests/test_math_utils.py:110: GeneratorExit"}, "teardown": {"duration": 0.0001719319261610508, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_malformed_code", "lineno": 111, "outcome": "failed", "keywords": ["test_malformed_code", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00012798607349395752, "outcome": "passed"}, "call": {"duration": 0.00016893190331757069, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 114, "message": " File \"\", line 1\n def bad(:\n ^\nSyntaxError: invalid syntax"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 114, "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:114: SyntaxError"}, "teardown": {"duration": 0.00016047991812229156, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_sys_exit", "lineno": 115, "outcome": "failed", "keywords": ["test_sys_exit", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00012275599874556065, "outcome": "passed"}, "call": {"duration": 0.00015381199773401022, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 118, "message": "SystemExit: 1"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 118, "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:118: SystemExit"}, "teardown": {"duration": 0.00015029206406325102, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_broken_function", "lineno": 119, "outcome": "failed", "keywords": ["test_broken_function", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00012634205631911755, "outcome": "passed"}, "call": {"duration": 0.00015923497267067432, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 123, "message": "TypeError: Broken function"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 124, "message": ""}, {"path": "tests/test_math_utils.py", "lineno": 123, "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:124: \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:123: TypeError"}, "teardown": {"duration": 0.0001481400104239583, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_import_error_patch", "lineno": 125, "outcome": "failed", "keywords": ["test_import_error_patch", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00013004103675484657, "outcome": "passed"}, "call": {"duration": 0.00016211799811571836, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 131, "message": "ImportError: Simulated ImportError"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 136, "message": ""}, {"path": "tests/test_math_utils.py", "lineno": 131, "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:136: \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:131: ImportError"}, "teardown": {"duration": 0.00014994002413004637, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_module_not_found_error", "lineno": 139, "outcome": "failed", "keywords": ["test_module_not_found_error", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00012033304665237665, "outcome": "passed"}, "call": {"duration": 0.00048631103709340096, "outcome": "failed", "crash": {"path": "", "lineno": 973, "message": "ModuleNotFoundError: No module named 'non_existent_module_xyz'"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 142, "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:142: \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.00015536404680460691, "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.0001261499710381031, "outcome": "passed"}, "call": {"duration": 0.0001502479426562786, "outcome": "passed"}, "teardown": {"duration": 0.00011064193677157164, "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.00010769499931484461, "outcome": "passed"}, "call": {"duration": 0.0001450380077585578, "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.00014123599976301193, "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.00011993502266705036, "outcome": "passed"}, "call": {"duration": 0.00014239910524338484, "outcome": "passed"}, "teardown": {"duration": 0.00011215603444725275, "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.00010594096966087818, "outcome": "passed"}, "call": {"duration": 0.00015017192345112562, "outcome": "passed"}, "teardown": {"duration": 0.00010892900172621012, "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.00010984903201460838, "outcome": "passed"}, "call": {"duration": 0.0001465278910472989, "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.00013622490223497152, "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.00011611101217567921, "outcome": "passed"}, "call": {"duration": 0.00015181000344455242, "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.0001369500532746315, "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.00012191699352115393, "outcome": "passed"}, "call": {"duration": 0.00015209801495075226, "outcome": "passed"}, "teardown": {"duration": 0.00010333000682294369, "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.00011804501991719007, "outcome": "passed"}, "call": {"duration": 0.0006223609670996666, "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.00013484398368746042, "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.00011605501640588045, "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": 1752588512.1314535, "duration": 0.7160482406616211, "exitcode": 2, "root": "/workspace/tligui_y/slic", "environment": {}, "summary": {"passed": 16, "failed": 31, "xfailed": 2, "total": 49, "collected": 49}, "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": 22}, {"nodeid": "tests/test_math_utils.py::test_addition_pass[1-5-6]", "type": "Function", "lineno": 22}, {"nodeid": "tests/test_math_utils.py::test_addition_pass[3-4-7]", "type": "Function", "lineno": 22}, {"nodeid": "tests/test_math_utils.py::test_addition_pass[3-5-8]", "type": "Function", "lineno": 22}, {"nodeid": "tests/test_math_utils.py::test_addition_pass[3-6-9]", "type": "Function", "lineno": 22}, {"nodeid": "tests/test_math_utils.py::test_addition_pass_id[a=2,b=2,expected=4]", "type": "Function", "lineno": 36}, {"nodeid": "tests/test_math_utils.py::test_addition_pass_id[a=1,b=5,expected=6]", "type": "Function", "lineno": 36}, {"nodeid": "tests/test_math_utils.py::test_addition_pass_id[a=3,b=4,expected=7]", "type": "Function", "lineno": 36}, {"nodeid": "tests/test_math_utils.py::test_addition_fail", "type": "Function", "lineno": 48}, {"nodeid": "tests/test_math_utils.py::test_division_zero", "type": "Function", "lineno": 52}, {"nodeid": "tests/test_math_utils.py::test_multiply_xfail", "type": "Function", "lineno": 56}, {"nodeid": "tests/test_math_utils.py::test_runtime_error", "type": "Function", "lineno": 61}, {"nodeid": "tests/test_math_utils.py::test_memory_error", "type": "Function", "lineno": 65}, {"nodeid": "tests/test_math_utils.py::test_timeout_error", "type": "Function", "lineno": 69}, {"nodeid": "tests/test_math_utils.py::test_recursion_error", "type": "Function", "lineno": 73}, {"nodeid": "tests/test_math_utils.py::test_floating_point_error", "type": "Function", "lineno": 79}, {"nodeid": "tests/test_math_utils.py::test_floating_point_overflow", "type": "Function", "lineno": 83}, {"nodeid": "tests/test_math_utils.py::test_value_error", "type": "Function", "lineno": 87}, {"nodeid": "tests/test_math_utils.py::test_wrong_argument_error", "type": "Function", "lineno": 91}, {"nodeid": "tests/test_math_utils.py::test_unhandled_exception", "type": "Function", "lineno": 95}, {"nodeid": "tests/test_math_utils.py::test_custom_error", "type": "Function", "lineno": 99}, {"nodeid": "tests/test_math_utils.py::test_stop_iteration_direct", "type": "Function", "lineno": 103}, {"nodeid": "tests/test_math_utils.py::test_generator_exit_direct", "type": "Function", "lineno": 107}, {"nodeid": "tests/test_math_utils.py::test_malformed_code", "type": "Function", "lineno": 111}, {"nodeid": "tests/test_math_utils.py::test_sys_exit", "type": "Function", "lineno": 115}, {"nodeid": "tests/test_math_utils.py::test_broken_function", "type": "Function", "lineno": 119}, {"nodeid": "tests/test_math_utils.py::test_import_error", "type": "Function", "lineno": 125}, {"nodeid": "tests/test_math_utils.py::test_module_not_found_error", "type": "Function", "lineno": 128}]}, {"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.0033172060502693057, "outcome": "passed"}, "call": {"duration": 0.0004157009534537792, "outcome": "passed"}, "teardown": {"duration": 0.00025737204123288393, "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.00045859592501074076, "outcome": "passed"}, "call": {"duration": 0.00030468800105154514, "outcome": "passed"}, "teardown": {"duration": 0.00014054705388844013, "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.00011585000902414322, "outcome": "passed"}, "call": {"duration": 0.0001624280121177435, "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.00015452702064067125, "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.00011873093899339437, "outcome": "passed"}, "call": {"duration": 0.00018346600700169802, "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.00013900292105972767, "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.0002115229144692421, "outcome": "passed"}, "call": {"duration": 0.0001825540093705058, "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 0x7fca802a9f10>\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.00016726902686059475, "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.00020821299403905869, "outcome": "passed"}, "call": {"duration": 0.0032537200022488832, "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 0x7fca80336160>\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.0003365569282323122, "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.00015492108650505543, "outcome": "passed"}, "call": {"duration": 0.0002002849942073226, "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.00018326402641832829, "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.0002485569566488266, "outcome": "passed"}, "call": {"duration": 0.00019227794837206602, "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 0x7fca802a9f10>\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.00018819898832589388, "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.0006988380337134004, "outcome": "passed"}, "call": {"duration": 0.0011005420237779617, "outcome": "passed"}, "teardown": {"duration": 0.00015400699339807034, "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.00011646398343145847, "outcome": "passed"}, "call": {"duration": 0.0001691100187599659, "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.00014163204468786716, "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.0001335109118372202, "outcome": "passed"}, "call": {"duration": 0.00016223802231252193, "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.00014082901179790497, "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.00012609397526830435, "outcome": "passed"}, "call": {"duration": 0.00016478798352181911, "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.00013732793740928173, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_addition_pass[2-2-4]", "lineno": 22, "outcome": "passed", "keywords": ["test_addition_pass[2-2-4]", "parametrize", "pytestmark", "2-2-4", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.0003210400464013219, "outcome": "passed"}, "call": {"duration": 0.00015713798347860575, "outcome": "passed"}, "teardown": {"duration": 0.00014523696154356003, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_addition_pass[1-5-6]", "lineno": 22, "outcome": "passed", "keywords": ["test_addition_pass[1-5-6]", "parametrize", "pytestmark", "1-5-6", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00026101304683834314, "outcome": "passed"}, "call": {"duration": 0.00013629300519824028, "outcome": "passed"}, "teardown": {"duration": 0.00013860990293323994, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_addition_pass[3-4-7]", "lineno": 22, "outcome": "passed", "keywords": ["test_addition_pass[3-4-7]", "parametrize", "pytestmark", "3-4-7", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.0002625610213726759, "outcome": "passed"}, "call": {"duration": 0.00012864591553807259, "outcome": "passed"}, "teardown": {"duration": 0.0001323759788647294, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_addition_pass[3-5-8]", "lineno": 22, "outcome": "passed", "keywords": ["test_addition_pass[3-5-8]", "parametrize", "pytestmark", "3-5-8", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.0002624019980430603, "outcome": "passed"}, "call": {"duration": 0.00013136595953255892, "outcome": "passed"}, "teardown": {"duration": 0.0001352030085399747, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_addition_pass[3-6-9]", "lineno": 22, "outcome": "passed", "keywords": ["test_addition_pass[3-6-9]", "parametrize", "pytestmark", "3-6-9", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00024789199233055115, "outcome": "passed"}, "call": {"duration": 0.00013904401566833258, "outcome": "passed"}, "teardown": {"duration": 0.0001403969945386052, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_addition_pass_id[a=2,b=2,expected=4]", "lineno": 36, "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.0002581619191914797, "outcome": "passed"}, "call": {"duration": 0.00012848398182541132, "outcome": "passed"}, "teardown": {"duration": 0.00013925100211054087, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_addition_pass_id[a=1,b=5,expected=6]", "lineno": 36, "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.00025459693279117346, "outcome": "passed"}, "call": {"duration": 0.00013373792171478271, "outcome": "passed"}, "teardown": {"duration": 0.00014246301725506783, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_addition_pass_id[a=3,b=4,expected=7]", "lineno": 36, "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.00024441699497401714, "outcome": "passed"}, "call": {"duration": 0.00012544903438538313, "outcome": "passed"}, "teardown": {"duration": 0.00013036199379712343, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_addition_fail", "lineno": 48, "outcome": "failed", "keywords": ["test_addition_fail", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00010830000974237919, "outcome": "passed"}, "call": {"duration": 0.00046193203888833523, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 51, "message": "assert 4 == 5\n + where 4 = addition(2, 2)"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 51, "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:51: AssertionError"}, "teardown": {"duration": 0.00013660406693816185, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_division_zero", "lineno": 52, "outcome": "failed", "keywords": ["test_division_zero", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00012057996354997158, "outcome": "passed"}, "call": {"duration": 0.00015724997501820326, "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": 55, "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:55: \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.00014126196037977934, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_multiply_xfail", "lineno": 56, "outcome": "xfailed", "keywords": ["test_multiply_xfail", "xfail", "pytestmark", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00014679704327136278, "outcome": "passed"}, "call": {"duration": 0.000266409944742918, "outcome": "skipped", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 60, "message": "assert 4 == 5\n + where 4 = multiply(2, 2)"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 60, "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:60: AssertionError"}, "teardown": {"duration": 0.0001401999033987522, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_runtime_error", "lineno": 61, "outcome": "failed", "keywords": ["test_runtime_error", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00011560996063053608, "outcome": "passed"}, "call": {"duration": 0.0001555519411340356, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 64, "message": "RuntimeError: Forced runtime error"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 64, "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:64: RuntimeError"}, "teardown": {"duration": 0.000137986964546144, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_memory_error", "lineno": 65, "outcome": "failed", "keywords": ["test_memory_error", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00011925806757062674, "outcome": "passed"}, "call": {"duration": 0.00014711299445480108, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 68, "message": "MemoryError: Simulated memory error"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 68, "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:68: MemoryError"}, "teardown": {"duration": 0.00014676700811833143, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_timeout_error", "lineno": 69, "outcome": "failed", "keywords": ["test_timeout_error", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00011719600297510624, "outcome": "passed"}, "call": {"duration": 0.00015604798682034016, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 72, "message": "TimeoutError: Simulated timeout error"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 72, "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:72: TimeoutError"}, "teardown": {"duration": 0.0001434370642527938, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_recursion_error", "lineno": 73, "outcome": "failed", "keywords": ["test_recursion_error", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00012157601304352283, "outcome": "passed"}, "call": {"duration": 0.0007640880066901445, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 77, "message": "RecursionError: maximum recursion depth exceeded"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 78, "message": ""}, {"path": "tests/test_math_utils.py", "lineno": 77, "message": "in recursive"}, {"path": "tests/test_math_utils.py", "lineno": 77, "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:78: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_math_utils.py:77: in recursive\n return recursive()\ntests/test_math_utils.py:77: in recursive\n return recursive()\nE RecursionError: maximum recursion depth exceeded\n!!! Recursion detected (same locals & position)"}, "teardown": {"duration": 0.00015297392383217812, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_floating_point_error", "lineno": 79, "outcome": "failed", "keywords": ["test_floating_point_error", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00012920994777232409, "outcome": "passed"}, "call": {"duration": 0.00015900295693427324, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 82, "message": "FloatingPointError: Simulated floating point error"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 82, "message": "FloatingPointError"}], "longrepr": "def test_floating_point_error():\n # Manually raise FloatingPointError\n> raise FloatingPointError(\"Simulated floating point error\")\nE FloatingPointError: Simulated floating point error\n\ntests/test_math_utils.py:82: FloatingPointError"}, "teardown": {"duration": 0.00014309899415820837, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_floating_point_overflow", "lineno": 83, "outcome": "failed", "keywords": ["test_floating_point_overflow", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00012554600834846497, "outcome": "passed"}, "call": {"duration": 0.00017693405970931053, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 86, "message": "OverflowError: math range error"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 86, "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:86: OverflowError"}, "teardown": {"duration": 0.00013890897389501333, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_value_error", "lineno": 87, "outcome": "failed", "keywords": ["test_value_error", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00013219495303928852, "outcome": "passed"}, "call": {"duration": 0.0001548790605738759, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 90, "message": "ValueError: invalid literal for int() with base 10: 'invalid'"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 90, "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:90: ValueError"}, "teardown": {"duration": 0.00013572792522609234, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_wrong_argument_error", "lineno": 91, "outcome": "failed", "keywords": ["test_wrong_argument_error", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.0001179729588329792, "outcome": "passed"}, "call": {"duration": 0.00015486590564250946, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 94, "message": "TypeError: 'int' object is not iterable"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 94, "message": "TypeError"}], "longrepr": "def test_wrong_argument_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:94: TypeError"}, "teardown": {"duration": 0.0001332459505647421, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_unhandled_exception", "lineno": 95, "outcome": "failed", "keywords": ["test_unhandled_exception", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.0001329620135948062, "outcome": "passed"}, "call": {"duration": 0.0001655810046941042, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 98, "message": "Exception: Generic unhandled exception"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 98, "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:98: Exception"}, "teardown": {"duration": 0.00013618299271911383, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_custom_error", "lineno": 99, "outcome": "failed", "keywords": ["test_custom_error", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00011864700354635715, "outcome": "passed"}, "call": {"duration": 0.00015874207019805908, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 102, "message": "test_math_utils.CustomError: Custom error simulation"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 102, "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:102: CustomError"}, "teardown": {"duration": 0.00014582101721316576, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_stop_iteration_direct", "lineno": 103, "outcome": "failed", "keywords": ["test_stop_iteration_direct", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00012644799426198006, "outcome": "passed"}, "call": {"duration": 0.00015734496992081404, "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:106: StopIteration\n\nThe above exception was the direct cause of the following exception:\n\ncls = \nfunc = . at 0x7fca807fe9d0>\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.0002563969464972615, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_generator_exit_direct", "lineno": 107, "outcome": "failed", "keywords": ["test_generator_exit_direct", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00014788098633289337, "outcome": "passed"}, "call": {"duration": 0.0001789960078895092, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 110, "message": "GeneratorExit"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 110, "message": "GeneratorExit"}], "longrepr": "def test_generator_exit_direct():\n # Directly raise GeneratorExit exception\n> raise GeneratorExit()\nE GeneratorExit\n\ntests/test_math_utils.py:110: GeneratorExit"}, "teardown": {"duration": 0.00016625795979052782, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_malformed_code", "lineno": 111, "outcome": "failed", "keywords": ["test_malformed_code", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00012155401054769754, "outcome": "passed"}, "call": {"duration": 0.00017426698468625546, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 114, "message": " File \"\", line 1\n def bad(:\n ^\nSyntaxError: invalid syntax"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 114, "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:114: SyntaxError"}, "teardown": {"duration": 0.0001384679926559329, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_sys_exit", "lineno": 115, "outcome": "failed", "keywords": ["test_sys_exit", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00011598202399909496, "outcome": "passed"}, "call": {"duration": 0.00014594208914786577, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 118, "message": "SystemExit: 1"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 118, "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:118: SystemExit"}, "teardown": {"duration": 0.0001350479433313012, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_broken_function", "lineno": 119, "outcome": "failed", "keywords": ["test_broken_function", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.0001187729649245739, "outcome": "passed"}, "call": {"duration": 0.00015059893485158682, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 123, "message": "TypeError: Broken function"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 124, "message": ""}, {"path": "tests/test_math_utils.py", "lineno": 123, "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:124: \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:123: TypeError"}, "teardown": {"duration": 0.00014546606689691544, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_import_error", "lineno": 125, "outcome": "failed", "keywords": ["test_import_error", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00012724800035357475, "outcome": "passed"}, "call": {"duration": 0.00015033700037747622, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 127, "message": "ImportError: Simulated ImportError"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 127, "message": "ImportError"}], "longrepr": "def test_import_error():\n> raise ImportError(\"Simulated ImportError\")\nE ImportError: Simulated ImportError\n\ntests/test_math_utils.py:127: ImportError"}, "teardown": {"duration": 0.00014597305562347174, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_module_not_found_error", "lineno": 128, "outcome": "failed", "keywords": ["test_module_not_found_error", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00011592404916882515, "outcome": "passed"}, "call": {"duration": 0.0004635860677808523, "outcome": "failed", "crash": {"path": "", "lineno": 973, "message": "ModuleNotFoundError: No module named 'non_existent_module_xyz'"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 131, "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:131: \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.00014267093501985073, "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.00013214501086622477, "outcome": "passed"}, "call": {"duration": 0.00015621003694832325, "outcome": "passed"}, "teardown": {"duration": 0.00010547705460339785, "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.00010519602801650763, "outcome": "passed"}, "call": {"duration": 0.000143897021189332, "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.00013579102233052254, "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.00012347206939011812, "outcome": "passed"}, "call": {"duration": 0.00014037801884114742, "outcome": "passed"}, "teardown": {"duration": 0.00010290194768458605, "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.00010593398474156857, "outcome": "passed"}, "call": {"duration": 0.00014155101962387562, "outcome": "passed"}, "teardown": {"duration": 0.000105067971162498, "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.00010159204248338938, "outcome": "passed"}, "call": {"duration": 0.0001410660333931446, "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.0001343809999525547, "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.00013013789430260658, "outcome": "passed"}, "call": {"duration": 0.00015160406474024057, "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.00013520894572138786, "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.00012649898417294025, "outcome": "passed"}, "call": {"duration": 0.00013916403986513615, "outcome": "passed"}, "teardown": {"duration": 0.00010100600775331259, "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.00011566991452127695, "outcome": "passed"}, "call": {"duration": 0.000590565032325685, "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.00013522198423743248, "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.00012043304741382599, "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 9702c015..85acd3c1 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: metadata-3.1.1, allure-pytest-2.13.5, cov-5.0.0, html-4.1.1, json-report-1.5.0, md-report-0.6.2 +plugins: cov-5.0.0, metadata-3.1.1, allure-pytest-2.13.5, html-4.1.1, json-report-1.5.0, md-report-0.6.2 collected 49 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 0x7fd64692daf0> +monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fca802a9f10> 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 0x7fd64691c760> +monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fca80336160> 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 0x7fd642ca8640> +monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fca802a9f10> def test_os_error(monkeypatch): # Patch os.remove to raise OSError simulating filesystem error @@ -311,7 +311,7 @@ tests/test_math_utils.py:106: StopIteration The above exception was the direct cause of the following exception: cls = -func = . at 0x7fd642c8c9d0> +func = . at 0x7fca807fe9d0> when = 'call' reraise = (, ) @@ -416,38 +416,20 @@ args = (), kwargs = {} E TypeError: Broken function tests/test_math_utils.py:123: TypeError -___________________________ test_import_error_patch ____________________________ +______________________________ test_import_error _______________________________ - 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") + def test_import_error(): +> raise ImportError("Simulated ImportError") +E ImportError: Simulated ImportError -tests/test_math_utils.py:136: -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ - -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:131: ImportError +tests/test_math_utils.py:127: ImportError _________________________ test_module_not_found_error __________________________ 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:142: +tests/test_math_utils.py:131: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ .pixi/envs/default/lib/python3.8/importlib/__init__.py:127: in import_module return _bootstrap._gcd_import(name[level:], package, level) @@ -458,7 +440,7 @@ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ name = 'non_existent_module_xyz' -import_ = +import_ = > ??? E ModuleNotFoundError: No module named 'non_existent_module_xyz' @@ -541,7 +523,7 @@ FAILED tests/test_math_utils.py::test_malformed_code - File "", line 1 SyntaxError: invalid syntax FAILED tests/test_math_utils.py::test_sys_exit - SystemExit: 1 FAILED tests/test_math_utils.py::test_broken_function - TypeError: Broken function -FAILED tests/test_math_utils.py::test_import_error_patch - ImportError: Simulated ImportError +FAILED tests/test_math_utils.py::test_import_error - ImportError: Simulated ImportError FAILED tests/test_math_utils.py::test_module_not_found_error - ModuleNotFoundError: No module named 'non_existent_module_xyz' FAILED tests/test_string_utils.py::test_uppercase_type_error - TypeError: Input cannot be None FAILED tests/test_string_utils.py::test_unicode_decode_error - UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 0: invalid start byte @@ -551,4 +533,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) -======== 31 failed, 15 passed, 2 xfailed, 1 warning, 2 errors in 0.74s ========= +======== 31 failed, 15 passed, 2 xfailed, 1 warning, 2 errors in 0.71s =========