From 907183d60fbf11e1add3a850bf09ab63a07f4cef Mon Sep 17 00:00:00 2001 From: ci-bot Date: Wed, 16 Jul 2025 11:08:49 +0000 Subject: [PATCH] CI: update test report and coverage files --- ci-reports/markdown/TEST-REPORT.md | 324 ++-- ci-reports/markdown/json-tree-view.txt | 2228 +++++++++++++++++++++++ ci-reports/markdown/pytest-report.json | 2 +- ci-reports/markdown/raw-test-output.log | 16 +- 4 files changed, 2399 insertions(+), 171 deletions(-) create mode 100644 ci-reports/markdown/json-tree-view.txt diff --git a/ci-reports/markdown/TEST-REPORT.md b/ci-reports/markdown/TEST-REPORT.md index cb80c776..66d98412 100644 --- a/ci-reports/markdown/TEST-REPORT.md +++ b/ci-reports/markdown/TEST-REPORT.md @@ -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.70s ========= +======== 31 failed, 15 passed, 2 xfailed, 1 warning, 2 errors in 0.80s ========= ``` @@ -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, html-4.1.1, cov-5.0.0, allure-pytest-2.13.5, json-report-1.5.0, md-report-0.6.2 +plugins: cov-5.0.0, html-4.1.1, allure-pytest-2.13.5, metadata-3.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 0x7f5d6e5e94f0> +monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fee93cd0040> 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 0x7f5d6e7f6640> +monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fee9406e7f0> 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 0x7f5d6e7bfc10> +monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fee93b6b7f0> 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 0x7f5d70d949d0> +func = . at 0x7fee940731f0> when = 'call' reraise = (, ) @@ -497,7 +497,7 @@ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ name = 'non_existent_module_xyz' -import_ = +import_ = > ??? E ModuleNotFoundError: No module named 'non_existent_module_xyz' @@ -590,17 +590,17 @@ 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.70s ========= +======== 31 failed, 15 passed, 2 xfailed, 1 warning, 2 errors in 0.80s ========= ``` --- # ๐Ÿงช Test Report -*Generated on 2025-07-16 00:51:34* +*Generated on 2025-07-16 11:08:49* ## ๐Ÿงพ General Info -- **duration**: 0.7019052505493164 +- **duration**: 0.8066041469573975 - **root**: /workspace/tligui_y/slic - **environment**: @@ -636,7 +636,7 @@ ERROR tests/test_collector_error.py ๐Ÿ“Œ Duration ``` -0.0030791129684075713 +0.003617965034209192 ``` @@ -659,7 +659,7 @@ passed ๐Ÿ“Œ Duration ``` -0.0004252759972587228 +0.0004642140120267868 ``` @@ -682,7 +682,7 @@ passed ๐Ÿ“Œ Duration ``` -0.0002459009410813451 +0.00026219303254038095 ``` @@ -721,7 +721,7 @@ passed ๐Ÿ“Œ Duration ``` -0.00046965398360043764 +0.000528465025126934 ``` @@ -744,7 +744,7 @@ passed ๐Ÿ“Œ Duration ``` -0.0002709099790081382 +0.0003143079811707139 ``` @@ -767,7 +767,7 @@ passed ๐Ÿ“Œ Duration ``` -0.0001392909325659275 +0.00015558500308543444 ``` @@ -806,7 +806,7 @@ passed ๐Ÿ“Œ Duration ``` -0.000610513030551374 +0.0006905100308358669 ``` @@ -829,7 +829,7 @@ passed ๐Ÿ“Œ Duration ``` -0.0008320199558511376 +0.004037089995108545 ``` @@ -852,7 +852,7 @@ passed ๐Ÿ“Œ Duration ``` -0.00014088803436607122 +0.00015091407112777233 ``` @@ -900,7 +900,7 @@ passed ๐Ÿ“Œ Duration ``` -0.00028192996978759766 +0.000300711952149868 ``` @@ -923,7 +923,7 @@ passed ๐Ÿ“Œ Duration ``` -0.0001453249715268612 +0.00014944607391953468 ``` @@ -946,7 +946,7 @@ passed ๐Ÿ“Œ Duration ``` -0.00015080394223332405 +0.00015306100249290466 ``` @@ -978,7 +978,7 @@ passed ๐Ÿ“Œ Duration ``` -0.0002484479919075966 +0.0002606509951874614 ``` @@ -1001,7 +1001,7 @@ passed ๐Ÿ“Œ Duration ``` -0.0001305589685216546 +0.00013030902482569218 ``` @@ -1024,7 +1024,7 @@ passed ๐Ÿ“Œ Duration ``` -0.00013735995162278414 +0.00014665001071989536 ``` @@ -1056,7 +1056,7 @@ passed ๐Ÿ“Œ Duration ``` -0.0002534179948270321 +0.00024541805032640696 ``` @@ -1079,7 +1079,7 @@ passed ๐Ÿ“Œ Duration ``` -0.0001327429199591279 +0.00013349007349461317 ``` @@ -1102,7 +1102,7 @@ passed ๐Ÿ“Œ Duration ``` -0.00013895099982619286 +0.00014776596799492836 ``` @@ -1134,7 +1134,7 @@ passed ๐Ÿ“Œ Duration ``` -0.0002396119525656104 +0.00023620901629328728 ``` @@ -1157,7 +1157,7 @@ passed ๐Ÿ“Œ Duration ``` -0.00012756697833538055 +0.00012723798863589764 ``` @@ -1180,7 +1180,7 @@ passed ๐Ÿ“Œ Duration ``` -0.00013449799735099077 +0.00013857102021574974 ``` @@ -1212,7 +1212,7 @@ passed ๐Ÿ“Œ Duration ``` -0.00025056302547454834 +0.00023578503169119358 ``` @@ -1235,7 +1235,7 @@ passed ๐Ÿ“Œ Duration ``` -0.00013098190538585186 +0.0001230760244652629 ``` @@ -1258,7 +1258,7 @@ passed ๐Ÿ“Œ Duration ``` -0.0001404730137437582 +0.00013568403664976358 ``` @@ -1298,7 +1298,7 @@ passed ๐Ÿ“Œ Duration ``` -0.00024349195882678032 +0.00024526496417820454 ``` @@ -1321,7 +1321,7 @@ passed ๐Ÿ“Œ Duration ``` -0.00013374106492847204 +0.00012667092960327864 ``` @@ -1344,7 +1344,7 @@ passed ๐Ÿ“Œ Duration ``` -0.00013668695464730263 +0.000141231925226748 ``` @@ -1376,7 +1376,7 @@ passed ๐Ÿ“Œ Duration ``` -0.000235843937844038 +0.00022908602841198444 ``` @@ -1399,7 +1399,7 @@ passed ๐Ÿ“Œ Duration ``` -0.00012670992873609066 +0.00012555299326777458 ``` @@ -1422,7 +1422,7 @@ passed ๐Ÿ“Œ Duration ``` -0.0001390830148011446 +0.00013153499457985163 ``` @@ -1454,7 +1454,7 @@ passed ๐Ÿ“Œ Duration ``` -0.00024784798733890057 +0.00026346102822571993 ``` @@ -1477,7 +1477,7 @@ passed ๐Ÿ“Œ Duration ``` -0.00012859702110290527 +0.00013059296179562807 ``` @@ -1500,7 +1500,7 @@ passed ๐Ÿ“Œ Duration ``` -0.000138056930154562 +0.00013820489402860403 ``` @@ -1547,7 +1547,7 @@ passed ๐Ÿ“Œ Duration ``` -0.00013712001964449883 +0.00012934103142470121 ``` @@ -1570,7 +1570,7 @@ passed ๐Ÿ“Œ Duration ``` -0.00014690100215375423 +0.00014214497059583664 ``` @@ -1593,7 +1593,7 @@ passed ๐Ÿ“Œ Duration ``` -0.00010178901720792055 +0.00010681396815925837 ``` @@ -1632,7 +1632,7 @@ passed ๐Ÿ“Œ Duration ``` -0.0001285340404137969 +0.00011721800547093153 ``` @@ -1655,7 +1655,7 @@ passed ๐Ÿ“Œ Duration ``` -0.00014066300354897976 +0.00013733503874391317 ``` @@ -1678,7 +1678,7 @@ passed ๐Ÿ“Œ Duration ``` -9.875500109046698e-05 +0.00010002590715885162 ``` @@ -1717,7 +1717,7 @@ passed ๐Ÿ“Œ Duration ``` -0.00010433595161885023 +0.0001045450335368514 ``` @@ -1740,7 +1740,7 @@ passed ๐Ÿ“Œ Duration ``` -0.0001482609659433365 +0.00014453905168920755 ``` @@ -1763,7 +1763,7 @@ passed ๐Ÿ“Œ Duration ``` -9.771098848432302e-05 +0.00010876602027565241 ``` @@ -1802,7 +1802,7 @@ passed ๐Ÿ“Œ Duration ``` -0.00013460090849548578 +0.00011809589341282845 ``` @@ -1825,7 +1825,7 @@ passed ๐Ÿ“Œ Duration ``` -0.00014730601105839014 +0.00014248804654926062 ``` @@ -1848,7 +1848,7 @@ passed ๐Ÿ“Œ Duration ``` -0.00010383408516645432 +9.953498374670744e-05 ``` @@ -1887,7 +1887,7 @@ passed ๐Ÿ“Œ Duration ``` -0.00013334897812455893 +0.00011256407015025616 ``` @@ -1942,7 +1942,7 @@ passed ๐Ÿ“Œ Duration ``` -0.00011250108946114779 +0.00011612707749009132 ``` @@ -1965,7 +1965,7 @@ passed ๐Ÿ“Œ Duration ``` -0.00015071302186697721 +0.0001829679822549224 ``` @@ -2036,7 +2036,7 @@ functions/io_utils.py:10: OSError ๐Ÿ“Œ Duration ``` -0.0001407669624313712 +0.00015249894931912422 ``` @@ -2075,7 +2075,7 @@ passed ๐Ÿ“Œ Duration ``` -0.00015247007831931114 +0.00012932403478771448 ``` @@ -2098,7 +2098,7 @@ passed ๐Ÿ“Œ Duration ``` -0.00017016706988215446 +0.00018620199989527464 ``` @@ -2171,7 +2171,7 @@ functions/io_utils.py:2: FileNotFoundError ๐Ÿ“Œ Duration ``` -0.00014147104229778051 +0.00015059998258948326 ``` @@ -2210,7 +2210,7 @@ passed ๐Ÿ“Œ Duration ``` -0.00021225993987172842 +0.00024708197452127934 ``` @@ -2233,7 +2233,7 @@ passed ๐Ÿ“Œ Duration ``` -0.00016928103286772966 +0.00018904800526797771 ``` @@ -2283,7 +2283,7 @@ message: PermissionError ๐Ÿ“Œ Longrepr ``` -monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f5d6e5e94f0> +monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fee93cd0040> def test_permission_error(monkeypatch): # Patch open to raise PermissionError simulating access denial @@ -2317,7 +2317,7 @@ tests/test_io_utils.py:34: PermissionError ๐Ÿ“Œ Duration ``` -0.00016466702800244093 +0.0001854390138760209 ``` @@ -2356,7 +2356,7 @@ passed ๐Ÿ“Œ Duration ``` -0.00018298206850886345 +0.00022216502111405134 ``` @@ -2379,7 +2379,7 @@ passed ๐Ÿ“Œ Duration ``` -0.0031445869244635105 +0.0034268320305272937 ``` @@ -2432,7 +2432,7 @@ message: OSError ๐Ÿ“Œ Longrepr ``` -monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f5d6e7f6640> +monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fee9406e7f0> def test_mock_open_error(monkeypatch): # Mock open() to raise IOError simulating read error @@ -2449,7 +2449,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): @@ -2475,7 +2475,7 @@ E OSError: Mocked IOError ๐Ÿ“Œ Duration ``` -0.0002741969656199217 +0.0003374469233676791 ``` @@ -2514,7 +2514,7 @@ passed ๐Ÿ“Œ Duration ``` -0.0001385570503771305 +0.00016787892673164606 ``` @@ -2537,7 +2537,7 @@ passed ๐Ÿ“Œ Duration ``` -0.00017264101188629866 +0.00020906701683998108 ``` @@ -2601,7 +2601,7 @@ tests/test_io_utils.py:50: ValueError ๐Ÿ“Œ Duration ``` -0.00016744504682719707 +0.00020242296159267426 ``` @@ -2640,7 +2640,7 @@ passed ๐Ÿ“Œ Duration ``` -0.00023719703312963247 +0.00026867107953876257 ``` @@ -2663,7 +2663,7 @@ passed ๐Ÿ“Œ Duration ``` -0.0001905329991132021 +0.0002011969918385148 ``` @@ -2710,7 +2710,7 @@ message: OSError ๐Ÿ“Œ Longrepr ``` -monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f5d6e7bfc10> +monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fee93b6b7f0> def test_os_error(monkeypatch): # Patch os.remove to raise OSError simulating filesystem error @@ -2741,7 +2741,7 @@ tests/test_io_utils.py:55: OSError ๐Ÿ“Œ Duration ``` -0.00016613001935184002 +0.00019435002468526363 ``` @@ -2780,7 +2780,7 @@ passed ๐Ÿ“Œ Duration ``` -0.00011474697384983301 +0.00012032198719680309 ``` @@ -2803,7 +2803,7 @@ passed ๐Ÿ“Œ Duration ``` -0.00016707193572074175 +0.0001996760256588459 ``` @@ -2865,7 +2865,7 @@ tests/test_io_utils.py:69: FileNotFoundError ๐Ÿ“Œ Duration ``` -0.00013899407349526882 +0.0001396629959344864 ``` @@ -2912,7 +2912,7 @@ passed ๐Ÿ“Œ Duration ``` -0.00013233604840934277 +0.00012841098941862583 ``` @@ -2935,7 +2935,7 @@ passed ๐Ÿ“Œ Duration ``` -0.00015209091361612082 +0.00015623006038367748 ``` @@ -2997,7 +2997,7 @@ tests/test_math_utils.py:16: NameError ๐Ÿ“Œ Duration ``` -0.00013590604066848755 +0.00013373000547289848 ``` @@ -3036,7 +3036,7 @@ passed ๐Ÿ“Œ Duration ``` -0.00012269103899598122 +0.00012145703658461571 ``` @@ -3059,7 +3059,7 @@ passed ๐Ÿ“Œ Duration ``` -0.00015608000103384256 +0.0001620290568098426 ``` @@ -3121,7 +3121,7 @@ tests/test_math_utils.py:20: AttributeError ๐Ÿ“Œ Duration ``` -0.00015098601579666138 +0.00013290997594594955 ``` @@ -3160,7 +3160,7 @@ passed ๐Ÿ“Œ Duration ``` -0.00010370498057454824 +0.00010535691399127245 ``` @@ -3183,7 +3183,7 @@ passed ๐Ÿ“Œ Duration ``` -0.00043043598998337984 +0.0004575250204652548 ``` @@ -3247,7 +3247,7 @@ tests/test_math_utils.py:51: AssertionError ๐Ÿ“Œ Duration ``` -0.00013448006939142942 +0.00013428798411041498 ``` @@ -3286,7 +3286,7 @@ passed ๐Ÿ“Œ Duration ``` -0.00011729600373655558 +0.00011752895079553127 ``` @@ -3309,7 +3309,7 @@ passed ๐Ÿ“Œ Duration ``` -0.0001542989630252123 +0.000151930027641356 ``` @@ -3382,7 +3382,7 @@ functions/math_utils.py:5: ZeroDivisionError ๐Ÿ“Œ Duration ``` -0.00013592198956757784 +0.00013793795369565487 ``` @@ -3421,7 +3421,7 @@ passed ๐Ÿ“Œ Duration ``` -0.00011569599155336618 +0.00011397805064916611 ``` @@ -3444,7 +3444,7 @@ passed ๐Ÿ“Œ Duration ``` -0.0001461099600419402 +0.00014740589540451765 ``` @@ -3506,7 +3506,7 @@ tests/test_math_utils.py:64: RuntimeError ๐Ÿ“Œ Duration ``` -0.00013529008720070124 +0.00014577305410057306 ``` @@ -3545,7 +3545,7 @@ passed ๐Ÿ“Œ Duration ``` -0.00011620600707828999 +0.00011465104762464762 ``` @@ -3568,7 +3568,7 @@ passed ๐Ÿ“Œ Duration ``` -0.00015539501328021288 +0.00014430901501327753 ``` @@ -3630,7 +3630,7 @@ tests/test_math_utils.py:68: MemoryError ๐Ÿ“Œ Duration ``` -0.00013711198698729277 +0.00013640301767736673 ``` @@ -3669,7 +3669,7 @@ passed ๐Ÿ“Œ Duration ``` -0.00011882500257343054 +0.00011528702452778816 ``` @@ -3692,7 +3692,7 @@ passed ๐Ÿ“Œ Duration ``` -0.00014976400416344404 +0.0001619379036128521 ``` @@ -3754,7 +3754,7 @@ tests/test_math_utils.py:72: TimeoutError ๐Ÿ“Œ Duration ``` -0.00013656902592629194 +0.0001374790444970131 ``` @@ -3793,7 +3793,7 @@ passed ๐Ÿ“Œ Duration ``` -0.00011848099529743195 +0.00011760997585952282 ``` @@ -3816,7 +3816,7 @@ passed ๐Ÿ“Œ Duration ``` -0.0006823880830779672 +0.000778085901401937 ``` @@ -3892,7 +3892,7 @@ E RecursionError: maximum recursion depth exceeded ๐Ÿ“Œ Duration ``` -0.0001383180497214198 +0.00017420598305761814 ``` @@ -3931,7 +3931,7 @@ passed ๐Ÿ“Œ Duration ``` -0.00011852104216814041 +0.0001335209235548973 ``` @@ -3954,7 +3954,7 @@ passed ๐Ÿ“Œ Duration ``` -0.0001489369897171855 +0.0001553259789943695 ``` @@ -4016,7 +4016,7 @@ tests/test_math_utils.py:82: FloatingPointError ๐Ÿ“Œ Duration ``` -0.00013919302728027105 +0.0001469349954277277 ``` @@ -4055,7 +4055,7 @@ passed ๐Ÿ“Œ Duration ``` -0.00012113898992538452 +0.00013332196976989508 ``` @@ -4078,7 +4078,7 @@ passed ๐Ÿ“Œ Duration ``` -0.00015681597869843245 +0.0001748640788719058 ``` @@ -4140,7 +4140,7 @@ tests/test_math_utils.py:86: OverflowError ๐Ÿ“Œ Duration ``` -0.00013908103574067354 +0.00014780298806726933 ``` @@ -4179,7 +4179,7 @@ passed ๐Ÿ“Œ Duration ``` -0.00011879799421876669 +0.00012397603131830692 ``` @@ -4202,7 +4202,7 @@ passed ๐Ÿ“Œ Duration ``` -0.00015253701712936163 +0.00015627394896000624 ``` @@ -4264,7 +4264,7 @@ tests/test_math_utils.py:90: ValueError ๐Ÿ“Œ Duration ``` -0.00013692607171833515 +0.00014111807104200125 ``` @@ -4303,7 +4303,7 @@ passed ๐Ÿ“Œ Duration ``` -0.00011844106484204531 +0.00011948903556913137 ``` @@ -4326,7 +4326,7 @@ passed ๐Ÿ“Œ Duration ``` -0.0001477350015193224 +0.00015368498861789703 ``` @@ -4388,7 +4388,7 @@ tests/test_math_utils.py:94: TypeError ๐Ÿ“Œ Duration ``` -0.0001369729870930314 +0.0001494979951530695 ``` @@ -4427,7 +4427,7 @@ passed ๐Ÿ“Œ Duration ``` -0.00012415996752679348 +0.00011905201245099306 ``` @@ -4450,7 +4450,7 @@ passed ๐Ÿ“Œ Duration ``` -0.0001456530299037695 +0.0001537379575893283 ``` @@ -4512,7 +4512,7 @@ tests/test_math_utils.py:98: Exception ๐Ÿ“Œ Duration ``` -0.00013513595331460238 +0.0001645260490477085 ``` @@ -4551,7 +4551,7 @@ passed ๐Ÿ“Œ Duration ``` -0.00012743903789669275 +0.00012187508400529623 ``` @@ -4574,7 +4574,7 @@ passed ๐Ÿ“Œ Duration ``` -0.00014865596313029528 +0.00014895794447511435 ``` @@ -4636,7 +4636,7 @@ tests/test_math_utils.py:102: CustomError ๐Ÿ“Œ Duration ``` -0.00013780698645859957 +0.00013409997336566448 ``` @@ -4675,7 +4675,7 @@ passed ๐Ÿ“Œ Duration ``` -0.0001196680823341012 +0.00012137298472225666 ``` @@ -4698,7 +4698,7 @@ passed ๐Ÿ“Œ Duration ``` -0.00014681194443255663 +0.00014694198034703732 ``` @@ -4782,7 +4782,7 @@ tests/test_math_utils.py:106: StopIteration The above exception was the direct cause of the following exception: cls = -func = . at 0x7f5d70d949d0> +func = . at 0x7fee940731f0> when = 'call' reraise = (, ) @@ -4854,7 +4854,7 @@ E RuntimeError: generator raised StopIteration ๐Ÿ“Œ Duration ``` -0.00023205799516290426 +0.0004670039052143693 ``` @@ -4893,7 +4893,7 @@ passed ๐Ÿ“Œ Duration ``` -0.0001383880153298378 +0.00030170800164341927 ``` @@ -4916,7 +4916,7 @@ passed ๐Ÿ“Œ Duration ``` -0.00018184096552431583 +0.0003297060029581189 ``` @@ -4978,7 +4978,7 @@ tests/test_math_utils.py:110: GeneratorExit ๐Ÿ“Œ Duration ``` -0.00017624208703637123 +0.00020706909708678722 ``` @@ -5017,7 +5017,7 @@ passed ๐Ÿ“Œ Duration ``` -0.000126515980809927 +0.00014339096378535032 ``` @@ -5040,7 +5040,7 @@ passed ๐Ÿ“Œ Duration ``` -0.00016493001021444798 +0.00020228291396051645 ``` @@ -5108,7 +5108,7 @@ tests/test_math_utils.py:114: SyntaxError ๐Ÿ“Œ Duration ``` -0.00014715699944645166 +0.00021636905148625374 ``` @@ -5147,7 +5147,7 @@ passed ๐Ÿ“Œ Duration ``` -0.0001237459946423769 +0.00014842196833342314 ``` @@ -5170,7 +5170,7 @@ passed ๐Ÿ“Œ Duration ``` -0.00015308300498872995 +0.00017306592781096697 ``` @@ -5232,7 +5232,7 @@ tests/test_math_utils.py:118: SystemExit ๐Ÿ“Œ Duration ``` -0.00014145101886242628 +0.00017631205264478922 ``` @@ -5271,7 +5271,7 @@ passed ๐Ÿ“Œ Duration ``` -0.00011958100367337465 +0.00013500498607754707 ``` @@ -5294,7 +5294,7 @@ passed ๐Ÿ“Œ Duration ``` -0.0001518439967185259 +0.00017581996507942677 ``` @@ -5369,7 +5369,7 @@ tests/test_math_utils.py:123: TypeError ๐Ÿ“Œ Duration ``` -0.0001407669624313712 +0.000149679952301085 ``` @@ -5408,7 +5408,7 @@ passed ๐Ÿ“Œ Duration ``` -0.00011679902672767639 +0.00013092998415231705 ``` @@ -5431,7 +5431,7 @@ passed ๐Ÿ“Œ Duration ``` -0.00015112606342881918 +0.000178938964381814 ``` @@ -5492,7 +5492,7 @@ tests/test_math_utils.py:127: ImportError ๐Ÿ“Œ Duration ``` -0.00013589404989033937 +0.00015409698244184256 ``` @@ -5531,7 +5531,7 @@ passed ๐Ÿ“Œ Duration ``` -0.00012557301670312881 +0.00012629490811377764 ``` @@ -5554,7 +5554,7 @@ passed ๐Ÿ“Œ Duration ``` -0.0004667449975386262 +0.0004998450167477131 ``` @@ -5625,7 +5625,7 @@ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ name = 'non_existent_module_xyz' -import_ = +import_ = > ??? E ModuleNotFoundError: No module named 'non_existent_module_xyz' @@ -5643,7 +5643,7 @@ E ModuleNotFoundError: No module named 'non_existent_module_xyz' ๐Ÿ“Œ Duration ``` -0.00014205800835043192 +0.00015001301653683186 ``` @@ -5690,7 +5690,7 @@ passed ๐Ÿ“Œ Duration ``` -0.00010633899364620447 +0.00010356400161981583 ``` @@ -5713,7 +5713,7 @@ passed ๐Ÿ“Œ Duration ``` -0.00014699099119752645 +0.00014432298485189676 ``` @@ -5787,7 +5787,7 @@ functions/string_utils.py:3: TypeError ๐Ÿ“Œ Duration ``` -0.00013675494119524956 +0.00013995298650115728 ``` @@ -5826,7 +5826,7 @@ passed ๐Ÿ“Œ Duration ``` -0.00010488694533705711 +0.0001074749743565917 ``` @@ -5849,7 +5849,7 @@ passed ๐Ÿ“Œ Duration ``` -0.0001580999232828617 +0.00014210899826139212 ``` @@ -5911,7 +5911,7 @@ tests/test_string_utils.py:26: UnicodeDecodeError ๐Ÿ“Œ Duration ``` -0.000144515885040164 +0.00013619591481983662 ``` @@ -5950,7 +5950,7 @@ passed ๐Ÿ“Œ Duration ``` -0.00011830893345177174 +0.0001271349610760808 ``` @@ -5973,7 +5973,7 @@ passed ๐Ÿ“Œ Duration ``` -0.00015086692292243242 +0.0001538019860163331 ``` @@ -6035,7 +6035,7 @@ tests/test_string_utils.py:30: UnicodeDecodeError ๐Ÿ“Œ Duration ``` -0.01758603600319475 +0.00013066106475889683 ``` @@ -6090,7 +6090,7 @@ passed ๐Ÿ“Œ Duration ``` -0.00014224299229681492 +0.0001323210308328271 ``` @@ -6113,7 +6113,7 @@ passed ๐Ÿ“Œ Duration ``` -0.0002493509091436863 +0.0002674009883776307 ``` @@ -6178,7 +6178,7 @@ tests/test_math_utils.py:60: AssertionError ๐Ÿ“Œ Duration ``` -0.00013648299500346184 +0.0001320660812780261 ``` @@ -6225,7 +6225,7 @@ passed ๐Ÿ“Œ Duration ``` -0.00011911604087799788 +0.00012079300358891487 ``` @@ -6248,7 +6248,7 @@ passed ๐Ÿ“Œ Duration ``` -0.0006517469882965088 +0.0006187279941514134 ``` @@ -6319,7 +6319,7 @@ tests/test_string_utils.py:39: AssertionError ๐Ÿ“Œ Duration ``` -0.00014050898607820272 +0.0001350089441984892 ``` diff --git a/ci-reports/markdown/json-tree-view.txt b/ci-reports/markdown/json-tree-view.txt new file mode 100644 index 00000000..c11249e2 --- /dev/null +++ b/ci-reports/markdown/json-tree-view.txt @@ -0,0 +1,2228 @@ +{ + "created": 1752664129.3043332, + "duration": 0.8066041469573975, + "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.003617965034209192, + "outcome": "passed" + }, + "call": { + "duration": 0.0004642140120267868, + "outcome": "passed" + }, + "teardown": { + "duration": 0.00026219303254038095, + "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.000528465025126934, + "outcome": "passed" + }, + "call": { + "duration": 0.0003143079811707139, + "outcome": "passed" + }, + "teardown": { + "duration": 0.00015558500308543444, + "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.00011612707749009132, + "outcome": "passed" + }, + "call": { + "duration": 0.0001829679822549224, + "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.00015249894931912422, + "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.00012932403478771448, + "outcome": "passed" + }, + "call": { + "duration": 0.00018620199989527464, + "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.00015059998258948326, + "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.00024708197452127934, + "outcome": "passed" + }, + "call": { + "duration": 0.00018904800526797771, + "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 0x7fee93cd0040>\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.0001854390138760209, + "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.00022216502111405134, + "outcome": "passed" + }, + "call": { + "duration": 0.0034268320305272937, + "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 0x7fee9406e7f0>\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.0003374469233676791, + "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.00016787892673164606, + "outcome": "passed" + }, + "call": { + "duration": 0.00020906701683998108, + "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.00020242296159267426, + "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.00026867107953876257, + "outcome": "passed" + }, + "call": { + "duration": 0.0002011969918385148, + "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 0x7fee93b6b7f0>\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.00019435002468526363, + "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.0006905100308358669, + "outcome": "passed" + }, + "call": { + "duration": 0.004037089995108545, + "outcome": "passed" + }, + "teardown": { + "duration": 0.00015091407112777233, + "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.00012032198719680309, + "outcome": "passed" + }, + "call": { + "duration": 0.0001996760256588459, + "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.0001396629959344864, + "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.00012841098941862583, + "outcome": "passed" + }, + "call": { + "duration": 0.00015623006038367748, + "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.00013373000547289848, + "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.00012145703658461571, + "outcome": "passed" + }, + "call": { + "duration": 0.0001620290568098426, + "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.00013290997594594955, + "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.000300711952149868, + "outcome": "passed" + }, + "call": { + "duration": 0.00014944607391953468, + "outcome": "passed" + }, + "teardown": { + "duration": 0.00015306100249290466, + "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.0002606509951874614, + "outcome": "passed" + }, + "call": { + "duration": 0.00013030902482569218, + "outcome": "passed" + }, + "teardown": { + "duration": 0.00014665001071989536, + "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.00024541805032640696, + "outcome": "passed" + }, + "call": { + "duration": 0.00013349007349461317, + "outcome": "passed" + }, + "teardown": { + "duration": 0.00014776596799492836, + "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.00023620901629328728, + "outcome": "passed" + }, + "call": { + "duration": 0.00012723798863589764, + "outcome": "passed" + }, + "teardown": { + "duration": 0.00013857102021574974, + "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.00023578503169119358, + "outcome": "passed" + }, + "call": { + "duration": 0.0001230760244652629, + "outcome": "passed" + }, + "teardown": { + "duration": 0.00013568403664976358, + "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.00024526496417820454, + "outcome": "passed" + }, + "call": { + "duration": 0.00012667092960327864, + "outcome": "passed" + }, + "teardown": { + "duration": 0.000141231925226748, + "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.00022908602841198444, + "outcome": "passed" + }, + "call": { + "duration": 0.00012555299326777458, + "outcome": "passed" + }, + "teardown": { + "duration": 0.00013153499457985163, + "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.00026346102822571993, + "outcome": "passed" + }, + "call": { + "duration": 0.00013059296179562807, + "outcome": "passed" + }, + "teardown": { + "duration": 0.00013820489402860403, + "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.00010535691399127245, + "outcome": "passed" + }, + "call": { + "duration": 0.0004575250204652548, + "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.00013428798411041498, + "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.00011752895079553127, + "outcome": "passed" + }, + "call": { + "duration": 0.000151930027641356, + "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.00013793795369565487, + "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.0001323210308328271, + "outcome": "passed" + }, + "call": { + "duration": 0.0002674009883776307, + "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.0001320660812780261, + "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.00011397805064916611, + "outcome": "passed" + }, + "call": { + "duration": 0.00014740589540451765, + "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.00014577305410057306, + "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.00011465104762464762, + "outcome": "passed" + }, + "call": { + "duration": 0.00014430901501327753, + "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.00013640301767736673, + "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.00011528702452778816, + "outcome": "passed" + }, + "call": { + "duration": 0.0001619379036128521, + "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.0001374790444970131, + "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.00011760997585952282, + "outcome": "passed" + }, + "call": { + "duration": 0.000778085901401937, + "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.00017420598305761814, + "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.0001335209235548973, + "outcome": "passed" + }, + "call": { + "duration": 0.0001553259789943695, + "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.0001469349954277277, + "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.00013332196976989508, + "outcome": "passed" + }, + "call": { + "duration": 0.0001748640788719058, + "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.00014780298806726933, + "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.00012397603131830692, + "outcome": "passed" + }, + "call": { + "duration": 0.00015627394896000624, + "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.00014111807104200125, + "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.00011948903556913137, + "outcome": "passed" + }, + "call": { + "duration": 0.00015368498861789703, + "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.0001494979951530695, + "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.00011905201245099306, + "outcome": "passed" + }, + "call": { + "duration": 0.0001537379575893283, + "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.0001645260490477085, + "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.00012187508400529623, + "outcome": "passed" + }, + "call": { + "duration": 0.00014895794447511435, + "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.00013409997336566448, + "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.00012137298472225666, + "outcome": "passed" + }, + "call": { + "duration": 0.00014694198034703732, + "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 0x7fee940731f0>\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.0004670039052143693, + "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.00030170800164341927, + "outcome": "passed" + }, + "call": { + "duration": 0.0003297060029581189, + "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.00020706909708678722, + "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.00014339096378535032, + "outcome": "passed" + }, + "call": { + "duration": 0.00020228291396051645, + "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.00021636905148625374, + "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.00014842196833342314, + "outcome": "passed" + }, + "call": { + "duration": 0.00017306592781096697, + "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.00017631205264478922, + "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.00013500498607754707, + "outcome": "passed" + }, + "call": { + "duration": 0.00017581996507942677, + "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.000149679952301085, + "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.00013092998415231705, + "outcome": "passed" + }, + "call": { + "duration": 0.000178938964381814, + "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.00015409698244184256, + "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.00012629490811377764, + "outcome": "passed" + }, + "call": { + "duration": 0.0004998450167477131, + "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.00015001301653683186, + "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.00012934103142470121, + "outcome": "passed" + }, + "call": { + "duration": 0.00014214497059583664, + "outcome": "passed" + }, + "teardown": { + "duration": 0.00010681396815925837, + "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.00010356400161981583, + "outcome": "passed" + }, + "call": { + "duration": 0.00014432298485189676, + "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.00013995298650115728, + "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.00011721800547093153, + "outcome": "passed" + }, + "call": { + "duration": 0.00013733503874391317, + "outcome": "passed" + }, + "teardown": { + "duration": 0.00010002590715885162, + "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.0001045450335368514, + "outcome": "passed" + }, + "call": { + "duration": 0.00014453905168920755, + "outcome": "passed" + }, + "teardown": { + "duration": 0.00010876602027565241, + "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.0001074749743565917, + "outcome": "passed" + }, + "call": { + "duration": 0.00014210899826139212, + "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.00013619591481983662, + "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.0001271349610760808, + "outcome": "passed" + }, + "call": { + "duration": 0.0001538019860163331, + "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.00013066106475889683, + "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.00011809589341282845, + "outcome": "passed" + }, + "call": { + "duration": 0.00014248804654926062, + "outcome": "passed" + }, + "teardown": { + "duration": 9.953498374670744e-05, + "outcome": "passed" + } + }, + { + "nodeid": "tests/test_string_utils.py::test_xfail_uppercase_digits", + "lineno": 35, + "outcome": "xfailed", + "keywords": [ + "test_xfail_uppercase_digits", + "xfail", + "pytestmark", + "test_string_utils.py", + "tests", + "slic", + "" + ], + "setup": { + "duration": 0.00012079300358891487, + "outcome": "passed" + }, + "call": { + "duration": 0.0006187279941514134, + "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.0001350089441984892, + "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.00011256407015025616, + "outcome": "passed" + } + } + ], + "warnings": [ + { + "message": "Test warning", + "category": "UserWarning", + "when": "runtest", + "filename": "/workspace/tligui_y/slic/tests/test_string_utils.py", + "lineno": 22 + } + ] +} diff --git a/ci-reports/markdown/pytest-report.json b/ci-reports/markdown/pytest-report.json index 10cc15fa..121fd7cf 100644 --- a/ci-reports/markdown/pytest-report.json +++ b/ci-reports/markdown/pytest-report.json @@ -1 +1 @@ -{"created": 1752627093.8473988, "duration": 0.7019052505493164, "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.0030791129684075713, "outcome": "passed"}, "call": {"duration": 0.0004252759972587228, "outcome": "passed"}, "teardown": {"duration": 0.0002459009410813451, "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.00046965398360043764, "outcome": "passed"}, "call": {"duration": 0.0002709099790081382, "outcome": "passed"}, "teardown": {"duration": 0.0001392909325659275, "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.00011250108946114779, "outcome": "passed"}, "call": {"duration": 0.00015071302186697721, "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.0001407669624313712, "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.00015247007831931114, "outcome": "passed"}, "call": {"duration": 0.00017016706988215446, "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.00014147104229778051, "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.00021225993987172842, "outcome": "passed"}, "call": {"duration": 0.00016928103286772966, "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 0x7f5d6e5e94f0>\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.00016466702800244093, "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.00018298206850886345, "outcome": "passed"}, "call": {"duration": 0.0031445869244635105, "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 0x7f5d6e7f6640>\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.0002741969656199217, "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.0001385570503771305, "outcome": "passed"}, "call": {"duration": 0.00017264101188629866, "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.00016744504682719707, "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.00023719703312963247, "outcome": "passed"}, "call": {"duration": 0.0001905329991132021, "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 0x7f5d6e7bfc10>\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.00016613001935184002, "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.000610513030551374, "outcome": "passed"}, "call": {"duration": 0.0008320199558511376, "outcome": "passed"}, "teardown": {"duration": 0.00014088803436607122, "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.00011474697384983301, "outcome": "passed"}, "call": {"duration": 0.00016707193572074175, "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.00013899407349526882, "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.00013233604840934277, "outcome": "passed"}, "call": {"duration": 0.00015209091361612082, "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.00013590604066848755, "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.00012269103899598122, "outcome": "passed"}, "call": {"duration": 0.00015608000103384256, "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.00015098601579666138, "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.00028192996978759766, "outcome": "passed"}, "call": {"duration": 0.0001453249715268612, "outcome": "passed"}, "teardown": {"duration": 0.00015080394223332405, "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.0002484479919075966, "outcome": "passed"}, "call": {"duration": 0.0001305589685216546, "outcome": "passed"}, "teardown": {"duration": 0.00013735995162278414, "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.0002534179948270321, "outcome": "passed"}, "call": {"duration": 0.0001327429199591279, "outcome": "passed"}, "teardown": {"duration": 0.00013895099982619286, "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.0002396119525656104, "outcome": "passed"}, "call": {"duration": 0.00012756697833538055, "outcome": "passed"}, "teardown": {"duration": 0.00013449799735099077, "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.00025056302547454834, "outcome": "passed"}, "call": {"duration": 0.00013098190538585186, "outcome": "passed"}, "teardown": {"duration": 0.0001404730137437582, "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.00024349195882678032, "outcome": "passed"}, "call": {"duration": 0.00013374106492847204, "outcome": "passed"}, "teardown": {"duration": 0.00013668695464730263, "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.000235843937844038, "outcome": "passed"}, "call": {"duration": 0.00012670992873609066, "outcome": "passed"}, "teardown": {"duration": 0.0001390830148011446, "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.00024784798733890057, "outcome": "passed"}, "call": {"duration": 0.00012859702110290527, "outcome": "passed"}, "teardown": {"duration": 0.000138056930154562, "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.00010370498057454824, "outcome": "passed"}, "call": {"duration": 0.00043043598998337984, "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.00013448006939142942, "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.00011729600373655558, "outcome": "passed"}, "call": {"duration": 0.0001542989630252123, "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.00013592198956757784, "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.00014224299229681492, "outcome": "passed"}, "call": {"duration": 0.0002493509091436863, "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.00013648299500346184, "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.00011569599155336618, "outcome": "passed"}, "call": {"duration": 0.0001461099600419402, "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.00013529008720070124, "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.00011620600707828999, "outcome": "passed"}, "call": {"duration": 0.00015539501328021288, "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.00013711198698729277, "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.00011882500257343054, "outcome": "passed"}, "call": {"duration": 0.00014976400416344404, "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.00013656902592629194, "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.00011848099529743195, "outcome": "passed"}, "call": {"duration": 0.0006823880830779672, "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.0001383180497214198, "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.00011852104216814041, "outcome": "passed"}, "call": {"duration": 0.0001489369897171855, "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.00013919302728027105, "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.00012113898992538452, "outcome": "passed"}, "call": {"duration": 0.00015681597869843245, "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.00013908103574067354, "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.00011879799421876669, "outcome": "passed"}, "call": {"duration": 0.00015253701712936163, "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.00013692607171833515, "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.00011844106484204531, "outcome": "passed"}, "call": {"duration": 0.0001477350015193224, "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.0001369729870930314, "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.00012415996752679348, "outcome": "passed"}, "call": {"duration": 0.0001456530299037695, "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.00013513595331460238, "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.00012743903789669275, "outcome": "passed"}, "call": {"duration": 0.00014865596313029528, "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.00013780698645859957, "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.0001196680823341012, "outcome": "passed"}, "call": {"duration": 0.00014681194443255663, "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 0x7f5d70d949d0>\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.00023205799516290426, "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.0001383880153298378, "outcome": "passed"}, "call": {"duration": 0.00018184096552431583, "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.00017624208703637123, "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.000126515980809927, "outcome": "passed"}, "call": {"duration": 0.00016493001021444798, "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.00014715699944645166, "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.0001237459946423769, "outcome": "passed"}, "call": {"duration": 0.00015308300498872995, "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.00014145101886242628, "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.00011958100367337465, "outcome": "passed"}, "call": {"duration": 0.0001518439967185259, "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.0001407669624313712, "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.00011679902672767639, "outcome": "passed"}, "call": {"duration": 0.00015112606342881918, "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.00013589404989033937, "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.00012557301670312881, "outcome": "passed"}, "call": {"duration": 0.0004667449975386262, "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.00014205800835043192, "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.00013712001964449883, "outcome": "passed"}, "call": {"duration": 0.00014690100215375423, "outcome": "passed"}, "teardown": {"duration": 0.00010178901720792055, "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.00010633899364620447, "outcome": "passed"}, "call": {"duration": 0.00014699099119752645, "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.00013675494119524956, "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.0001285340404137969, "outcome": "passed"}, "call": {"duration": 0.00014066300354897976, "outcome": "passed"}, "teardown": {"duration": 9.875500109046698e-05, "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.00010433595161885023, "outcome": "passed"}, "call": {"duration": 0.0001482609659433365, "outcome": "passed"}, "teardown": {"duration": 9.771098848432302e-05, "outcome": "passed"}}, {"nodeid": "tests/test_string_utils.py::test_unicode_decode_error", "lineno": 23, "outcome": "failed", "keywords": ["test_unicode_decode_error", "test_string_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00010488694533705711, "outcome": "passed"}, "call": {"duration": 0.0001580999232828617, "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.000144515885040164, "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.00011830893345177174, "outcome": "passed"}, "call": {"duration": 0.00015086692292243242, "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.01758603600319475, "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.00013460090849548578, "outcome": "passed"}, "call": {"duration": 0.00014730601105839014, "outcome": "passed"}, "teardown": {"duration": 0.00010383408516645432, "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.00011911604087799788, "outcome": "passed"}, "call": {"duration": 0.0006517469882965088, "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.00014050898607820272, "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.00013334897812455893, "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": 1752664129.3043332, "duration": 0.8066041469573975, "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.003617965034209192, "outcome": "passed"}, "call": {"duration": 0.0004642140120267868, "outcome": "passed"}, "teardown": {"duration": 0.00026219303254038095, "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.000528465025126934, "outcome": "passed"}, "call": {"duration": 0.0003143079811707139, "outcome": "passed"}, "teardown": {"duration": 0.00015558500308543444, "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.00011612707749009132, "outcome": "passed"}, "call": {"duration": 0.0001829679822549224, "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.00015249894931912422, "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.00012932403478771448, "outcome": "passed"}, "call": {"duration": 0.00018620199989527464, "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.00015059998258948326, "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.00024708197452127934, "outcome": "passed"}, "call": {"duration": 0.00018904800526797771, "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 0x7fee93cd0040>\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.0001854390138760209, "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.00022216502111405134, "outcome": "passed"}, "call": {"duration": 0.0034268320305272937, "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 0x7fee9406e7f0>\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.0003374469233676791, "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.00016787892673164606, "outcome": "passed"}, "call": {"duration": 0.00020906701683998108, "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.00020242296159267426, "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.00026867107953876257, "outcome": "passed"}, "call": {"duration": 0.0002011969918385148, "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 0x7fee93b6b7f0>\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.00019435002468526363, "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.0006905100308358669, "outcome": "passed"}, "call": {"duration": 0.004037089995108545, "outcome": "passed"}, "teardown": {"duration": 0.00015091407112777233, "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.00012032198719680309, "outcome": "passed"}, "call": {"duration": 0.0001996760256588459, "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.0001396629959344864, "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.00012841098941862583, "outcome": "passed"}, "call": {"duration": 0.00015623006038367748, "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.00013373000547289848, "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.00012145703658461571, "outcome": "passed"}, "call": {"duration": 0.0001620290568098426, "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.00013290997594594955, "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.000300711952149868, "outcome": "passed"}, "call": {"duration": 0.00014944607391953468, "outcome": "passed"}, "teardown": {"duration": 0.00015306100249290466, "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.0002606509951874614, "outcome": "passed"}, "call": {"duration": 0.00013030902482569218, "outcome": "passed"}, "teardown": {"duration": 0.00014665001071989536, "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.00024541805032640696, "outcome": "passed"}, "call": {"duration": 0.00013349007349461317, "outcome": "passed"}, "teardown": {"duration": 0.00014776596799492836, "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.00023620901629328728, "outcome": "passed"}, "call": {"duration": 0.00012723798863589764, "outcome": "passed"}, "teardown": {"duration": 0.00013857102021574974, "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.00023578503169119358, "outcome": "passed"}, "call": {"duration": 0.0001230760244652629, "outcome": "passed"}, "teardown": {"duration": 0.00013568403664976358, "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.00024526496417820454, "outcome": "passed"}, "call": {"duration": 0.00012667092960327864, "outcome": "passed"}, "teardown": {"duration": 0.000141231925226748, "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.00022908602841198444, "outcome": "passed"}, "call": {"duration": 0.00012555299326777458, "outcome": "passed"}, "teardown": {"duration": 0.00013153499457985163, "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.00026346102822571993, "outcome": "passed"}, "call": {"duration": 0.00013059296179562807, "outcome": "passed"}, "teardown": {"duration": 0.00013820489402860403, "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.00010535691399127245, "outcome": "passed"}, "call": {"duration": 0.0004575250204652548, "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.00013428798411041498, "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.00011752895079553127, "outcome": "passed"}, "call": {"duration": 0.000151930027641356, "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.00013793795369565487, "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.0001323210308328271, "outcome": "passed"}, "call": {"duration": 0.0002674009883776307, "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.0001320660812780261, "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.00011397805064916611, "outcome": "passed"}, "call": {"duration": 0.00014740589540451765, "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.00014577305410057306, "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.00011465104762464762, "outcome": "passed"}, "call": {"duration": 0.00014430901501327753, "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.00013640301767736673, "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.00011528702452778816, "outcome": "passed"}, "call": {"duration": 0.0001619379036128521, "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.0001374790444970131, "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.00011760997585952282, "outcome": "passed"}, "call": {"duration": 0.000778085901401937, "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.00017420598305761814, "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.0001335209235548973, "outcome": "passed"}, "call": {"duration": 0.0001553259789943695, "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.0001469349954277277, "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.00013332196976989508, "outcome": "passed"}, "call": {"duration": 0.0001748640788719058, "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.00014780298806726933, "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.00012397603131830692, "outcome": "passed"}, "call": {"duration": 0.00015627394896000624, "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.00014111807104200125, "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.00011948903556913137, "outcome": "passed"}, "call": {"duration": 0.00015368498861789703, "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.0001494979951530695, "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.00011905201245099306, "outcome": "passed"}, "call": {"duration": 0.0001537379575893283, "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.0001645260490477085, "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.00012187508400529623, "outcome": "passed"}, "call": {"duration": 0.00014895794447511435, "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.00013409997336566448, "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.00012137298472225666, "outcome": "passed"}, "call": {"duration": 0.00014694198034703732, "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 0x7fee940731f0>\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.0004670039052143693, "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.00030170800164341927, "outcome": "passed"}, "call": {"duration": 0.0003297060029581189, "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.00020706909708678722, "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.00014339096378535032, "outcome": "passed"}, "call": {"duration": 0.00020228291396051645, "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.00021636905148625374, "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.00014842196833342314, "outcome": "passed"}, "call": {"duration": 0.00017306592781096697, "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.00017631205264478922, "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.00013500498607754707, "outcome": "passed"}, "call": {"duration": 0.00017581996507942677, "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.000149679952301085, "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.00013092998415231705, "outcome": "passed"}, "call": {"duration": 0.000178938964381814, "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.00015409698244184256, "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.00012629490811377764, "outcome": "passed"}, "call": {"duration": 0.0004998450167477131, "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.00015001301653683186, "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.00012934103142470121, "outcome": "passed"}, "call": {"duration": 0.00014214497059583664, "outcome": "passed"}, "teardown": {"duration": 0.00010681396815925837, "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.00010356400161981583, "outcome": "passed"}, "call": {"duration": 0.00014432298485189676, "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.00013995298650115728, "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.00011721800547093153, "outcome": "passed"}, "call": {"duration": 0.00013733503874391317, "outcome": "passed"}, "teardown": {"duration": 0.00010002590715885162, "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.0001045450335368514, "outcome": "passed"}, "call": {"duration": 0.00014453905168920755, "outcome": "passed"}, "teardown": {"duration": 0.00010876602027565241, "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.0001074749743565917, "outcome": "passed"}, "call": {"duration": 0.00014210899826139212, "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.00013619591481983662, "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.0001271349610760808, "outcome": "passed"}, "call": {"duration": 0.0001538019860163331, "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.00013066106475889683, "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.00011809589341282845, "outcome": "passed"}, "call": {"duration": 0.00014248804654926062, "outcome": "passed"}, "teardown": {"duration": 9.953498374670744e-05, "outcome": "passed"}}, {"nodeid": "tests/test_string_utils.py::test_xfail_uppercase_digits", "lineno": 35, "outcome": "xfailed", "keywords": ["test_xfail_uppercase_digits", "xfail", "pytestmark", "test_string_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00012079300358891487, "outcome": "passed"}, "call": {"duration": 0.0006187279941514134, "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.0001350089441984892, "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.00011256407015025616, "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 94b8134c..b0608d02 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, html-4.1.1, cov-5.0.0, allure-pytest-2.13.5, json-report-1.5.0, md-report-0.6.2 +plugins: cov-5.0.0, html-4.1.1, allure-pytest-2.13.5, metadata-3.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 0x7f5d6e5e94f0> +monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fee93cd0040> 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 0x7f5d6e7f6640> +monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fee9406e7f0> 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 0x7f5d6e7bfc10> +monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fee93b6b7f0> 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 0x7f5d70d949d0> +func = . at 0x7fee940731f0> when = 'call' reraise = (, ) @@ -440,7 +440,7 @@ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ name = 'non_existent_module_xyz' -import_ = +import_ = > ??? E ModuleNotFoundError: No module named 'non_existent_module_xyz' @@ -533,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.70s ========= +======== 31 failed, 15 passed, 2 xfailed, 1 warning, 2 errors in 0.80s =========