From 37c62ba23d709684eea5115a8a68cb2ff02e8cea Mon Sep 17 00:00:00 2001 From: ci-bot Date: Tue, 15 Jul 2025 12:23:32 +0000 Subject: [PATCH] CI: update all test reports (HTML, XML, JSON, MD) --- ci-reports/html/assets/style.css | 319 ++++++++++ ci-reports/html/pytest-report.html | 770 ++++++++++++++++++++++++ ci-reports/markdown/TEST-REPORT.md | 471 ++++++++------- ci-reports/markdown/pytest-report.json | 2 +- ci-reports/markdown/raw-test-output.log | 564 ++++++++++++++++- ci-reports/xml/pytest-report.xml | 397 ++++++++++++ 6 files changed, 2296 insertions(+), 227 deletions(-) create mode 100644 ci-reports/html/assets/style.css create mode 100644 ci-reports/html/pytest-report.html create mode 100644 ci-reports/xml/pytest-report.xml diff --git a/ci-reports/html/assets/style.css b/ci-reports/html/assets/style.css new file mode 100644 index 000000000..561524c69 --- /dev/null +++ b/ci-reports/html/assets/style.css @@ -0,0 +1,319 @@ +body { + font-family: Helvetica, Arial, sans-serif; + font-size: 12px; + /* do not increase min-width as some may use split screens */ + min-width: 800px; + color: #999; +} + +h1 { + font-size: 24px; + color: black; +} + +h2 { + font-size: 16px; + color: black; +} + +p { + color: black; +} + +a { + color: #999; +} + +table { + border-collapse: collapse; +} + +/****************************** + * SUMMARY INFORMATION + ******************************/ +#environment td { + padding: 5px; + border: 1px solid #e6e6e6; + vertical-align: top; +} +#environment tr:nth-child(odd) { + background-color: #f6f6f6; +} +#environment ul { + margin: 0; + padding: 0 20px; +} + +/****************************** + * TEST RESULT COLORS + ******************************/ +span.passed, +.passed .col-result { + color: green; +} + +span.skipped, +span.xfailed, +span.rerun, +.skipped .col-result, +.xfailed .col-result, +.rerun .col-result { + color: orange; +} + +span.error, +span.failed, +span.xpassed, +.error .col-result, +.failed .col-result, +.xpassed .col-result { + color: red; +} + +.col-links__extra { + margin-right: 3px; +} + +/****************************** + * RESULTS TABLE + * + * 1. Table Layout + * 2. Extra + * 3. Sorting items + * + ******************************/ +/*------------------ + * 1. Table Layout + *------------------*/ +#results-table { + border: 1px solid #e6e6e6; + color: #999; + font-size: 12px; + width: 100%; +} +#results-table th, +#results-table td { + padding: 5px; + border: 1px solid #e6e6e6; + text-align: left; +} +#results-table th { + font-weight: bold; +} + +/*------------------ + * 2. Extra + *------------------*/ +.logwrapper { + max-height: 230px; + overflow-y: scroll; + background-color: #e6e6e6; +} +.logwrapper.expanded { + max-height: none; +} +.logwrapper.expanded .logexpander:after { + content: "collapse [-]"; +} +.logwrapper .logexpander { + z-index: 1; + position: sticky; + top: 10px; + width: max-content; + border: 1px solid; + border-radius: 3px; + padding: 5px 7px; + margin: 10px 0 10px calc(100% - 80px); + cursor: pointer; + background-color: #e6e6e6; +} +.logwrapper .logexpander:after { + content: "expand [+]"; +} +.logwrapper .logexpander:hover { + color: #000; + border-color: #000; +} +.logwrapper .log { + min-height: 40px; + position: relative; + top: -50px; + height: calc(100% + 50px); + border: 1px solid #e6e6e6; + color: black; + display: block; + font-family: "Courier New", Courier, monospace; + padding: 5px; + padding-right: 80px; + white-space: pre-wrap; +} + +div.media { + border: 1px solid #e6e6e6; + float: right; + height: 240px; + margin: 0 5px; + overflow: hidden; + width: 320px; +} + +.media-container { + display: grid; + grid-template-columns: 25px auto 25px; + align-items: center; + flex: 1 1; + overflow: hidden; + height: 200px; +} + +.media-container--fullscreen { + grid-template-columns: 0px auto 0px; +} + +.media-container__nav--right, +.media-container__nav--left { + text-align: center; + cursor: pointer; +} + +.media-container__viewport { + cursor: pointer; + text-align: center; + height: inherit; +} +.media-container__viewport img, +.media-container__viewport video { + object-fit: cover; + width: 100%; + max-height: 100%; +} + +.media__name, +.media__counter { + display: flex; + flex-direction: row; + justify-content: space-around; + flex: 0 0 25px; + align-items: center; +} + +.collapsible td:not(.col-links) { + cursor: pointer; +} +.collapsible td:not(.col-links):hover::after { + color: #bbb; + font-style: italic; + cursor: pointer; +} + +.col-result { + width: 130px; +} +.col-result:hover::after { + content: " (hide details)"; +} + +.col-result.collapsed:hover::after { + content: " (show details)"; +} + +#environment-header h2:hover::after { + content: " (hide details)"; + color: #bbb; + font-style: italic; + cursor: pointer; + font-size: 12px; +} + +#environment-header.collapsed h2:hover::after { + content: " (show details)"; + color: #bbb; + font-style: italic; + cursor: pointer; + font-size: 12px; +} + +/*------------------ + * 3. Sorting items + *------------------*/ +.sortable { + cursor: pointer; +} +.sortable.desc:after { + content: " "; + position: relative; + left: 5px; + bottom: -12.5px; + border: 10px solid #4caf50; + border-bottom: 0; + border-left-color: transparent; + border-right-color: transparent; +} +.sortable.asc:after { + content: " "; + position: relative; + left: 5px; + bottom: 12.5px; + border: 10px solid #4caf50; + border-top: 0; + border-left-color: transparent; + border-right-color: transparent; +} + +.hidden, .summary__reload__button.hidden { + display: none; +} + +.summary__data { + flex: 0 0 550px; +} +.summary__reload { + flex: 1 1; + display: flex; + justify-content: center; +} +.summary__reload__button { + flex: 0 0 300px; + display: flex; + color: white; + font-weight: bold; + background-color: #4caf50; + text-align: center; + justify-content: center; + align-items: center; + border-radius: 3px; + cursor: pointer; +} +.summary__reload__button:hover { + background-color: #46a049; +} +.summary__spacer { + flex: 0 0 550px; +} + +.controls { + display: flex; + justify-content: space-between; +} + +.filters, +.collapse { + display: flex; + align-items: center; +} +.filters button, +.collapse button { + color: #999; + border: none; + background: none; + cursor: pointer; + text-decoration: underline; +} +.filters button:hover, +.collapse button:hover { + color: #ccc; +} + +.filter__label { + margin-right: 10px; +} diff --git a/ci-reports/html/pytest-report.html b/ci-reports/html/pytest-report.html new file mode 100644 index 000000000..93b184b2b --- /dev/null +++ b/ci-reports/html/pytest-report.html @@ -0,0 +1,770 @@ + + + + + pytest-report.html + + + +

pytest-report.html

+

Report generated on 15-Jul-2025 at 12:23:32 by pytest-html + v4.1.1

+
+

Environment

+
+
+ + + + + +
+
+

Summary

+
+
+

49 tests took 24 ms.

+

(Un)check the boxes to filter the results.

+
+ +
+
+
+
+ + 32 Failed, + + 15 Passed, + + 0 Skipped, + + 2 Expected failures, + + 0 Unexpected passes, + + 2 Errors, + + 0 Reruns +
+
+  /  +
+
+
+
+
+
+
+
+ + + + + + + + + +
ResultTestDurationLinks
+ + + \ No newline at end of file diff --git a/ci-reports/markdown/TEST-REPORT.md b/ci-reports/markdown/TEST-REPORT.md index 61307b586..6d108d53a 100644 --- a/ci-reports/markdown/TEST-REPORT.md +++ b/ci-reports/markdown/TEST-REPORT.md @@ -48,7 +48,7 @@ ERROR tests/test_collector_error.py !!!!!!!!!!!!!!!!!!!!!!!!!!!!!! KeyboardInterrupt !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! /workspace/tligui_y/slic/tests/test_string_utils.py:43: KeyboardInterrupt (to show a full traceback on KeyboardInterrupt use --full-trace) -======== 32 failed, 15 passed, 2 xfailed, 1 warning, 2 errors in 0.71s ========= +======== 32 failed, 15 passed, 2 xfailed, 1 warning, 2 errors in 0.60s ========= ``` @@ -59,7 +59,7 @@ ERROR tests/test_collector_error.py ============================= test session starts ============================== platform linux -- Python 3.8.20, pytest-8.3.4, pluggy-1.5.0 rootdir: /workspace/tligui_y/slic -plugins: allure-pytest-2.13.5, html-4.1.1, metadata-3.1.1, cov-5.0.0, json-report-1.5.0, md-report-0.6.2 +plugins: metadata-3.1.1, cov-5.0.0, allure-pytest-2.13.5, html-4.1.1, md-report-0.6.2, json-report-1.5.0 collected 50 items / 2 errors tests/test_io_utils.py ..FFFFFF.F @@ -134,7 +134,7 @@ E FileNotFoundError: [Errno 2] No such file or directory: 'nonexistent.fil functions/io_utils.py:2: FileNotFoundError ____________________________ test_permission_error _____________________________ -monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f978aceaca0> +monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f6f74aa6040> def test_permission_error(monkeypatch): # Patch open to raise PermissionError simulating access denial @@ -158,7 +158,7 @@ E PermissionError: Permission denied tests/test_io_utils.py:34: PermissionError _____________________________ test_mock_open_error _____________________________ -monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f978acf9d90> +monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f6f74c95280> def test_mock_open_error(monkeypatch): # Mock open() to raise IOError simulating read error @@ -175,7 +175,7 @@ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ return self._execute_mock_call(*args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = +self = args = ('file.txt', 'r'), kwargs = {}, effect = OSError('Mocked IOError') def _execute_mock_call(self, /, *args, **kwargs): @@ -201,7 +201,7 @@ E ValueError: I/O operation on closed file tests/test_io_utils.py:50: ValueError ________________________________ test_os_error _________________________________ -monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f978882f640> +monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f6f74ce8100> def test_os_error(monkeypatch): # Patch os.remove to raise OSError simulating filesystem error @@ -369,7 +369,7 @@ tests/test_math_utils.py:103: StopIteration The above exception was the direct cause of the following exception: cls = -func = . at 0x7f978ad1d550> +func = . at 0x7f6f74900550> when = 'call' reraise = (, ) @@ -525,7 +525,7 @@ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ name = 'non_existent_module_xyz' -import_ = +import_ = > ??? E ModuleNotFoundError: No module named 'non_existent_module_xyz' @@ -570,13 +570,10 @@ tests/test_string_utils.py::test_warning_emit warnings.warn("Test warning", UserWarning) -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html +- generated xml file: /workspace/tligui_y/slic/ci-reports/xml/pytest-report.xml - --------------------------------- JSON report ---------------------------------- report saved to: ci-reports/markdown/pytest-report.json - ----------- coverage: platform linux, python 3.8.20-final-0 ----------- -Coverage HTML written to dir ci-reports/coverage/ -Coverage XML written to file ci-reports/coverage/coverage.xml - +- Generated html report: file:///workspace/tligui_y/slic/ci-reports/html/pytest-report.html - =========================== short test summary info ============================ FAILED tests/test_io_utils.py::test_cause_io_error - OSError: Forced IO Error for testing FAILED tests/test_io_utils.py::test_file_not_found - FileNotFoundError: [Errno 2] No such file or directory: 'nonexistent.file' @@ -619,14 +616,14 @@ ERROR tests/test_collector_error.py !!!!!!!!!!!!!!!!!!!!!!!!!!!!!! KeyboardInterrupt !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! /workspace/tligui_y/slic/tests/test_string_utils.py:43: KeyboardInterrupt (to show a full traceback on KeyboardInterrupt use --full-trace) -======== 32 failed, 15 passed, 2 xfailed, 1 warning, 2 errors in 0.71s ========= +======== 32 failed, 15 passed, 2 xfailed, 1 warning, 2 errors in 0.60s ========= ``` --- # 🧪 Test Report -*Generated on 2025-07-15 12:16:34* +*Generated on 2025-07-15 12:23:32* ## 📋 Summary - **Passed**: `16` @@ -634,7 +631,7 @@ ERROR tests/test_collector_error.py - **Xfailed**: `2` - **Total**: `50` - **Collected**: `50` -- **Total Duration**: `0.715`s +- **Total Duration**: `0.595`s ## 🔎 Tests
@@ -654,7 +651,7 @@ ERROR tests/test_collector_error.py ✅ #1 - **Status:** ✅ `passed` -- **Duration:** `0.000439` s +- **Duration:** `0.000294` s ### 🔧 Setup Phase @@ -663,7 +660,7 @@ ERROR tests/test_collector_error.py 📌 Duration ``` -`0.003133182995952666` +`0.002734813024289906` ``` @@ -688,7 +685,7 @@ ERROR tests/test_collector_error.py 📌 Duration ``` -`0.00043904699850827456` +`0.0002937199315056205` ``` @@ -713,7 +710,7 @@ ERROR tests/test_collector_error.py 📌 Duration ``` -`0.00025305093731731176` +`0.00022447900846600533` ``` @@ -747,7 +744,7 @@ ERROR tests/test_collector_error.py ✅ #2 - **Status:** ✅ `passed` -- **Duration:** `0.000281` s +- **Duration:** `0.000220` s ### 🔧 Setup Phase @@ -756,7 +753,7 @@ ERROR tests/test_collector_error.py 📌 Duration ``` -`0.0004786719800904393` +`0.0003745279973372817` ``` @@ -781,7 +778,7 @@ ERROR tests/test_collector_error.py 📌 Duration ``` -`0.0002809460274875164` +`0.00021980004385113716` ``` @@ -806,7 +803,7 @@ ERROR tests/test_collector_error.py 📌 Duration ``` -`0.00016897509340196848` +`0.0001091070007532835` ``` @@ -840,7 +837,7 @@ ERROR tests/test_collector_error.py ✅ #9 - **Status:** ✅ `passed` -- **Duration:** `0.000912` s +- **Duration:** `0.001158` s ### 🔧 Setup Phase @@ -849,7 +846,7 @@ ERROR tests/test_collector_error.py 📌 Duration ``` -`0.0006020460277795792` +`0.000562045956030488` ``` @@ -874,7 +871,7 @@ ERROR tests/test_collector_error.py 📌 Duration ``` -`0.0009123159106820822` +`0.0011576709803193808` ``` @@ -899,7 +896,7 @@ ERROR tests/test_collector_error.py 📌 Duration ``` -`0.000153091037645936` +`0.00010271603241562843` ``` @@ -941,7 +938,7 @@ ERROR tests/test_collector_error.py ✅ #13 parameters: [2-2-4] - **Status:** ✅ `passed` -- **Duration:** `0.000153` s +- **Duration:** `0.000089` s - **Parameters:** `2-2-4` ### 🔧 Setup Phase @@ -951,7 +948,7 @@ ERROR tests/test_collector_error.py 📌 Duration ``` -`0.0002777109621092677` +`0.00020883395336568356` ``` @@ -976,7 +973,7 @@ ERROR tests/test_collector_error.py 📌 Duration ``` -`0.00015267706476151943` +`8.931499905884266e-05` ``` @@ -1001,7 +998,7 @@ ERROR tests/test_collector_error.py 📌 Duration ``` -`0.00013826193753629923` +`9.494507685303688e-05` ``` @@ -1027,7 +1024,7 @@ ERROR tests/test_collector_error.py ✅ #14 parameters: [1-5-6] - **Status:** ✅ `passed` -- **Duration:** `0.000140` s +- **Duration:** `0.000079` s - **Parameters:** `1-5-6` ### 🔧 Setup Phase @@ -1037,7 +1034,7 @@ ERROR tests/test_collector_error.py 📌 Duration ``` -`0.00026053900364786386` +`0.00017024297267198563` ``` @@ -1062,7 +1059,7 @@ ERROR tests/test_collector_error.py 📌 Duration ``` -`0.00013971806038171053` +`7.912202272564173e-05` ``` @@ -1087,7 +1084,7 @@ ERROR tests/test_collector_error.py 📌 Duration ``` -`0.00014364602975547314` +`8.922198321670294e-05` ``` @@ -1113,7 +1110,7 @@ ERROR tests/test_collector_error.py ✅ #15 parameters: [3-4-7] - **Status:** ✅ `passed` -- **Duration:** `0.000127` s +- **Duration:** `0.000077` s - **Parameters:** `3-4-7` ### 🔧 Setup Phase @@ -1123,7 +1120,7 @@ ERROR tests/test_collector_error.py 📌 Duration ``` -`0.00023979588877409697` +`0.00015933008398860693` ``` @@ -1148,7 +1145,7 @@ ERROR tests/test_collector_error.py 📌 Duration ``` -`0.00012661004438996315` +`7.655494846403599e-05` ``` @@ -1173,7 +1170,7 @@ ERROR tests/test_collector_error.py 📌 Duration ``` -`0.00014709902461618185` +`8.586002513766289e-05` ``` @@ -1199,7 +1196,7 @@ ERROR tests/test_collector_error.py ✅ #16 parameters: [3-5-8] - **Status:** ✅ `passed` -- **Duration:** `0.000136` s +- **Duration:** `0.000084` s - **Parameters:** `3-5-8` ### 🔧 Setup Phase @@ -1209,7 +1206,7 @@ ERROR tests/test_collector_error.py 📌 Duration ``` -`0.000243876944296062` +`0.00018133106641471386` ``` @@ -1234,7 +1231,7 @@ ERROR tests/test_collector_error.py 📌 Duration ``` -`0.00013631803449243307` +`8.358992636203766e-05` ``` @@ -1259,7 +1256,7 @@ ERROR tests/test_collector_error.py 📌 Duration ``` -`0.00013911398127675056` +`8.95840348675847e-05` ``` @@ -1285,7 +1282,7 @@ ERROR tests/test_collector_error.py ✅ #17 parameters: [3-6-9] - **Status:** ✅ `passed` -- **Duration:** `0.000123` s +- **Duration:** `0.000076` s - **Parameters:** `3-6-9` ### 🔧 Setup Phase @@ -1295,7 +1292,7 @@ ERROR tests/test_collector_error.py 📌 Duration ``` -`0.00023376790340989828` +`0.00015835801605135202` ``` @@ -1320,7 +1317,7 @@ ERROR tests/test_collector_error.py 📌 Duration ``` -`0.00012343295384198427` +`7.560395170003176e-05` ``` @@ -1345,7 +1342,7 @@ ERROR tests/test_collector_error.py 📌 Duration ``` -`0.00013270298950374126` +`8.96380515769124e-05` ``` @@ -1379,7 +1376,7 @@ ERROR tests/test_collector_error.py ✅ #18 parameters: [a=2,b=2,expected=4] - **Status:** ✅ `passed` -- **Duration:** `0.000127` s +- **Duration:** `0.000076` s - **Parameters:** `a=2,b=2,expected=4` ### 🔧 Setup Phase @@ -1389,7 +1386,7 @@ ERROR tests/test_collector_error.py 📌 Duration ``` -`0.00024139299057424068` +`0.00016348902136087418` ``` @@ -1414,7 +1411,7 @@ ERROR tests/test_collector_error.py 📌 Duration ``` -`0.00012721202801913023` +`7.618707604706287e-05` ``` @@ -1439,7 +1436,7 @@ ERROR tests/test_collector_error.py 📌 Duration ``` -`0.00013067899271845818` +`8.494406938552856e-05` ``` @@ -1465,7 +1462,7 @@ ERROR tests/test_collector_error.py ✅ #19 parameters: [a=1,b=5,expected=6] - **Status:** ✅ `passed` -- **Duration:** `0.000135` s +- **Duration:** `0.000088` s - **Parameters:** `a=1,b=5,expected=6` ### 🔧 Setup Phase @@ -1475,7 +1472,7 @@ ERROR tests/test_collector_error.py 📌 Duration ``` -`0.00024358299560844898` +`0.00016892701387405396` ``` @@ -1500,7 +1497,7 @@ ERROR tests/test_collector_error.py 📌 Duration ``` -`0.00013528496492654085` +`8.782302029430866e-05` ``` @@ -1525,7 +1522,7 @@ ERROR tests/test_collector_error.py 📌 Duration ``` -`0.00013015803415328264` +`9.00110462680459e-05` ``` @@ -1551,7 +1548,7 @@ ERROR tests/test_collector_error.py ✅ #20 parameters: [a=3,b=4,expected=7] - **Status:** ✅ `passed` -- **Duration:** `0.000123` s +- **Duration:** `0.000075` s - **Parameters:** `a=3,b=4,expected=7` ### 🔧 Setup Phase @@ -1561,7 +1558,7 @@ ERROR tests/test_collector_error.py 📌 Duration ``` -`0.0002329519484192133` +`0.00015901797451078892` ``` @@ -1586,7 +1583,7 @@ ERROR tests/test_collector_error.py 📌 Duration ``` -`0.0001231119967997074` +`7.545098196715117e-05` ``` @@ -1611,7 +1608,7 @@ ERROR tests/test_collector_error.py 📌 Duration ``` -`0.00013015500735491514` +`8.712406270205975e-05` ``` @@ -1653,7 +1650,7 @@ ERROR tests/test_collector_error.py ✅ #42 - **Status:** ✅ `passed` -- **Duration:** `0.000144` s +- **Duration:** `0.000093` s ### 🔧 Setup Phase @@ -1662,7 +1659,7 @@ ERROR tests/test_collector_error.py 📌 Duration ``` -`0.0001282630255445838` +`0.00010616099461913109` ``` @@ -1687,7 +1684,7 @@ ERROR tests/test_collector_error.py 📌 Duration ``` -`0.00014387897681444883` +`9.323796257376671e-05` ``` @@ -1712,7 +1709,7 @@ ERROR tests/test_collector_error.py 📌 Duration ``` -`0.00010642397683113813` +`6.953394040465355e-05` ``` @@ -1746,7 +1743,7 @@ ERROR tests/test_collector_error.py ✅ #44 - **Status:** ✅ `passed` -- **Duration:** `0.000140` s +- **Duration:** `0.000087` s ### 🔧 Setup Phase @@ -1755,7 +1752,7 @@ ERROR tests/test_collector_error.py 📌 Duration ``` -`0.00012288393918424845` +`8.668401278555393e-05` ``` @@ -1780,7 +1777,7 @@ ERROR tests/test_collector_error.py 📌 Duration ``` -`0.00014027801807969809` +`8.700799662619829e-05` ``` @@ -1805,7 +1802,7 @@ ERROR tests/test_collector_error.py 📌 Duration ``` -`0.00010119297076016665` +`6.783695425838232e-05` ``` @@ -1839,7 +1836,7 @@ ERROR tests/test_collector_error.py ✅ #45 - **Status:** ✅ `passed` -- **Duration:** `0.000143` s +- **Duration:** `0.000096` s ### 🔧 Setup Phase @@ -1848,7 +1845,7 @@ ERROR tests/test_collector_error.py 📌 Duration ``` -`0.00010759301949292421` +`7.479696068912745e-05` ``` @@ -1873,7 +1870,7 @@ ERROR tests/test_collector_error.py 📌 Duration ``` -`0.00014339201152324677` +`9.630701970309019e-05` ``` @@ -1898,7 +1895,7 @@ ERROR tests/test_collector_error.py 📌 Duration ``` -`9.681505616754293e-05` +`6.600096821784973e-05` ``` @@ -1932,7 +1929,7 @@ ERROR tests/test_collector_error.py ✅ #48 - **Status:** ✅ `passed` -- **Duration:** `0.000146` s +- **Duration:** `0.000089` s ### 🔧 Setup Phase @@ -1941,7 +1938,7 @@ ERROR tests/test_collector_error.py 📌 Duration ``` -`0.00011911103501915932` +`8.025695569813251e-05` ``` @@ -1966,7 +1963,7 @@ ERROR tests/test_collector_error.py 📌 Duration ``` -`0.00014587899204343557` +`8.935399819165468e-05` ``` @@ -1991,7 +1988,7 @@ ERROR tests/test_collector_error.py 📌 Duration ``` -`0.00011005101259797812` +`6.887107156217098e-05` ``` @@ -2034,7 +2031,7 @@ ERROR tests/test_collector_error.py 📌 Duration ``` -`0.00011697795707732439` +`8.325593080371618e-05` ``` @@ -2084,7 +2081,7 @@ ERROR tests/test_collector_error.py ❌ #3 - **Status:** ❌ `failed` -- **Duration:** `0.000155` s +- **Duration:** `0.000109` s ### 🔧 Setup Phase @@ -2093,7 +2090,7 @@ ERROR tests/test_collector_error.py 📌 Duration ``` -`0.00012298300862312317` +`7.979990914463997e-05` ``` @@ -2118,7 +2115,7 @@ ERROR tests/test_collector_error.py 📌 Duration ``` -`0.00015497999265789986` +`0.00010895193554461002` ``` @@ -2187,7 +2184,7 @@ functions/io_utils.py:10: OSError` 📌 Duration ``` -`0.00014413404278457165` +`0.00010409008245915174` ``` @@ -2221,7 +2218,7 @@ functions/io_utils.py:10: OSError` ❌ #4 - **Status:** ❌ `failed` -- **Duration:** `0.000171` s +- **Duration:** `0.000125` s ### 🔧 Setup Phase @@ -2230,7 +2227,7 @@ functions/io_utils.py:10: OSError` 📌 Duration ``` -`0.00011844094842672348` +`9.023898746818304e-05` ``` @@ -2255,7 +2252,7 @@ functions/io_utils.py:10: OSError` 📌 Duration ``` -`0.00017056299839168787` +`0.00012498197611421347` ``` @@ -2326,7 +2323,7 @@ functions/io_utils.py:2: FileNotFoundError` 📌 Duration ``` -`0.0001426569651812315` +`9.786093141883612e-05` ``` @@ -2360,7 +2357,7 @@ functions/io_utils.py:2: FileNotFoundError` ❌ #5 - **Status:** ❌ `failed` -- **Duration:** `0.000181` s +- **Duration:** `0.000123` s ### 🔧 Setup Phase @@ -2369,7 +2366,7 @@ functions/io_utils.py:2: FileNotFoundError` 📌 Duration ``` -`0.00019466504454612732` +`0.0001523100072517991` ``` @@ -2394,7 +2391,7 @@ functions/io_utils.py:2: FileNotFoundError` 📌 Duration ``` -`0.00018086202908307314` +`0.00012320501264184713` ``` @@ -2438,7 +2435,7 @@ functions/io_utils.py:2: FileNotFoundError` 📌 Longrepr ``` -`monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f978aceaca0> +`monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f6f74aa6040> def test_permission_error(monkeypatch): # Patch open to raise PermissionError simulating access denial @@ -2473,7 +2470,7 @@ tests/test_io_utils.py:34: PermissionError` 📌 Duration ``` -`0.00016490998677909374` +`0.00013042998034507036` ``` @@ -2507,7 +2504,7 @@ tests/test_io_utils.py:34: PermissionError` ❌ #6 - **Status:** ❌ `failed` -- **Duration:** `0.003165` s +- **Duration:** `0.002313` s ### 🔧 Setup Phase @@ -2516,7 +2513,7 @@ tests/test_io_utils.py:34: PermissionError` 📌 Duration ``` -`0.00018448196351528168` +`0.0001393168931826949` ``` @@ -2541,7 +2538,7 @@ tests/test_io_utils.py:34: PermissionError` 📌 Duration ``` -`0.003165088011883199` +`0.0023133179638534784` ``` @@ -2585,7 +2582,7 @@ tests/test_io_utils.py:34: PermissionError` 📌 Longrepr ``` -`monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f978acf9d90> +`monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f6f74c95280> def test_mock_open_error(monkeypatch): # Mock open() to raise IOError simulating read error @@ -2602,7 +2599,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): @@ -2629,7 +2626,7 @@ E OSError: Mocked IOError 📌 Duration ``` -`0.00029821996577084064` +`0.00024323002435266972` ``` @@ -2663,7 +2660,7 @@ E OSError: Mocked IOError ❌ #7 - **Status:** ❌ `failed` -- **Duration:** `0.000185` s +- **Duration:** `0.000134` s ### 🔧 Setup Phase @@ -2672,7 +2669,7 @@ E OSError: Mocked IOError 📌 Duration ``` -`0.00014585303142666817` +`0.00011162797454744577` ``` @@ -2697,7 +2694,7 @@ E OSError: Mocked IOError 📌 Duration ``` -`0.00018451304640620947` +`0.00013384700287133455` ``` @@ -2762,7 +2759,7 @@ tests/test_io_utils.py:50: ValueError` 📌 Duration ``` -`0.00017527001909911633` +`0.0001293829409405589` ``` @@ -2796,7 +2793,7 @@ tests/test_io_utils.py:50: ValueError` ❌ #8 - **Status:** ❌ `failed` -- **Duration:** `0.000181` s +- **Duration:** `0.000130` s ### 🔧 Setup Phase @@ -2805,7 +2802,7 @@ tests/test_io_utils.py:50: ValueError` 📌 Duration ``` -`0.00024158996529877186` +`0.00018445902969688177` ``` @@ -2830,7 +2827,7 @@ tests/test_io_utils.py:50: ValueError` 📌 Duration ``` -`0.00018089893274009228` +`0.0001295770052820444` ``` @@ -2874,7 +2871,7 @@ tests/test_io_utils.py:50: ValueError` 📌 Longrepr ``` -`monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f978882f640> +`monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f6f74ce8100> def test_os_error(monkeypatch): # Patch os.remove to raise OSError simulating filesystem error @@ -2906,7 +2903,7 @@ tests/test_io_utils.py:55: OSError` 📌 Duration ``` -`0.00017721205949783325` +`0.0001202459679916501` ``` @@ -2940,7 +2937,7 @@ tests/test_io_utils.py:55: OSError` ❌ #10 - **Status:** ❌ `failed` -- **Duration:** `0.000166` s +- **Duration:** `0.000118` s ### 🔧 Setup Phase @@ -2949,7 +2946,7 @@ tests/test_io_utils.py:55: OSError` 📌 Duration ``` -`0.00012071395758539438` +`8.047407027333975e-05` ``` @@ -2974,7 +2971,7 @@ tests/test_io_utils.py:55: OSError` 📌 Duration ``` -`0.00016599195078015327` +`0.00011819694191217422` ``` @@ -3037,7 +3034,7 @@ tests/test_io_utils.py:69: FileNotFoundError` 📌 Duration ``` -`0.0001403900096192956` +`0.00010203104466199875` ``` @@ -3079,7 +3076,7 @@ tests/test_io_utils.py:69: FileNotFoundError` ❌ #11 - **Status:** ❌ `failed` -- **Duration:** `0.000156` s +- **Duration:** `0.000103` s ### 🔧 Setup Phase @@ -3088,7 +3085,7 @@ tests/test_io_utils.py:69: FileNotFoundError` 📌 Duration ``` -`0.00013012706767767668` +`9.245600085705519e-05` ``` @@ -3113,7 +3110,7 @@ tests/test_io_utils.py:69: FileNotFoundError` 📌 Duration ``` -`0.00015646906103938818` +`0.0001027729595080018` ``` @@ -3176,7 +3173,7 @@ tests/test_math_utils.py:16: NameError` 📌 Duration ``` -`0.00015052093658596277` +`9.87849198281765e-05` ``` @@ -3210,7 +3207,7 @@ tests/test_math_utils.py:16: NameError` ❌ #12 - **Status:** ❌ `failed` -- **Duration:** `0.000150` s +- **Duration:** `0.000101` s ### 🔧 Setup Phase @@ -3219,7 +3216,7 @@ tests/test_math_utils.py:16: NameError` 📌 Duration ``` -`0.00012401700951159` +`8.501193951815367e-05` ``` @@ -3244,7 +3241,7 @@ tests/test_math_utils.py:16: NameError` 📌 Duration ``` -`0.00015021697618067265` +`0.00010099099017679691` ``` @@ -3307,7 +3304,7 @@ tests/test_math_utils.py:20: AttributeError` 📌 Duration ``` -`0.00013656704686582088` +`9.98079776763916e-05` ``` @@ -3341,7 +3338,7 @@ tests/test_math_utils.py:20: AttributeError` ❌ #21 - **Status:** ❌ `failed` -- **Duration:** `0.000441` s +- **Duration:** `0.000231` s ### 🔧 Setup Phase @@ -3350,7 +3347,7 @@ tests/test_math_utils.py:20: AttributeError` 📌 Duration ``` -`0.00010537204798310995` +`6.8221939727664e-05` ``` @@ -3375,7 +3372,7 @@ tests/test_math_utils.py:20: AttributeError` 📌 Duration ``` -`0.0004405659856274724` +`0.00023140606936067343` ``` @@ -3440,7 +3437,7 @@ tests/test_math_utils.py:48: AssertionError` 📌 Duration ``` -`0.00014023901894688606` +`9.875593241304159e-05` ``` @@ -3474,7 +3471,7 @@ tests/test_math_utils.py:48: AssertionError` ❌ #22 - **Status:** ❌ `failed` -- **Duration:** `0.000156` s +- **Duration:** `0.000100` s ### 🔧 Setup Phase @@ -3483,7 +3480,7 @@ tests/test_math_utils.py:48: AssertionError` 📌 Duration ``` -`0.00012081291060894728` +`8.438399527221918e-05` ``` @@ -3508,7 +3505,7 @@ tests/test_math_utils.py:48: AssertionError` 📌 Duration ``` -`0.00015578488819301128` +`0.00010012893471866846` ``` @@ -3579,7 +3576,7 @@ functions/math_utils.py:5: ZeroDivisionError` 📌 Duration ``` -`0.00014144799206405878` +`0.00010039296466857195` ``` @@ -3613,7 +3610,7 @@ functions/math_utils.py:5: ZeroDivisionError` ❌ #24 - **Status:** ❌ `failed` -- **Duration:** `0.000154` s +- **Duration:** `0.000099` s ### 🔧 Setup Phase @@ -3622,7 +3619,7 @@ functions/math_utils.py:5: ZeroDivisionError` 📌 Duration ``` -`0.00011627795174717903` +`8.740008343011141e-05` ``` @@ -3647,7 +3644,7 @@ functions/math_utils.py:5: ZeroDivisionError` 📌 Duration ``` -`0.00015445600729435682` +`9.921600576490164e-05` ``` @@ -3710,7 +3707,7 @@ tests/test_math_utils.py:61: RuntimeError` 📌 Duration ``` -`0.00014758692122995853` +`0.00010332802776247263` ``` @@ -3744,7 +3741,7 @@ tests/test_math_utils.py:61: RuntimeError` ❌ #25 - **Status:** ❌ `failed` -- **Duration:** `0.000151` s +- **Duration:** `0.000100` s ### 🔧 Setup Phase @@ -3753,7 +3750,7 @@ tests/test_math_utils.py:61: RuntimeError` 📌 Duration ``` -`0.00021442293655127287` +`8.500798139721155e-05` ``` @@ -3778,7 +3775,7 @@ tests/test_math_utils.py:61: RuntimeError` 📌 Duration ``` -`0.00015053106471896172` +`9.993393905460835e-05` ``` @@ -3841,7 +3838,7 @@ tests/test_math_utils.py:65: MemoryError` 📌 Duration ``` -`0.00014055101200938225` +`9.968597441911697e-05` ``` @@ -3875,7 +3872,7 @@ tests/test_math_utils.py:65: MemoryError` ❌ #26 - **Status:** ❌ `failed` -- **Duration:** `0.000157` s +- **Duration:** `0.000113` s ### 🔧 Setup Phase @@ -3884,7 +3881,7 @@ tests/test_math_utils.py:65: MemoryError` 📌 Duration ``` -`0.00011746201198548079` +`8.492800407111645e-05` ``` @@ -3909,7 +3906,7 @@ tests/test_math_utils.py:65: MemoryError` 📌 Duration ``` -`0.00015711202286183834` +`0.00011340191122144461` ``` @@ -3972,7 +3969,7 @@ tests/test_math_utils.py:69: TimeoutError` 📌 Duration ``` -`0.000137769035063684` +`0.00010036001913249493` ``` @@ -4006,7 +4003,7 @@ tests/test_math_utils.py:69: TimeoutError` ❌ #27 - **Status:** ❌ `failed` -- **Duration:** `0.000831` s +- **Duration:** `0.000625` s ### 🔧 Setup Phase @@ -4015,7 +4012,7 @@ tests/test_math_utils.py:69: TimeoutError` 📌 Duration ``` -`0.0001216839300468564` +`8.490495383739471e-05` ``` @@ -4040,7 +4037,7 @@ tests/test_math_utils.py:69: TimeoutError` 📌 Duration ``` -`0.0008314520819112659` +`0.0006251679733395576` ``` @@ -4111,7 +4108,7 @@ E RecursionError: maximum recursion depth exceeded 📌 Duration ``` -`0.00014773907605558634` +`0.00011509598698467016` ``` @@ -4145,7 +4142,7 @@ E RecursionError: maximum recursion depth exceeded ❌ #28 - **Status:** ❌ `failed` -- **Duration:** `0.000148` s +- **Duration:** `0.000101` s ### 🔧 Setup Phase @@ -4154,7 +4151,7 @@ E RecursionError: maximum recursion depth exceeded 📌 Duration ``` -`0.00012793298810720444` +`8.820195216685534e-05` ``` @@ -4179,7 +4176,7 @@ E RecursionError: maximum recursion depth exceeded 📌 Duration ``` -`0.00014822394587099552` +`0.0001005029771476984` ``` @@ -4242,7 +4239,7 @@ tests/test_math_utils.py:79: FloatingPointError` 📌 Duration ``` -`0.00013804505579173565` +`9.824300650507212e-05` ``` @@ -4276,7 +4273,7 @@ tests/test_math_utils.py:79: FloatingPointError` ❌ #29 - **Status:** ❌ `failed` -- **Duration:** `0.000166` s +- **Duration:** `0.000117` s ### 🔧 Setup Phase @@ -4285,7 +4282,7 @@ tests/test_math_utils.py:79: FloatingPointError` 📌 Duration ``` -`0.00012145598884671926` +`8.452404290437698e-05` ``` @@ -4310,7 +4307,7 @@ tests/test_math_utils.py:79: FloatingPointError` 📌 Duration ``` -`0.00016597798094153404` +`0.00011720799375325441` ``` @@ -4373,7 +4370,7 @@ tests/test_math_utils.py:83: OverflowError` 📌 Duration ``` -`0.00014972395729273558` +`0.00010688405018299818` ``` @@ -4407,7 +4404,7 @@ tests/test_math_utils.py:83: OverflowError` ❌ #30 - **Status:** ❌ `failed` -- **Duration:** `0.000151` s +- **Duration:** `0.000104` s ### 🔧 Setup Phase @@ -4416,7 +4413,7 @@ tests/test_math_utils.py:83: OverflowError` 📌 Duration ``` -`0.00011916190851479769` +`8.594198152422905e-05` ``` @@ -4441,7 +4438,7 @@ tests/test_math_utils.py:83: OverflowError` 📌 Duration ``` -`0.00015149300452321768` +`0.00010436400771141052` ``` @@ -4504,7 +4501,7 @@ tests/test_math_utils.py:87: ValueError` 📌 Duration ``` -`0.00013654702343046665` +`9.64250648394227e-05` ``` @@ -4538,7 +4535,7 @@ tests/test_math_utils.py:87: ValueError` ❌ #31 - **Status:** ❌ `failed` -- **Duration:** `0.000149` s +- **Duration:** `0.000099` s ### 🔧 Setup Phase @@ -4547,7 +4544,7 @@ tests/test_math_utils.py:87: ValueError` 📌 Duration ``` -`0.00013455504085868597` +`8.17000400274992e-05` ``` @@ -4572,7 +4569,7 @@ tests/test_math_utils.py:87: ValueError` 📌 Duration ``` -`0.00014915503561496735` +`9.923207107931376e-05` ``` @@ -4635,7 +4632,7 @@ tests/test_math_utils.py:91: TypeError` 📌 Duration ``` -`0.0001376420259475708` +`0.00011108396574854851` ``` @@ -4669,7 +4666,7 @@ tests/test_math_utils.py:91: TypeError` ❌ #32 - **Status:** ❌ `failed` -- **Duration:** `0.000158` s +- **Duration:** `0.000097` s ### 🔧 Setup Phase @@ -4678,7 +4675,7 @@ tests/test_math_utils.py:91: TypeError` 📌 Duration ``` -`0.00012270989827811718` +`8.333101868629456e-05` ``` @@ -4703,7 +4700,7 @@ tests/test_math_utils.py:91: TypeError` 📌 Duration ``` -`0.00015768304001539946` +`9.730004239827394e-05` ``` @@ -4766,7 +4763,7 @@ tests/test_math_utils.py:95: Exception` 📌 Duration ``` -`0.00014791404828429222` +`9.557697921991348e-05` ``` @@ -4800,7 +4797,7 @@ tests/test_math_utils.py:95: Exception` ❌ #33 - **Status:** ❌ `failed` -- **Duration:** `0.000146` s +- **Duration:** `0.000099` s ### 🔧 Setup Phase @@ -4809,7 +4806,7 @@ tests/test_math_utils.py:95: Exception` 📌 Duration ``` -`0.00012002990115433931` +`8.298410102725029e-05` ``` @@ -4834,7 +4831,7 @@ tests/test_math_utils.py:95: Exception` 📌 Duration ``` -`0.00014586793258786201` +`9.851600043475628e-05` ``` @@ -4897,7 +4894,7 @@ tests/test_math_utils.py:99: CustomError` 📌 Duration ``` -`0.00014291296247392893` +`9.784393478184938e-05` ``` @@ -4931,7 +4928,7 @@ tests/test_math_utils.py:99: CustomError` ❌ #34 - **Status:** ❌ `failed` -- **Duration:** `0.000148` s +- **Duration:** `0.000110` s ### 🔧 Setup Phase @@ -4940,7 +4937,7 @@ tests/test_math_utils.py:99: CustomError` 📌 Duration ``` -`0.00012170604895800352` +`8.372298907488585e-05` ``` @@ -4965,7 +4962,7 @@ tests/test_math_utils.py:99: CustomError` 📌 Duration ``` -`0.0001481559593230486` +`0.0001104559050872922` ``` @@ -5019,7 +5016,7 @@ tests/test_math_utils.py:103: StopIteration The above exception was the direct cause of the following exception: cls = -func = . at 0x7f978ad1d550> +func = . at 0x7f6f74900550> when = 'call' reraise = (, ) @@ -5092,7 +5089,7 @@ E RuntimeError: generator raised StopIteration 📌 Duration ``` -`0.00025452999398112297` +`0.00019826192874461412` ``` @@ -5126,7 +5123,7 @@ E RuntimeError: generator raised StopIteration ❌ #35 - **Status:** ❌ `failed` -- **Duration:** `0.000176` s +- **Duration:** `0.000118` s ### 🔧 Setup Phase @@ -5135,7 +5132,7 @@ E RuntimeError: generator raised StopIteration 📌 Duration ``` -`0.00017640902660787106` +`0.00012203503865748644` ``` @@ -5160,7 +5157,7 @@ E RuntimeError: generator raised StopIteration 📌 Duration ``` -`0.00017550692427903414` +`0.00011822907254099846` ``` @@ -5223,7 +5220,7 @@ tests/test_math_utils.py:107: GeneratorExit` 📌 Duration ``` -`0.00018231698777526617` +`0.00011485104914754629` ``` @@ -5257,7 +5254,7 @@ tests/test_math_utils.py:107: GeneratorExit` ❌ #36 - **Status:** ❌ `failed` -- **Duration:** `0.000166` s +- **Duration:** `0.000133` s ### 🔧 Setup Phase @@ -5266,7 +5263,7 @@ tests/test_math_utils.py:107: GeneratorExit` 📌 Duration ``` -`0.00013664609286934137` +`8.859392255544662e-05` ``` @@ -5291,7 +5288,7 @@ tests/test_math_utils.py:107: GeneratorExit` 📌 Duration ``` -`0.0001661520218476653` +`0.0001329650403931737` ``` @@ -5355,7 +5352,7 @@ tests/test_math_utils.py:112: RecursionError` 📌 Duration ``` -`0.0001537760253995657` +`0.0001044620294123888` ``` @@ -5389,7 +5386,7 @@ tests/test_math_utils.py:112: RecursionError` ❌ #37 - **Status:** ❌ `failed` -- **Duration:** `0.000177` s +- **Duration:** `0.000107` s ### 🔧 Setup Phase @@ -5398,7 +5395,7 @@ tests/test_math_utils.py:112: RecursionError` 📌 Duration ``` -`0.00012948806397616863` +`8.323893416672945e-05` ``` @@ -5423,7 +5420,7 @@ tests/test_math_utils.py:112: RecursionError` 📌 Duration ``` -`0.00017666502390056849` +`0.00010689906775951385` ``` @@ -5492,7 +5489,7 @@ tests/test_math_utils.py:122: SyntaxError` 📌 Duration ``` -`0.00015017902478575706` +`0.00010036409366875887` ``` @@ -5526,7 +5523,7 @@ tests/test_math_utils.py:122: SyntaxError` ❌ #38 - **Status:** ❌ `failed` -- **Duration:** `0.000159` s +- **Duration:** `0.000097` s ### 🔧 Setup Phase @@ -5535,7 +5532,7 @@ tests/test_math_utils.py:122: SyntaxError` 📌 Duration ``` -`0.0001259839627891779` +`8.714897558093071e-05` ``` @@ -5560,7 +5557,7 @@ tests/test_math_utils.py:122: SyntaxError` 📌 Duration ``` -`0.00015900505241006613` +`9.661808144301176e-05` ``` @@ -5623,7 +5620,7 @@ tests/test_math_utils.py:126: SystemExit` 📌 Duration ``` -`0.0001555809285491705` +`9.726302232593298e-05` ``` @@ -5657,7 +5654,7 @@ tests/test_math_utils.py:126: SystemExit` ❌ #39 - **Status:** ❌ `failed` -- **Duration:** `0.000161` s +- **Duration:** `0.000101` s ### 🔧 Setup Phase @@ -5666,7 +5663,7 @@ tests/test_math_utils.py:126: SystemExit` 📌 Duration ``` -`0.00012197706382721663` +`8.235592395067215e-05` ``` @@ -5691,7 +5688,7 @@ tests/test_math_utils.py:126: SystemExit` 📌 Duration ``` -`0.00016138888895511627` +`0.00010061997454613447` ``` @@ -5764,7 +5761,7 @@ tests/test_math_utils.py:131: TypeError` 📌 Duration ``` -`0.00015403504949063063` +`9.920704178512096e-05` ``` @@ -5798,7 +5795,7 @@ tests/test_math_utils.py:131: TypeError` ❌ #40 - **Status:** ❌ `failed` -- **Duration:** `0.000162` s +- **Duration:** `0.000110` s ### 🔧 Setup Phase @@ -5807,7 +5804,7 @@ tests/test_math_utils.py:131: TypeError` 📌 Duration ``` -`0.0001210939371958375` +`8.177000563591719e-05` ``` @@ -5832,7 +5829,7 @@ tests/test_math_utils.py:131: TypeError` 📌 Duration ``` -`0.00016185804270207882` +`0.00010956800542771816` ``` @@ -5912,7 +5909,7 @@ tests/test_math_utils.py:139: ImportError` 📌 Duration ``` -`0.0001412510173395276` +`0.00010040099732577801` ``` @@ -5946,7 +5943,7 @@ tests/test_math_utils.py:139: ImportError` ❌ #41 - **Status:** ❌ `failed` -- **Duration:** `0.000464` s +- **Duration:** `0.000359` s ### 🔧 Setup Phase @@ -5955,7 +5952,7 @@ tests/test_math_utils.py:139: ImportError` 📌 Duration ``` -`0.00011916400399059057` +`8.933199569582939e-05` ``` @@ -5980,7 +5977,7 @@ tests/test_math_utils.py:139: ImportError` 📌 Duration ``` -`0.0004636560333892703` +`0.00035946001298725605` ``` @@ -6039,7 +6036,7 @@ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ name = 'non_existent_module_xyz' -import_ = +import_ = > ??? E ModuleNotFoundError: No module named 'non_existent_module_xyz' @@ -6058,7 +6055,7 @@ E ModuleNotFoundError: No module named 'non_existent_module_xyz' 📌 Duration ``` -`0.00014049001038074493` +`0.00012242794036865234` ``` @@ -6100,7 +6097,7 @@ E ModuleNotFoundError: No module named 'non_existent_module_xyz' ❌ #43 - **Status:** ❌ `failed` -- **Duration:** `0.000149` s +- **Duration:** `0.000093` s ### 🔧 Setup Phase @@ -6109,7 +6106,7 @@ E ModuleNotFoundError: No module named 'non_existent_module_xyz' 📌 Duration ``` -`0.00011700799223035574` +`7.228192407637835e-05` ``` @@ -6134,7 +6131,7 @@ E ModuleNotFoundError: No module named 'non_existent_module_xyz' 📌 Duration ``` -`0.00014935503713786602` +`9.292294271290302e-05` ``` @@ -6206,7 +6203,7 @@ functions/string_utils.py:3: TypeError` 📌 Duration ``` -`0.00013819802552461624` +`0.00011440599337220192` ``` @@ -6240,7 +6237,7 @@ functions/string_utils.py:3: TypeError` ❌ #46 - **Status:** ❌ `failed` -- **Duration:** `0.000143` s +- **Duration:** `0.000096` s ### 🔧 Setup Phase @@ -6249,7 +6246,7 @@ functions/string_utils.py:3: TypeError` 📌 Duration ``` -`0.00011261401232331991` +`7.073499727994204e-05` ``` @@ -6274,7 +6271,7 @@ functions/string_utils.py:3: TypeError` 📌 Duration ``` -`0.00014314393047243357` +`9.585998486727476e-05` ``` @@ -6337,7 +6334,7 @@ tests/test_string_utils.py:26: UnicodeDecodeError` 📌 Duration ``` -`0.0001376579748466611` +`0.00011261296458542347` ``` @@ -6371,7 +6368,7 @@ tests/test_string_utils.py:26: UnicodeDecodeError` ❌ #47 - **Status:** ❌ `failed` -- **Duration:** `0.000153` s +- **Duration:** `0.000101` s ### 🔧 Setup Phase @@ -6380,7 +6377,7 @@ tests/test_string_utils.py:26: UnicodeDecodeError` 📌 Duration ``` -`0.00011564092710614204` +`8.472101762890816e-05` ``` @@ -6405,7 +6402,7 @@ tests/test_string_utils.py:26: UnicodeDecodeError` 📌 Duration ``` -`0.00015264598187059164` +`0.00010093394666910172` ``` @@ -6468,7 +6465,7 @@ tests/test_string_utils.py:30: UnicodeDecodeError` 📌 Duration ``` -`0.00015000905841588974` +`9.58130694925785e-05` ``` @@ -6518,7 +6515,7 @@ tests/test_string_utils.py:30: UnicodeDecodeError` ❌ #23 - **Status:** ❌ `xfailed` -- **Duration:** `0.000259` s +- **Duration:** `0.000188` s ### 🔧 Setup Phase @@ -6527,7 +6524,7 @@ tests/test_string_utils.py:30: UnicodeDecodeError` 📌 Duration ``` -`0.0001354070845991373` +`0.00010051194112747908` ``` @@ -6552,7 +6549,7 @@ tests/test_string_utils.py:30: UnicodeDecodeError` 📌 Duration ``` -`0.00025917706079781055` +`0.00018799700774252415` ``` @@ -6618,7 +6615,7 @@ tests/test_math_utils.py:57: AssertionError` 📌 Duration ``` -`0.00015021697618067265` +`0.00010261707939207554` ``` @@ -6660,7 +6657,7 @@ tests/test_math_utils.py:57: AssertionError` ❌ #49 - **Status:** ❌ `xfailed` -- **Duration:** `0.000621` s +- **Duration:** `0.000317` s ### 🔧 Setup Phase @@ -6669,7 +6666,7 @@ tests/test_math_utils.py:57: AssertionError` 📌 Duration ``` -`0.00011666992213577032` +`8.180399890989065e-05` ``` @@ -6694,7 +6691,7 @@ tests/test_math_utils.py:57: AssertionError` 📌 Duration ``` -`0.000621385988779366` +`0.0003169990377500653` ``` @@ -6766,7 +6763,7 @@ tests/test_string_utils.py:39: AssertionError` 📌 Duration ``` -`0.0001370779937133193` +`9.687000419944525e-05` ``` @@ -6825,7 +6822,7 @@ result:
-✅ ci-reports (12 tests) +✅ ci-reports (14 tests)
@@ -6835,7 +6832,7 @@ result: - **Details:** ``` result: -`nodeid: `ci-reports/allure``, `type: `Dir``, `nodeid: `ci-reports/coverage``, `type: `Dir``, `nodeid: `ci-reports/markdown``, `type: `Dir`` +`nodeid: `ci-reports/allure``, `type: `Dir``, `nodeid: `ci-reports/html``, `type: `Dir``, `nodeid: `ci-reports/markdown``, `type: `Dir``, `nodeid: `ci-reports/xml``, `type: `Dir`` ``` @@ -6979,7 +6976,22 @@ result:
-✅ ci-reports/coverage +✅ ci-reports/html + +- **Outcome:** `passed` +- **Details:** +``` +result: +`nodeid: `ci-reports/html/assets``, `type: `Dir`` + +``` + +
+
+ +
+
+✅ ci-reports/html/assets - **Outcome:** `passed` - **Details:** @@ -7002,6 +7014,21 @@ result: result: +``` + +
+
+ +
+
+✅ ci-reports/xml + +- **Outcome:** `passed` +- **Details:** +``` +result: + + ```
diff --git a/ci-reports/markdown/pytest-report.json b/ci-reports/markdown/pytest-report.json index 67b7658c5..47be15076 100644 --- a/ci-reports/markdown/pytest-report.json +++ b/ci-reports/markdown/pytest-report.json @@ -1 +1 @@ -{"created": 1752581794.5870194, "duration": 0.714613676071167, "exitcode": 2, "root": "/workspace/tligui_y/slic", "environment": {}, "summary": {"passed": 16, "failed": 32, "xfailed": 2, "total": 50, "collected": 50}, "collectors": [{"nodeid": "", "outcome": "passed", "result": [{"nodeid": ".", "type": "Dir"}]}, {"nodeid": "ci-reports/allure/data", "outcome": "passed", "result": []}, {"nodeid": "ci-reports/allure/export", "outcome": "passed", "result": []}, {"nodeid": "ci-reports/allure/history", "outcome": "passed", "result": []}, {"nodeid": "ci-reports/allure/plugin/behaviors", "outcome": "passed", "result": []}, {"nodeid": "ci-reports/allure/plugin/packages", "outcome": "passed", "result": []}, {"nodeid": "ci-reports/allure/plugin/screen-diff", "outcome": "passed", "result": []}, {"nodeid": "ci-reports/allure/plugin", "outcome": "passed", "result": [{"nodeid": "ci-reports/allure/plugin/behaviors", "type": "Dir"}, {"nodeid": "ci-reports/allure/plugin/packages", "type": "Dir"}, {"nodeid": "ci-reports/allure/plugin/screen-diff", "type": "Dir"}]}, {"nodeid": "ci-reports/allure/widgets", "outcome": "passed", "result": []}, {"nodeid": "ci-reports/allure", "outcome": "passed", "result": [{"nodeid": "ci-reports/allure/data", "type": "Dir"}, {"nodeid": "ci-reports/allure/export", "type": "Dir"}, {"nodeid": "ci-reports/allure/history", "type": "Dir"}, {"nodeid": "ci-reports/allure/plugin", "type": "Dir"}, {"nodeid": "ci-reports/allure/widgets", "type": "Dir"}]}, {"nodeid": "ci-reports/coverage", "outcome": "passed", "result": []}, {"nodeid": "ci-reports/markdown", "outcome": "passed", "result": []}, {"nodeid": "ci-reports", "outcome": "passed", "result": [{"nodeid": "ci-reports/allure", "type": "Dir"}, {"nodeid": "ci-reports/coverage", "type": "Dir"}, {"nodeid": "ci-reports/markdown", "type": "Dir"}]}, {"nodeid": "functions", "outcome": "passed", "result": []}, {"nodeid": "tests/test_broken_fct.py", "outcome": "failed", "result": [], "longrepr": ".pixi/envs/default/lib/python3.8/site-packages/_pytest/python.py:493: in importtestmodule\n mod = import_path(\n.pixi/envs/default/lib/python3.8/site-packages/_pytest/pathlib.py:587: in import_path\n importlib.import_module(module_name)\n.pixi/envs/default/lib/python3.8/importlib/__init__.py:127: in import_module\n return _bootstrap._gcd_import(name[level:], package, level)\n:1014: in _gcd_import\n ???\n:991: in _find_and_load\n ???\n:975: in _find_and_load_unlocked\n ???\n:671: in _load_unlocked\n ???\n.pixi/envs/default/lib/python3.8/site-packages/_pytest/assertion/rewrite.py:175: in exec_module\n source_stat, co = _rewrite_test(fn, self.config)\n.pixi/envs/default/lib/python3.8/site-packages/_pytest/assertion/rewrite.py:355: in _rewrite_test\n tree = ast.parse(source, filename=strfn)\n.pixi/envs/default/lib/python3.8/ast.py:47: in parse\n return compile(source, filename, mode, flags,\nE File \"/workspace/tligui_y/slic/tests/test_broken_fct.py\", line 8\nE def test_valid_2():\nE ^\nE SyntaxError: invalid syntax"}, {"nodeid": "tests/test_collector_error.py", "outcome": "failed", "result": [], "longrepr": "ImportError while importing test module '/workspace/tligui_y/slic/tests/test_collector_error.py'.\nHint: make sure your test modules/packages have valid Python names.\nTraceback:\n.pixi/envs/default/lib/python3.8/importlib/__init__.py:127: in import_module\n return _bootstrap._gcd_import(name[level:], package, level)\ntests/test_collector_error.py:1: in \n from no_existing_module.math_utils import *\nE ModuleNotFoundError: No module named 'no_existing_module'"}, {"nodeid": "tests/test_io_utils.py", "outcome": "passed", "result": [{"nodeid": "tests/test_io_utils.py::test_read_file", "type": "Function", "lineno": 9}, {"nodeid": "tests/test_io_utils.py::test_write_file", "type": "Function", "lineno": 16}, {"nodeid": "tests/test_io_utils.py::test_cause_io_error", "type": "Function", "lineno": 22}, {"nodeid": "tests/test_io_utils.py::test_file_not_found", "type": "Function", "lineno": 26}, {"nodeid": "tests/test_io_utils.py::test_permission_error", "type": "Function", "lineno": 30}, {"nodeid": "tests/test_io_utils.py::test_mock_open_error", "type": "Function", "lineno": 37}, {"nodeid": "tests/test_io_utils.py::test_file_handle_closed_error", "type": "Function", "lineno": 45}, {"nodeid": "tests/test_io_utils.py::test_os_error", "type": "Function", "lineno": 51}, {"nodeid": "tests/test_io_utils.py::test_write_file_readonly", "type": "Function", "lineno": 58}, {"nodeid": "tests/test_io_utils.py::test_file_not_found_error", "type": "Function", "lineno": 66}]}, {"nodeid": "tests/test_math_utils.py", "outcome": "passed", "result": [{"nodeid": "tests/test_math_utils.py::test_broken", "type": "Function", "lineno": 13}, {"nodeid": "tests/test_math_utils.py::test_call_missing_function", "type": "Function", "lineno": 17}, {"nodeid": "tests/test_math_utils.py::test_addition_pass[2-2-4]", "type": "Function", "lineno": 21}, {"nodeid": "tests/test_math_utils.py::test_addition_pass[1-5-6]", "type": "Function", "lineno": 21}, {"nodeid": "tests/test_math_utils.py::test_addition_pass[3-4-7]", "type": "Function", "lineno": 21}, {"nodeid": "tests/test_math_utils.py::test_addition_pass[3-5-8]", "type": "Function", "lineno": 21}, {"nodeid": "tests/test_math_utils.py::test_addition_pass[3-6-9]", "type": "Function", "lineno": 21}, {"nodeid": "tests/test_math_utils.py::test_addition_pass_id[a=2,b=2,expected=4]", "type": "Function", "lineno": 34}, {"nodeid": "tests/test_math_utils.py::test_addition_pass_id[a=1,b=5,expected=6]", "type": "Function", "lineno": 34}, {"nodeid": "tests/test_math_utils.py::test_addition_pass_id[a=3,b=4,expected=7]", "type": "Function", "lineno": 34}, {"nodeid": "tests/test_math_utils.py::test_addition_fail", "type": "Function", "lineno": 45}, {"nodeid": "tests/test_math_utils.py::test_division_zero", "type": "Function", "lineno": 49}, {"nodeid": "tests/test_math_utils.py::test_multiply_xfail", "type": "Function", "lineno": 53}, {"nodeid": "tests/test_math_utils.py::test_runtime_error", "type": "Function", "lineno": 58}, {"nodeid": "tests/test_math_utils.py::test_memory_error", "type": "Function", "lineno": 62}, {"nodeid": "tests/test_math_utils.py::test_timeout_error", "type": "Function", "lineno": 66}, {"nodeid": "tests/test_math_utils.py::test_recursion_error", "type": "Function", "lineno": 70}, {"nodeid": "tests/test_math_utils.py::test_floating_point_error", "type": "Function", "lineno": 76}, {"nodeid": "tests/test_math_utils.py::test_floating_point_overflow", "type": "Function", "lineno": 80}, {"nodeid": "tests/test_math_utils.py::test_value_error", "type": "Function", "lineno": 84}, {"nodeid": "tests/test_math_utils.py::test_type_error", "type": "Function", "lineno": 88}, {"nodeid": "tests/test_math_utils.py::test_unhandled_exception", "type": "Function", "lineno": 92}, {"nodeid": "tests/test_math_utils.py::test_custom_error", "type": "Function", "lineno": 96}, {"nodeid": "tests/test_math_utils.py::test_stop_iteration_direct", "type": "Function", "lineno": 100}, {"nodeid": "tests/test_math_utils.py::test_generator_exit_direct", "type": "Function", "lineno": 104}, {"nodeid": "tests/test_math_utils.py::test_recursion_limit", "type": "Function", "lineno": 108}, {"nodeid": "tests/test_math_utils.py::test_malformed_code", "type": "Function", "lineno": 119}, {"nodeid": "tests/test_math_utils.py::test_sys_exit", "type": "Function", "lineno": 123}, {"nodeid": "tests/test_math_utils.py::test_broken_function", "type": "Function", "lineno": 127}, {"nodeid": "tests/test_math_utils.py::test_import_error_patch", "type": "Function", "lineno": 133}, {"nodeid": "tests/test_math_utils.py::test_module_not_found_error", "type": "Function", "lineno": 147}]}, {"nodeid": "tests/test_string_utils.py", "outcome": "passed", "result": [{"nodeid": "tests/test_string_utils.py::test_uppercase_normal", "type": "Function", "lineno": 7}, {"nodeid": "tests/test_string_utils.py::test_uppercase_type_error", "type": "Function", "lineno": 11}, {"nodeid": "tests/test_string_utils.py::test_reverse_string", "type": "Function", "lineno": 15}, {"nodeid": "tests/test_string_utils.py::test_warning_emit", "type": "Function", "lineno": 19}, {"nodeid": "tests/test_string_utils.py::test_unicode_decode_error", "type": "Function", "lineno": 23}, {"nodeid": "tests/test_string_utils.py::test_unicode_decode_surrogateescape", "type": "Function", "lineno": 27}, {"nodeid": "tests/test_string_utils.py::test_import_warning", "type": "Function", "lineno": 31}, {"nodeid": "tests/test_string_utils.py::test_xfail_uppercase_digits", "type": "Function", "lineno": 35}, {"nodeid": "tests/test_string_utils.py::test_keyboard_interrupt_direct", "type": "Function", "lineno": 40}]}, {"nodeid": "tests", "outcome": "passed", "result": [{"nodeid": "tests/test_broken_fct.py", "type": "Module"}, {"nodeid": "tests/test_collector_error.py", "type": "Module"}, {"nodeid": "tests/test_io_utils.py", "type": "Module"}, {"nodeid": "tests/test_math_utils.py", "type": "Module"}, {"nodeid": "tests/test_string_utils.py", "type": "Module"}]}, {"nodeid": ".", "outcome": "passed", "result": [{"nodeid": "ci-reports", "type": "Dir"}, {"nodeid": "functions", "type": "Package"}, {"nodeid": "tests", "type": "Dir"}]}], "tests": [{"nodeid": "tests/test_io_utils.py::test_read_file", "lineno": 9, "outcome": "passed", "keywords": ["test_read_file", "test_io_utils.py", "tests", "slic", ""], "setup": {"duration": 0.003133182995952666, "outcome": "passed"}, "call": {"duration": 0.00043904699850827456, "outcome": "passed"}, "teardown": {"duration": 0.00025305093731731176, "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.0004786719800904393, "outcome": "passed"}, "call": {"duration": 0.0002809460274875164, "outcome": "passed"}, "teardown": {"duration": 0.00016897509340196848, "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.00012298300862312317, "outcome": "passed"}, "call": {"duration": 0.00015497999265789986, "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.00014413404278457165, "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.00011844094842672348, "outcome": "passed"}, "call": {"duration": 0.00017056299839168787, "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.0001426569651812315, "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.00019466504454612732, "outcome": "passed"}, "call": {"duration": 0.00018086202908307314, "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 0x7f978aceaca0>\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.00016490998677909374, "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.00018448196351528168, "outcome": "passed"}, "call": {"duration": 0.003165088011883199, "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 0x7f978acf9d90>\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.00029821996577084064, "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.00014585303142666817, "outcome": "passed"}, "call": {"duration": 0.00018451304640620947, "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.00017527001909911633, "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.00024158996529877186, "outcome": "passed"}, "call": {"duration": 0.00018089893274009228, "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 0x7f978882f640>\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.00017721205949783325, "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.0006020460277795792, "outcome": "passed"}, "call": {"duration": 0.0009123159106820822, "outcome": "passed"}, "teardown": {"duration": 0.000153091037645936, "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.00012071395758539438, "outcome": "passed"}, "call": {"duration": 0.00016599195078015327, "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.0001403900096192956, "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.00013012706767767668, "outcome": "passed"}, "call": {"duration": 0.00015646906103938818, "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.00015052093658596277, "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.00012401700951159, "outcome": "passed"}, "call": {"duration": 0.00015021697618067265, "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.00013656704686582088, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_addition_pass[2-2-4]", "lineno": 21, "outcome": "passed", "keywords": ["test_addition_pass[2-2-4]", "parametrize", "pytestmark", "2-2-4", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.0002777109621092677, "outcome": "passed"}, "call": {"duration": 0.00015267706476151943, "outcome": "passed"}, "teardown": {"duration": 0.00013826193753629923, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_addition_pass[1-5-6]", "lineno": 21, "outcome": "passed", "keywords": ["test_addition_pass[1-5-6]", "parametrize", "pytestmark", "1-5-6", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00026053900364786386, "outcome": "passed"}, "call": {"duration": 0.00013971806038171053, "outcome": "passed"}, "teardown": {"duration": 0.00014364602975547314, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_addition_pass[3-4-7]", "lineno": 21, "outcome": "passed", "keywords": ["test_addition_pass[3-4-7]", "parametrize", "pytestmark", "3-4-7", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00023979588877409697, "outcome": "passed"}, "call": {"duration": 0.00012661004438996315, "outcome": "passed"}, "teardown": {"duration": 0.00014709902461618185, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_addition_pass[3-5-8]", "lineno": 21, "outcome": "passed", "keywords": ["test_addition_pass[3-5-8]", "parametrize", "pytestmark", "3-5-8", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.000243876944296062, "outcome": "passed"}, "call": {"duration": 0.00013631803449243307, "outcome": "passed"}, "teardown": {"duration": 0.00013911398127675056, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_addition_pass[3-6-9]", "lineno": 21, "outcome": "passed", "keywords": ["test_addition_pass[3-6-9]", "parametrize", "pytestmark", "3-6-9", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00023376790340989828, "outcome": "passed"}, "call": {"duration": 0.00012343295384198427, "outcome": "passed"}, "teardown": {"duration": 0.00013270298950374126, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_addition_pass_id[a=2,b=2,expected=4]", "lineno": 34, "outcome": "passed", "keywords": ["test_addition_pass_id[a=2,b=2,expected=4]", "parametrize", "pytestmark", "a=2,b=2,expected=4", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00024139299057424068, "outcome": "passed"}, "call": {"duration": 0.00012721202801913023, "outcome": "passed"}, "teardown": {"duration": 0.00013067899271845818, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_addition_pass_id[a=1,b=5,expected=6]", "lineno": 34, "outcome": "passed", "keywords": ["test_addition_pass_id[a=1,b=5,expected=6]", "parametrize", "pytestmark", "a=1,b=5,expected=6", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00024358299560844898, "outcome": "passed"}, "call": {"duration": 0.00013528496492654085, "outcome": "passed"}, "teardown": {"duration": 0.00013015803415328264, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_addition_pass_id[a=3,b=4,expected=7]", "lineno": 34, "outcome": "passed", "keywords": ["test_addition_pass_id[a=3,b=4,expected=7]", "parametrize", "pytestmark", "a=3,b=4,expected=7", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.0002329519484192133, "outcome": "passed"}, "call": {"duration": 0.0001231119967997074, "outcome": "passed"}, "teardown": {"duration": 0.00013015500735491514, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_addition_fail", "lineno": 45, "outcome": "failed", "keywords": ["test_addition_fail", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00010537204798310995, "outcome": "passed"}, "call": {"duration": 0.0004405659856274724, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 48, "message": "assert 4 == 5\n + where 4 = addition(2, 2)"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 48, "message": "AssertionError"}], "longrepr": "def test_addition_fail():\n # Assertion failure: expected incorrect result\n> assert addition(2, 2) == 5\nE assert 4 == 5\nE + where 4 = addition(2, 2)\n\ntests/test_math_utils.py:48: AssertionError"}, "teardown": {"duration": 0.00014023901894688606, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_division_zero", "lineno": 49, "outcome": "failed", "keywords": ["test_division_zero", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00012081291060894728, "outcome": "passed"}, "call": {"duration": 0.00015578488819301128, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/functions/math_utils.py", "lineno": 5, "message": "ZeroDivisionError: division by zero"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 52, "message": ""}, {"path": "functions/math_utils.py", "lineno": 5, "message": "ZeroDivisionError"}], "longrepr": "def test_division_zero():\n # Will raise ZeroDivisionError if not handled in division\n> division(1, 0)\n\ntests/test_math_utils.py:52: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\na = 1, b = 0\n\n def division(a, b):\n> return a / b\nE ZeroDivisionError: division by zero\n\nfunctions/math_utils.py:5: ZeroDivisionError"}, "teardown": {"duration": 0.00014144799206405878, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_multiply_xfail", "lineno": 53, "outcome": "xfailed", "keywords": ["test_multiply_xfail", "xfail", "pytestmark", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.0001354070845991373, "outcome": "passed"}, "call": {"duration": 0.00025917706079781055, "outcome": "skipped", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 57, "message": "assert 4 == 5\n + where 4 = multiply(2, 2)"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 57, "message": "AssertionError"}], "longrepr": "@pytest.mark.xfail(reason=\"Expected failure\")\n def test_multiply_xfail():\n # Expected fail test (xfail): incorrect expected multiply result\n> assert multiply(2, 2) == 5\nE assert 4 == 5\nE + where 4 = multiply(2, 2)\n\ntests/test_math_utils.py:57: AssertionError"}, "teardown": {"duration": 0.00015021697618067265, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_runtime_error", "lineno": 58, "outcome": "failed", "keywords": ["test_runtime_error", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00011627795174717903, "outcome": "passed"}, "call": {"duration": 0.00015445600729435682, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 61, "message": "RuntimeError: Forced runtime error"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 61, "message": "RuntimeError"}], "longrepr": "def test_runtime_error():\n # Test raises an uncaught RuntimeError\n> raise RuntimeError(\"Forced runtime error\")\nE RuntimeError: Forced runtime error\n\ntests/test_math_utils.py:61: RuntimeError"}, "teardown": {"duration": 0.00014758692122995853, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_memory_error", "lineno": 62, "outcome": "failed", "keywords": ["test_memory_error", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00021442293655127287, "outcome": "passed"}, "call": {"duration": 0.00015053106471896172, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 65, "message": "MemoryError: Simulated memory error"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 65, "message": "MemoryError"}], "longrepr": "def test_memory_error():\n # Manually raise MemoryError to simulate out-of-memory condition\n> raise MemoryError(\"Simulated memory error\")\nE MemoryError: Simulated memory error\n\ntests/test_math_utils.py:65: MemoryError"}, "teardown": {"duration": 0.00014055101200938225, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_timeout_error", "lineno": 66, "outcome": "failed", "keywords": ["test_timeout_error", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00011746201198548079, "outcome": "passed"}, "call": {"duration": 0.00015711202286183834, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 69, "message": "TimeoutError: Simulated timeout error"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 69, "message": "TimeoutError"}], "longrepr": "def test_timeout_error():\n # Manually raise TimeoutError simulating timeout conditions\n> raise TimeoutError(\"Simulated timeout error\")\nE TimeoutError: Simulated timeout error\n\ntests/test_math_utils.py:69: TimeoutError"}, "teardown": {"duration": 0.000137769035063684, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_recursion_error", "lineno": 70, "outcome": "failed", "keywords": ["test_recursion_error", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.0001216839300468564, "outcome": "passed"}, "call": {"duration": 0.0008314520819112659, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 74, "message": "RecursionError: maximum recursion depth exceeded"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 75, "message": ""}, {"path": "tests/test_math_utils.py", "lineno": 74, "message": "in recursive"}, {"path": "tests/test_math_utils.py", "lineno": 74, "message": "in recursive"}], "longrepr": "def test_recursion_error():\n # Infinite recursion triggers RecursionError\n def recursive():\n return recursive()\n> recursive()\n\ntests/test_math_utils.py:75: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_math_utils.py:74: in recursive\n return recursive()\ntests/test_math_utils.py:74: in recursive\n return recursive()\nE RecursionError: maximum recursion depth exceeded\n!!! Recursion detected (same locals & position)"}, "teardown": {"duration": 0.00014773907605558634, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_floating_point_error", "lineno": 76, "outcome": "failed", "keywords": ["test_floating_point_error", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00012793298810720444, "outcome": "passed"}, "call": {"duration": 0.00014822394587099552, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 79, "message": "FloatingPointError: Simulated floating point error"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 79, "message": "FloatingPointError"}], "longrepr": "def test_floating_point_error():\n # Manually raise FloatingPointError (rare in practice)\n> raise FloatingPointError(\"Simulated floating point error\")\nE FloatingPointError: Simulated floating point error\n\ntests/test_math_utils.py:79: FloatingPointError"}, "teardown": {"duration": 0.00013804505579173565, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_floating_point_overflow", "lineno": 80, "outcome": "failed", "keywords": ["test_floating_point_overflow", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00012145598884671926, "outcome": "passed"}, "call": {"duration": 0.00016597798094153404, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 83, "message": "OverflowError: math range error"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 83, "message": "OverflowError"}], "longrepr": "def test_floating_point_overflow():\n # Exponential overflow triggers OverflowError\n> math.exp(1000)\nE OverflowError: math range error\n\ntests/test_math_utils.py:83: OverflowError"}, "teardown": {"duration": 0.00014972395729273558, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_value_error", "lineno": 84, "outcome": "failed", "keywords": ["test_value_error", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00011916190851479769, "outcome": "passed"}, "call": {"duration": 0.00015149300452321768, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 87, "message": "ValueError: invalid literal for int() with base 10: 'invalid'"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 87, "message": "ValueError"}], "longrepr": "def test_value_error():\n # ValueError on invalid integer conversion\n> int(\"invalid\")\nE ValueError: invalid literal for int() with base 10: 'invalid'\n\ntests/test_math_utils.py:87: ValueError"}, "teardown": {"duration": 0.00013654702343046665, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_type_error", "lineno": 88, "outcome": "failed", "keywords": ["test_type_error", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00013455504085868597, "outcome": "passed"}, "call": {"duration": 0.00014915503561496735, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 91, "message": "TypeError: 'int' object is not iterable"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 91, "message": "TypeError"}], "longrepr": "def test_type_error():\n # TypeError when passing wrong argument type to sum\n> sum(5)\nE TypeError: 'int' object is not iterable\n\ntests/test_math_utils.py:91: TypeError"}, "teardown": {"duration": 0.0001376420259475708, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_unhandled_exception", "lineno": 92, "outcome": "failed", "keywords": ["test_unhandled_exception", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00012270989827811718, "outcome": "passed"}, "call": {"duration": 0.00015768304001539946, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 95, "message": "Exception: Generic unhandled exception"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 95, "message": "Exception"}], "longrepr": "def test_unhandled_exception():\n # Raises generic unhandled Exception\n> raise Exception(\"Generic unhandled exception\")\nE Exception: Generic unhandled exception\n\ntests/test_math_utils.py:95: Exception"}, "teardown": {"duration": 0.00014791404828429222, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_custom_error", "lineno": 96, "outcome": "failed", "keywords": ["test_custom_error", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00012002990115433931, "outcome": "passed"}, "call": {"duration": 0.00014586793258786201, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 99, "message": "test_math_utils.CustomError: Custom error simulation"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 99, "message": "CustomError"}], "longrepr": "def test_custom_error():\n # Raises user-defined CustomError exception\n> raise CustomError(\"Custom error simulation\")\nE test_math_utils.CustomError: Custom error simulation\n\ntests/test_math_utils.py:99: CustomError"}, "teardown": {"duration": 0.00014291296247392893, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_stop_iteration_direct", "lineno": 100, "outcome": "failed", "keywords": ["test_stop_iteration_direct", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00012170604895800352, "outcome": "passed"}, "call": {"duration": 0.0001481559593230486, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/.pixi/envs/default/lib/python3.8/site-packages/_pytest/capture.py", "lineno": 880, "message": "RuntimeError: generator raised StopIteration"}, "traceback": [{"path": ".pixi/envs/default/lib/python3.8/site-packages/_pytest/runner.py", "lineno": 341, "message": ""}, {"path": ".pixi/envs/default/lib/python3.8/site-packages/_pytest/runner.py", "lineno": 242, "message": "in "}, {"path": ".pixi/envs/default/lib/python3.8/site-packages/pluggy/_hooks.py", "lineno": 513, "message": "in __call__"}, {"path": ".pixi/envs/default/lib/python3.8/site-packages/pluggy/_manager.py", "lineno": 120, "message": "in _hookexec"}, {"path": ".pixi/envs/default/lib/python3.8/site-packages/_pytest/threadexception.py", "lineno": 92, "message": "in pytest_runtest_call"}, {"path": ".pixi/envs/default/lib/python3.8/site-packages/_pytest/threadexception.py", "lineno": 68, "message": "in thread_exception_runtest_hook"}, {"path": ".pixi/envs/default/lib/python3.8/site-packages/_pytest/unraisableexception.py", "lineno": 95, "message": "in pytest_runtest_call"}, {"path": ".pixi/envs/default/lib/python3.8/site-packages/_pytest/unraisableexception.py", "lineno": 70, "message": "in unraisable_exception_runtest_hook"}, {"path": ".pixi/envs/default/lib/python3.8/site-packages/_pytest/logging.py", "lineno": 846, "message": "in pytest_runtest_call"}, {"path": ".pixi/envs/default/lib/python3.8/site-packages/_pytest/logging.py", "lineno": 829, "message": "in _runtest_for"}, {"path": ".pixi/envs/default/lib/python3.8/site-packages/_pytest/capture.py", "lineno": 880, "message": "RuntimeError"}], "longrepr": "def test_stop_iteration_direct():\n # Directly raise StopIteration exception\n> raise StopIteration()\nE StopIteration\n\ntests/test_math_utils.py:103: StopIteration\n\nThe above exception was the direct cause of the following exception:\n\ncls = \nfunc = . at 0x7f978ad1d550>\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.00025452999398112297, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_generator_exit_direct", "lineno": 104, "outcome": "failed", "keywords": ["test_generator_exit_direct", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00017640902660787106, "outcome": "passed"}, "call": {"duration": 0.00017550692427903414, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 107, "message": "GeneratorExit"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 107, "message": "GeneratorExit"}], "longrepr": "def test_generator_exit_direct():\n # Directly raise GeneratorExit exception\n> raise GeneratorExit()\nE GeneratorExit\n\ntests/test_math_utils.py:107: GeneratorExit"}, "teardown": {"duration": 0.00018231698777526617, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_recursion_limit", "lineno": 108, "outcome": "failed", "keywords": ["test_recursion_limit", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00013664609286934137, "outcome": "passed"}, "call": {"duration": 0.0001661520218476653, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 112, "message": "RecursionError: cannot set the recursion limit to 50 at the recursion depth 37: the limit is too low"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 112, "message": "RecursionError"}], "longrepr": "def test_recursion_limit():\n # Lower recursion limit to force RecursionError on deep recursion\n original_limit = sys.getrecursionlimit()\n> sys.setrecursionlimit(50)\nE RecursionError: cannot set the recursion limit to 50 at the recursion depth 37: the limit is too low\n\ntests/test_math_utils.py:112: RecursionError"}, "teardown": {"duration": 0.0001537760253995657, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_malformed_code", "lineno": 119, "outcome": "failed", "keywords": ["test_malformed_code", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00012948806397616863, "outcome": "passed"}, "call": {"duration": 0.00017666502390056849, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 122, "message": " File \"\", line 1\n def bad(:\n ^\nSyntaxError: invalid syntax"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 122, "message": "SyntaxError"}], "longrepr": "def test_malformed_code():\n # SyntaxError when executing malformed Python code\n> exec(\"def bad(:\\n pass\")\nE File \"\", line 1\nE def bad(:\nE ^\nE SyntaxError: invalid syntax\n\ntests/test_math_utils.py:122: SyntaxError"}, "teardown": {"duration": 0.00015017902478575706, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_sys_exit", "lineno": 123, "outcome": "failed", "keywords": ["test_sys_exit", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.0001259839627891779, "outcome": "passed"}, "call": {"duration": 0.00015900505241006613, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 126, "message": "SystemExit: 1"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 126, "message": "SystemExit"}], "longrepr": "def test_sys_exit():\n # Simulate SystemExit via sys.exit\n> sys.exit(1)\nE SystemExit: 1\n\ntests/test_math_utils.py:126: SystemExit"}, "teardown": {"duration": 0.0001555809285491705, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_broken_function", "lineno": 127, "outcome": "failed", "keywords": ["test_broken_function", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00012197706382721663, "outcome": "passed"}, "call": {"duration": 0.00016138888895511627, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 131, "message": "TypeError: Broken function"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 132, "message": ""}, {"path": "tests/test_math_utils.py", "lineno": 131, "message": "TypeError"}], "longrepr": "def test_broken_function():\n # Simulate broken function raising TypeError\n def broken_func(*args, **kwargs):\n raise TypeError(\"Broken function\")\n> broken_func()\n\ntests/test_math_utils.py:132: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nargs = (), kwargs = {}\n\n def broken_func(*args, **kwargs):\n> raise TypeError(\"Broken function\")\nE TypeError: Broken function\n\ntests/test_math_utils.py:131: TypeError"}, "teardown": {"duration": 0.00015403504949063063, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_import_error_patch", "lineno": 133, "outcome": "failed", "keywords": ["test_import_error_patch", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.0001210939371958375, "outcome": "passed"}, "call": {"duration": 0.00016185804270207882, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 139, "message": "ImportError: Simulated ImportError"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 144, "message": ""}, {"path": "tests/test_math_utils.py", "lineno": 139, "message": "ImportError"}], "longrepr": "def test_import_error_patch():\n # Patch import to simulate ImportError on specific module\n original_import = __import__\n def fake_import(name, *args, **kwargs):\n if name == \"fake_module\":\n raise ImportError(\"Simulated ImportError\")\n return original_import(name, *args, **kwargs)\n import builtins\n builtins.__import__, old_import = fake_import, builtins.__import__\n try:\n> __import__(\"fake_module\")\n\ntests/test_math_utils.py:144: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nname = 'fake_module', args = (), kwargs = {}\n\n def fake_import(name, *args, **kwargs):\n if name == \"fake_module\":\n> raise ImportError(\"Simulated ImportError\")\nE ImportError: Simulated ImportError\n\ntests/test_math_utils.py:139: ImportError"}, "teardown": {"duration": 0.0001412510173395276, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_module_not_found_error", "lineno": 147, "outcome": "failed", "keywords": ["test_module_not_found_error", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00011916400399059057, "outcome": "passed"}, "call": {"duration": 0.0004636560333892703, "outcome": "failed", "crash": {"path": "", "lineno": 973, "message": "ModuleNotFoundError: No module named 'non_existent_module_xyz'"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 150, "message": ""}, {"path": ".pixi/envs/default/lib/python3.8/importlib/__init__.py", "lineno": 127, "message": "in import_module"}, {"path": "", "lineno": 1014, "message": "in _gcd_import"}, {"path": "", "lineno": 991, "message": "in _find_and_load"}, {"path": "", "lineno": 973, "message": "ModuleNotFoundError"}], "longrepr": "def test_module_not_found_error():\n # Raises ModuleNotFoundError (subclass of ImportError) for missing module\n> importlib.import_module(\"non_existent_module_xyz\")\n\ntests/test_math_utils.py:150: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n.pixi/envs/default/lib/python3.8/importlib/__init__.py:127: in import_module\n return _bootstrap._gcd_import(name[level:], package, level)\n:1014: in _gcd_import\n ???\n:991: in _find_and_load\n ???\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nname = 'non_existent_module_xyz'\nimport_ = \n\n> ???\nE ModuleNotFoundError: No module named 'non_existent_module_xyz'\n\n:973: ModuleNotFoundError"}, "teardown": {"duration": 0.00014049001038074493, "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.0001282630255445838, "outcome": "passed"}, "call": {"duration": 0.00014387897681444883, "outcome": "passed"}, "teardown": {"duration": 0.00010642397683113813, "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.00011700799223035574, "outcome": "passed"}, "call": {"duration": 0.00014935503713786602, "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.00013819802552461624, "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.00012288393918424845, "outcome": "passed"}, "call": {"duration": 0.00014027801807969809, "outcome": "passed"}, "teardown": {"duration": 0.00010119297076016665, "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.00010759301949292421, "outcome": "passed"}, "call": {"duration": 0.00014339201152324677, "outcome": "passed"}, "teardown": {"duration": 9.681505616754293e-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.00011261401232331991, "outcome": "passed"}, "call": {"duration": 0.00014314393047243357, "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.0001376579748466611, "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.00011564092710614204, "outcome": "passed"}, "call": {"duration": 0.00015264598187059164, "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.00015000905841588974, "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.00011911103501915932, "outcome": "passed"}, "call": {"duration": 0.00014587899204343557, "outcome": "passed"}, "teardown": {"duration": 0.00011005101259797812, "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.00011666992213577032, "outcome": "passed"}, "call": {"duration": 0.000621385988779366, "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.0001370779937133193, "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.00011697795707732439, "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": 1752582212.1756048, "duration": 0.595146656036377, "exitcode": 2, "root": "/workspace/tligui_y/slic", "environment": {}, "summary": {"passed": 16, "failed": 32, "xfailed": 2, "total": 50, "collected": 50}, "collectors": [{"nodeid": "", "outcome": "passed", "result": [{"nodeid": ".", "type": "Dir"}]}, {"nodeid": "ci-reports/allure/data", "outcome": "passed", "result": []}, {"nodeid": "ci-reports/allure/export", "outcome": "passed", "result": []}, {"nodeid": "ci-reports/allure/history", "outcome": "passed", "result": []}, {"nodeid": "ci-reports/allure/plugin/behaviors", "outcome": "passed", "result": []}, {"nodeid": "ci-reports/allure/plugin/packages", "outcome": "passed", "result": []}, {"nodeid": "ci-reports/allure/plugin/screen-diff", "outcome": "passed", "result": []}, {"nodeid": "ci-reports/allure/plugin", "outcome": "passed", "result": [{"nodeid": "ci-reports/allure/plugin/behaviors", "type": "Dir"}, {"nodeid": "ci-reports/allure/plugin/packages", "type": "Dir"}, {"nodeid": "ci-reports/allure/plugin/screen-diff", "type": "Dir"}]}, {"nodeid": "ci-reports/allure/widgets", "outcome": "passed", "result": []}, {"nodeid": "ci-reports/allure", "outcome": "passed", "result": [{"nodeid": "ci-reports/allure/data", "type": "Dir"}, {"nodeid": "ci-reports/allure/export", "type": "Dir"}, {"nodeid": "ci-reports/allure/history", "type": "Dir"}, {"nodeid": "ci-reports/allure/plugin", "type": "Dir"}, {"nodeid": "ci-reports/allure/widgets", "type": "Dir"}]}, {"nodeid": "ci-reports/html/assets", "outcome": "passed", "result": []}, {"nodeid": "ci-reports/html", "outcome": "passed", "result": [{"nodeid": "ci-reports/html/assets", "type": "Dir"}]}, {"nodeid": "ci-reports/markdown", "outcome": "passed", "result": []}, {"nodeid": "ci-reports/xml", "outcome": "passed", "result": []}, {"nodeid": "ci-reports", "outcome": "passed", "result": [{"nodeid": "ci-reports/allure", "type": "Dir"}, {"nodeid": "ci-reports/html", "type": "Dir"}, {"nodeid": "ci-reports/markdown", "type": "Dir"}, {"nodeid": "ci-reports/xml", "type": "Dir"}]}, {"nodeid": "functions", "outcome": "passed", "result": []}, {"nodeid": "tests/test_broken_fct.py", "outcome": "failed", "result": [], "longrepr": ".pixi/envs/default/lib/python3.8/site-packages/_pytest/python.py:493: in importtestmodule\n mod = import_path(\n.pixi/envs/default/lib/python3.8/site-packages/_pytest/pathlib.py:587: in import_path\n importlib.import_module(module_name)\n.pixi/envs/default/lib/python3.8/importlib/__init__.py:127: in import_module\n return _bootstrap._gcd_import(name[level:], package, level)\n:1014: in _gcd_import\n ???\n:991: in _find_and_load\n ???\n:975: in _find_and_load_unlocked\n ???\n:671: in _load_unlocked\n ???\n.pixi/envs/default/lib/python3.8/site-packages/_pytest/assertion/rewrite.py:175: in exec_module\n source_stat, co = _rewrite_test(fn, self.config)\n.pixi/envs/default/lib/python3.8/site-packages/_pytest/assertion/rewrite.py:355: in _rewrite_test\n tree = ast.parse(source, filename=strfn)\n.pixi/envs/default/lib/python3.8/ast.py:47: in parse\n return compile(source, filename, mode, flags,\nE File \"/workspace/tligui_y/slic/tests/test_broken_fct.py\", line 8\nE def test_valid_2():\nE ^\nE SyntaxError: invalid syntax"}, {"nodeid": "tests/test_collector_error.py", "outcome": "failed", "result": [], "longrepr": "ImportError while importing test module '/workspace/tligui_y/slic/tests/test_collector_error.py'.\nHint: make sure your test modules/packages have valid Python names.\nTraceback:\n.pixi/envs/default/lib/python3.8/importlib/__init__.py:127: in import_module\n return _bootstrap._gcd_import(name[level:], package, level)\ntests/test_collector_error.py:1: in \n from no_existing_module.math_utils import *\nE ModuleNotFoundError: No module named 'no_existing_module'"}, {"nodeid": "tests/test_io_utils.py", "outcome": "passed", "result": [{"nodeid": "tests/test_io_utils.py::test_read_file", "type": "Function", "lineno": 9}, {"nodeid": "tests/test_io_utils.py::test_write_file", "type": "Function", "lineno": 16}, {"nodeid": "tests/test_io_utils.py::test_cause_io_error", "type": "Function", "lineno": 22}, {"nodeid": "tests/test_io_utils.py::test_file_not_found", "type": "Function", "lineno": 26}, {"nodeid": "tests/test_io_utils.py::test_permission_error", "type": "Function", "lineno": 30}, {"nodeid": "tests/test_io_utils.py::test_mock_open_error", "type": "Function", "lineno": 37}, {"nodeid": "tests/test_io_utils.py::test_file_handle_closed_error", "type": "Function", "lineno": 45}, {"nodeid": "tests/test_io_utils.py::test_os_error", "type": "Function", "lineno": 51}, {"nodeid": "tests/test_io_utils.py::test_write_file_readonly", "type": "Function", "lineno": 58}, {"nodeid": "tests/test_io_utils.py::test_file_not_found_error", "type": "Function", "lineno": 66}]}, {"nodeid": "tests/test_math_utils.py", "outcome": "passed", "result": [{"nodeid": "tests/test_math_utils.py::test_broken", "type": "Function", "lineno": 13}, {"nodeid": "tests/test_math_utils.py::test_call_missing_function", "type": "Function", "lineno": 17}, {"nodeid": "tests/test_math_utils.py::test_addition_pass[2-2-4]", "type": "Function", "lineno": 21}, {"nodeid": "tests/test_math_utils.py::test_addition_pass[1-5-6]", "type": "Function", "lineno": 21}, {"nodeid": "tests/test_math_utils.py::test_addition_pass[3-4-7]", "type": "Function", "lineno": 21}, {"nodeid": "tests/test_math_utils.py::test_addition_pass[3-5-8]", "type": "Function", "lineno": 21}, {"nodeid": "tests/test_math_utils.py::test_addition_pass[3-6-9]", "type": "Function", "lineno": 21}, {"nodeid": "tests/test_math_utils.py::test_addition_pass_id[a=2,b=2,expected=4]", "type": "Function", "lineno": 34}, {"nodeid": "tests/test_math_utils.py::test_addition_pass_id[a=1,b=5,expected=6]", "type": "Function", "lineno": 34}, {"nodeid": "tests/test_math_utils.py::test_addition_pass_id[a=3,b=4,expected=7]", "type": "Function", "lineno": 34}, {"nodeid": "tests/test_math_utils.py::test_addition_fail", "type": "Function", "lineno": 45}, {"nodeid": "tests/test_math_utils.py::test_division_zero", "type": "Function", "lineno": 49}, {"nodeid": "tests/test_math_utils.py::test_multiply_xfail", "type": "Function", "lineno": 53}, {"nodeid": "tests/test_math_utils.py::test_runtime_error", "type": "Function", "lineno": 58}, {"nodeid": "tests/test_math_utils.py::test_memory_error", "type": "Function", "lineno": 62}, {"nodeid": "tests/test_math_utils.py::test_timeout_error", "type": "Function", "lineno": 66}, {"nodeid": "tests/test_math_utils.py::test_recursion_error", "type": "Function", "lineno": 70}, {"nodeid": "tests/test_math_utils.py::test_floating_point_error", "type": "Function", "lineno": 76}, {"nodeid": "tests/test_math_utils.py::test_floating_point_overflow", "type": "Function", "lineno": 80}, {"nodeid": "tests/test_math_utils.py::test_value_error", "type": "Function", "lineno": 84}, {"nodeid": "tests/test_math_utils.py::test_type_error", "type": "Function", "lineno": 88}, {"nodeid": "tests/test_math_utils.py::test_unhandled_exception", "type": "Function", "lineno": 92}, {"nodeid": "tests/test_math_utils.py::test_custom_error", "type": "Function", "lineno": 96}, {"nodeid": "tests/test_math_utils.py::test_stop_iteration_direct", "type": "Function", "lineno": 100}, {"nodeid": "tests/test_math_utils.py::test_generator_exit_direct", "type": "Function", "lineno": 104}, {"nodeid": "tests/test_math_utils.py::test_recursion_limit", "type": "Function", "lineno": 108}, {"nodeid": "tests/test_math_utils.py::test_malformed_code", "type": "Function", "lineno": 119}, {"nodeid": "tests/test_math_utils.py::test_sys_exit", "type": "Function", "lineno": 123}, {"nodeid": "tests/test_math_utils.py::test_broken_function", "type": "Function", "lineno": 127}, {"nodeid": "tests/test_math_utils.py::test_import_error_patch", "type": "Function", "lineno": 133}, {"nodeid": "tests/test_math_utils.py::test_module_not_found_error", "type": "Function", "lineno": 147}]}, {"nodeid": "tests/test_string_utils.py", "outcome": "passed", "result": [{"nodeid": "tests/test_string_utils.py::test_uppercase_normal", "type": "Function", "lineno": 7}, {"nodeid": "tests/test_string_utils.py::test_uppercase_type_error", "type": "Function", "lineno": 11}, {"nodeid": "tests/test_string_utils.py::test_reverse_string", "type": "Function", "lineno": 15}, {"nodeid": "tests/test_string_utils.py::test_warning_emit", "type": "Function", "lineno": 19}, {"nodeid": "tests/test_string_utils.py::test_unicode_decode_error", "type": "Function", "lineno": 23}, {"nodeid": "tests/test_string_utils.py::test_unicode_decode_surrogateescape", "type": "Function", "lineno": 27}, {"nodeid": "tests/test_string_utils.py::test_import_warning", "type": "Function", "lineno": 31}, {"nodeid": "tests/test_string_utils.py::test_xfail_uppercase_digits", "type": "Function", "lineno": 35}, {"nodeid": "tests/test_string_utils.py::test_keyboard_interrupt_direct", "type": "Function", "lineno": 40}]}, {"nodeid": "tests", "outcome": "passed", "result": [{"nodeid": "tests/test_broken_fct.py", "type": "Module"}, {"nodeid": "tests/test_collector_error.py", "type": "Module"}, {"nodeid": "tests/test_io_utils.py", "type": "Module"}, {"nodeid": "tests/test_math_utils.py", "type": "Module"}, {"nodeid": "tests/test_string_utils.py", "type": "Module"}]}, {"nodeid": ".", "outcome": "passed", "result": [{"nodeid": "ci-reports", "type": "Dir"}, {"nodeid": "functions", "type": "Package"}, {"nodeid": "tests", "type": "Dir"}]}], "tests": [{"nodeid": "tests/test_io_utils.py::test_read_file", "lineno": 9, "outcome": "passed", "keywords": ["test_read_file", "test_io_utils.py", "tests", "slic", ""], "setup": {"duration": 0.002734813024289906, "outcome": "passed"}, "call": {"duration": 0.0002937199315056205, "outcome": "passed"}, "teardown": {"duration": 0.00022447900846600533, "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.0003745279973372817, "outcome": "passed"}, "call": {"duration": 0.00021980004385113716, "outcome": "passed"}, "teardown": {"duration": 0.0001091070007532835, "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": 7.979990914463997e-05, "outcome": "passed"}, "call": {"duration": 0.00010895193554461002, "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.00010409008245915174, "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": 9.023898746818304e-05, "outcome": "passed"}, "call": {"duration": 0.00012498197611421347, "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": 9.786093141883612e-05, "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.0001523100072517991, "outcome": "passed"}, "call": {"duration": 0.00012320501264184713, "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 0x7f6f74aa6040>\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.00013042998034507036, "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.0001393168931826949, "outcome": "passed"}, "call": {"duration": 0.0023133179638534784, "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 0x7f6f74c95280>\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.00024323002435266972, "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.00011162797454744577, "outcome": "passed"}, "call": {"duration": 0.00013384700287133455, "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.0001293829409405589, "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.00018445902969688177, "outcome": "passed"}, "call": {"duration": 0.0001295770052820444, "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 0x7f6f74ce8100>\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.0001202459679916501, "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.000562045956030488, "outcome": "passed"}, "call": {"duration": 0.0011576709803193808, "outcome": "passed"}, "teardown": {"duration": 0.00010271603241562843, "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": 8.047407027333975e-05, "outcome": "passed"}, "call": {"duration": 0.00011819694191217422, "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.00010203104466199875, "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": 9.245600085705519e-05, "outcome": "passed"}, "call": {"duration": 0.0001027729595080018, "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": 9.87849198281765e-05, "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": 8.501193951815367e-05, "outcome": "passed"}, "call": {"duration": 0.00010099099017679691, "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": 9.98079776763916e-05, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_addition_pass[2-2-4]", "lineno": 21, "outcome": "passed", "keywords": ["test_addition_pass[2-2-4]", "parametrize", "pytestmark", "2-2-4", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00020883395336568356, "outcome": "passed"}, "call": {"duration": 8.931499905884266e-05, "outcome": "passed"}, "teardown": {"duration": 9.494507685303688e-05, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_addition_pass[1-5-6]", "lineno": 21, "outcome": "passed", "keywords": ["test_addition_pass[1-5-6]", "parametrize", "pytestmark", "1-5-6", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00017024297267198563, "outcome": "passed"}, "call": {"duration": 7.912202272564173e-05, "outcome": "passed"}, "teardown": {"duration": 8.922198321670294e-05, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_addition_pass[3-4-7]", "lineno": 21, "outcome": "passed", "keywords": ["test_addition_pass[3-4-7]", "parametrize", "pytestmark", "3-4-7", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00015933008398860693, "outcome": "passed"}, "call": {"duration": 7.655494846403599e-05, "outcome": "passed"}, "teardown": {"duration": 8.586002513766289e-05, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_addition_pass[3-5-8]", "lineno": 21, "outcome": "passed", "keywords": ["test_addition_pass[3-5-8]", "parametrize", "pytestmark", "3-5-8", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00018133106641471386, "outcome": "passed"}, "call": {"duration": 8.358992636203766e-05, "outcome": "passed"}, "teardown": {"duration": 8.95840348675847e-05, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_addition_pass[3-6-9]", "lineno": 21, "outcome": "passed", "keywords": ["test_addition_pass[3-6-9]", "parametrize", "pytestmark", "3-6-9", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00015835801605135202, "outcome": "passed"}, "call": {"duration": 7.560395170003176e-05, "outcome": "passed"}, "teardown": {"duration": 8.96380515769124e-05, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_addition_pass_id[a=2,b=2,expected=4]", "lineno": 34, "outcome": "passed", "keywords": ["test_addition_pass_id[a=2,b=2,expected=4]", "parametrize", "pytestmark", "a=2,b=2,expected=4", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00016348902136087418, "outcome": "passed"}, "call": {"duration": 7.618707604706287e-05, "outcome": "passed"}, "teardown": {"duration": 8.494406938552856e-05, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_addition_pass_id[a=1,b=5,expected=6]", "lineno": 34, "outcome": "passed", "keywords": ["test_addition_pass_id[a=1,b=5,expected=6]", "parametrize", "pytestmark", "a=1,b=5,expected=6", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00016892701387405396, "outcome": "passed"}, "call": {"duration": 8.782302029430866e-05, "outcome": "passed"}, "teardown": {"duration": 9.00110462680459e-05, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_addition_pass_id[a=3,b=4,expected=7]", "lineno": 34, "outcome": "passed", "keywords": ["test_addition_pass_id[a=3,b=4,expected=7]", "parametrize", "pytestmark", "a=3,b=4,expected=7", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00015901797451078892, "outcome": "passed"}, "call": {"duration": 7.545098196715117e-05, "outcome": "passed"}, "teardown": {"duration": 8.712406270205975e-05, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_addition_fail", "lineno": 45, "outcome": "failed", "keywords": ["test_addition_fail", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 6.8221939727664e-05, "outcome": "passed"}, "call": {"duration": 0.00023140606936067343, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 48, "message": "assert 4 == 5\n + where 4 = addition(2, 2)"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 48, "message": "AssertionError"}], "longrepr": "def test_addition_fail():\n # Assertion failure: expected incorrect result\n> assert addition(2, 2) == 5\nE assert 4 == 5\nE + where 4 = addition(2, 2)\n\ntests/test_math_utils.py:48: AssertionError"}, "teardown": {"duration": 9.875593241304159e-05, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_division_zero", "lineno": 49, "outcome": "failed", "keywords": ["test_division_zero", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 8.438399527221918e-05, "outcome": "passed"}, "call": {"duration": 0.00010012893471866846, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/functions/math_utils.py", "lineno": 5, "message": "ZeroDivisionError: division by zero"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 52, "message": ""}, {"path": "functions/math_utils.py", "lineno": 5, "message": "ZeroDivisionError"}], "longrepr": "def test_division_zero():\n # Will raise ZeroDivisionError if not handled in division\n> division(1, 0)\n\ntests/test_math_utils.py:52: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\na = 1, b = 0\n\n def division(a, b):\n> return a / b\nE ZeroDivisionError: division by zero\n\nfunctions/math_utils.py:5: ZeroDivisionError"}, "teardown": {"duration": 0.00010039296466857195, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_multiply_xfail", "lineno": 53, "outcome": "xfailed", "keywords": ["test_multiply_xfail", "xfail", "pytestmark", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00010051194112747908, "outcome": "passed"}, "call": {"duration": 0.00018799700774252415, "outcome": "skipped", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 57, "message": "assert 4 == 5\n + where 4 = multiply(2, 2)"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 57, "message": "AssertionError"}], "longrepr": "@pytest.mark.xfail(reason=\"Expected failure\")\n def test_multiply_xfail():\n # Expected fail test (xfail): incorrect expected multiply result\n> assert multiply(2, 2) == 5\nE assert 4 == 5\nE + where 4 = multiply(2, 2)\n\ntests/test_math_utils.py:57: AssertionError"}, "teardown": {"duration": 0.00010261707939207554, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_runtime_error", "lineno": 58, "outcome": "failed", "keywords": ["test_runtime_error", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 8.740008343011141e-05, "outcome": "passed"}, "call": {"duration": 9.921600576490164e-05, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 61, "message": "RuntimeError: Forced runtime error"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 61, "message": "RuntimeError"}], "longrepr": "def test_runtime_error():\n # Test raises an uncaught RuntimeError\n> raise RuntimeError(\"Forced runtime error\")\nE RuntimeError: Forced runtime error\n\ntests/test_math_utils.py:61: RuntimeError"}, "teardown": {"duration": 0.00010332802776247263, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_memory_error", "lineno": 62, "outcome": "failed", "keywords": ["test_memory_error", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 8.500798139721155e-05, "outcome": "passed"}, "call": {"duration": 9.993393905460835e-05, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 65, "message": "MemoryError: Simulated memory error"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 65, "message": "MemoryError"}], "longrepr": "def test_memory_error():\n # Manually raise MemoryError to simulate out-of-memory condition\n> raise MemoryError(\"Simulated memory error\")\nE MemoryError: Simulated memory error\n\ntests/test_math_utils.py:65: MemoryError"}, "teardown": {"duration": 9.968597441911697e-05, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_timeout_error", "lineno": 66, "outcome": "failed", "keywords": ["test_timeout_error", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 8.492800407111645e-05, "outcome": "passed"}, "call": {"duration": 0.00011340191122144461, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 69, "message": "TimeoutError: Simulated timeout error"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 69, "message": "TimeoutError"}], "longrepr": "def test_timeout_error():\n # Manually raise TimeoutError simulating timeout conditions\n> raise TimeoutError(\"Simulated timeout error\")\nE TimeoutError: Simulated timeout error\n\ntests/test_math_utils.py:69: TimeoutError"}, "teardown": {"duration": 0.00010036001913249493, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_recursion_error", "lineno": 70, "outcome": "failed", "keywords": ["test_recursion_error", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 8.490495383739471e-05, "outcome": "passed"}, "call": {"duration": 0.0006251679733395576, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 74, "message": "RecursionError: maximum recursion depth exceeded"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 75, "message": ""}, {"path": "tests/test_math_utils.py", "lineno": 74, "message": "in recursive"}, {"path": "tests/test_math_utils.py", "lineno": 74, "message": "in recursive"}], "longrepr": "def test_recursion_error():\n # Infinite recursion triggers RecursionError\n def recursive():\n return recursive()\n> recursive()\n\ntests/test_math_utils.py:75: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_math_utils.py:74: in recursive\n return recursive()\ntests/test_math_utils.py:74: in recursive\n return recursive()\nE RecursionError: maximum recursion depth exceeded\n!!! Recursion detected (same locals & position)"}, "teardown": {"duration": 0.00011509598698467016, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_floating_point_error", "lineno": 76, "outcome": "failed", "keywords": ["test_floating_point_error", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 8.820195216685534e-05, "outcome": "passed"}, "call": {"duration": 0.0001005029771476984, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 79, "message": "FloatingPointError: Simulated floating point error"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 79, "message": "FloatingPointError"}], "longrepr": "def test_floating_point_error():\n # Manually raise FloatingPointError (rare in practice)\n> raise FloatingPointError(\"Simulated floating point error\")\nE FloatingPointError: Simulated floating point error\n\ntests/test_math_utils.py:79: FloatingPointError"}, "teardown": {"duration": 9.824300650507212e-05, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_floating_point_overflow", "lineno": 80, "outcome": "failed", "keywords": ["test_floating_point_overflow", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 8.452404290437698e-05, "outcome": "passed"}, "call": {"duration": 0.00011720799375325441, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 83, "message": "OverflowError: math range error"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 83, "message": "OverflowError"}], "longrepr": "def test_floating_point_overflow():\n # Exponential overflow triggers OverflowError\n> math.exp(1000)\nE OverflowError: math range error\n\ntests/test_math_utils.py:83: OverflowError"}, "teardown": {"duration": 0.00010688405018299818, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_value_error", "lineno": 84, "outcome": "failed", "keywords": ["test_value_error", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 8.594198152422905e-05, "outcome": "passed"}, "call": {"duration": 0.00010436400771141052, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 87, "message": "ValueError: invalid literal for int() with base 10: 'invalid'"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 87, "message": "ValueError"}], "longrepr": "def test_value_error():\n # ValueError on invalid integer conversion\n> int(\"invalid\")\nE ValueError: invalid literal for int() with base 10: 'invalid'\n\ntests/test_math_utils.py:87: ValueError"}, "teardown": {"duration": 9.64250648394227e-05, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_type_error", "lineno": 88, "outcome": "failed", "keywords": ["test_type_error", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 8.17000400274992e-05, "outcome": "passed"}, "call": {"duration": 9.923207107931376e-05, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 91, "message": "TypeError: 'int' object is not iterable"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 91, "message": "TypeError"}], "longrepr": "def test_type_error():\n # TypeError when passing wrong argument type to sum\n> sum(5)\nE TypeError: 'int' object is not iterable\n\ntests/test_math_utils.py:91: TypeError"}, "teardown": {"duration": 0.00011108396574854851, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_unhandled_exception", "lineno": 92, "outcome": "failed", "keywords": ["test_unhandled_exception", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 8.333101868629456e-05, "outcome": "passed"}, "call": {"duration": 9.730004239827394e-05, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 95, "message": "Exception: Generic unhandled exception"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 95, "message": "Exception"}], "longrepr": "def test_unhandled_exception():\n # Raises generic unhandled Exception\n> raise Exception(\"Generic unhandled exception\")\nE Exception: Generic unhandled exception\n\ntests/test_math_utils.py:95: Exception"}, "teardown": {"duration": 9.557697921991348e-05, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_custom_error", "lineno": 96, "outcome": "failed", "keywords": ["test_custom_error", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 8.298410102725029e-05, "outcome": "passed"}, "call": {"duration": 9.851600043475628e-05, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 99, "message": "test_math_utils.CustomError: Custom error simulation"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 99, "message": "CustomError"}], "longrepr": "def test_custom_error():\n # Raises user-defined CustomError exception\n> raise CustomError(\"Custom error simulation\")\nE test_math_utils.CustomError: Custom error simulation\n\ntests/test_math_utils.py:99: CustomError"}, "teardown": {"duration": 9.784393478184938e-05, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_stop_iteration_direct", "lineno": 100, "outcome": "failed", "keywords": ["test_stop_iteration_direct", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 8.372298907488585e-05, "outcome": "passed"}, "call": {"duration": 0.0001104559050872922, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/.pixi/envs/default/lib/python3.8/site-packages/_pytest/capture.py", "lineno": 880, "message": "RuntimeError: generator raised StopIteration"}, "traceback": [{"path": ".pixi/envs/default/lib/python3.8/site-packages/_pytest/runner.py", "lineno": 341, "message": ""}, {"path": ".pixi/envs/default/lib/python3.8/site-packages/_pytest/runner.py", "lineno": 242, "message": "in "}, {"path": ".pixi/envs/default/lib/python3.8/site-packages/pluggy/_hooks.py", "lineno": 513, "message": "in __call__"}, {"path": ".pixi/envs/default/lib/python3.8/site-packages/pluggy/_manager.py", "lineno": 120, "message": "in _hookexec"}, {"path": ".pixi/envs/default/lib/python3.8/site-packages/_pytest/threadexception.py", "lineno": 92, "message": "in pytest_runtest_call"}, {"path": ".pixi/envs/default/lib/python3.8/site-packages/_pytest/threadexception.py", "lineno": 68, "message": "in thread_exception_runtest_hook"}, {"path": ".pixi/envs/default/lib/python3.8/site-packages/_pytest/unraisableexception.py", "lineno": 95, "message": "in pytest_runtest_call"}, {"path": ".pixi/envs/default/lib/python3.8/site-packages/_pytest/unraisableexception.py", "lineno": 70, "message": "in unraisable_exception_runtest_hook"}, {"path": ".pixi/envs/default/lib/python3.8/site-packages/_pytest/logging.py", "lineno": 846, "message": "in pytest_runtest_call"}, {"path": ".pixi/envs/default/lib/python3.8/site-packages/_pytest/logging.py", "lineno": 829, "message": "in _runtest_for"}, {"path": ".pixi/envs/default/lib/python3.8/site-packages/_pytest/capture.py", "lineno": 880, "message": "RuntimeError"}], "longrepr": "def test_stop_iteration_direct():\n # Directly raise StopIteration exception\n> raise StopIteration()\nE StopIteration\n\ntests/test_math_utils.py:103: StopIteration\n\nThe above exception was the direct cause of the following exception:\n\ncls = \nfunc = . at 0x7f6f74900550>\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.00019826192874461412, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_generator_exit_direct", "lineno": 104, "outcome": "failed", "keywords": ["test_generator_exit_direct", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00012203503865748644, "outcome": "passed"}, "call": {"duration": 0.00011822907254099846, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 107, "message": "GeneratorExit"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 107, "message": "GeneratorExit"}], "longrepr": "def test_generator_exit_direct():\n # Directly raise GeneratorExit exception\n> raise GeneratorExit()\nE GeneratorExit\n\ntests/test_math_utils.py:107: GeneratorExit"}, "teardown": {"duration": 0.00011485104914754629, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_recursion_limit", "lineno": 108, "outcome": "failed", "keywords": ["test_recursion_limit", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 8.859392255544662e-05, "outcome": "passed"}, "call": {"duration": 0.0001329650403931737, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 112, "message": "RecursionError: cannot set the recursion limit to 50 at the recursion depth 37: the limit is too low"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 112, "message": "RecursionError"}], "longrepr": "def test_recursion_limit():\n # Lower recursion limit to force RecursionError on deep recursion\n original_limit = sys.getrecursionlimit()\n> sys.setrecursionlimit(50)\nE RecursionError: cannot set the recursion limit to 50 at the recursion depth 37: the limit is too low\n\ntests/test_math_utils.py:112: RecursionError"}, "teardown": {"duration": 0.0001044620294123888, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_malformed_code", "lineno": 119, "outcome": "failed", "keywords": ["test_malformed_code", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 8.323893416672945e-05, "outcome": "passed"}, "call": {"duration": 0.00010689906775951385, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 122, "message": " File \"\", line 1\n def bad(:\n ^\nSyntaxError: invalid syntax"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 122, "message": "SyntaxError"}], "longrepr": "def test_malformed_code():\n # SyntaxError when executing malformed Python code\n> exec(\"def bad(:\\n pass\")\nE File \"\", line 1\nE def bad(:\nE ^\nE SyntaxError: invalid syntax\n\ntests/test_math_utils.py:122: SyntaxError"}, "teardown": {"duration": 0.00010036409366875887, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_sys_exit", "lineno": 123, "outcome": "failed", "keywords": ["test_sys_exit", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 8.714897558093071e-05, "outcome": "passed"}, "call": {"duration": 9.661808144301176e-05, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 126, "message": "SystemExit: 1"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 126, "message": "SystemExit"}], "longrepr": "def test_sys_exit():\n # Simulate SystemExit via sys.exit\n> sys.exit(1)\nE SystemExit: 1\n\ntests/test_math_utils.py:126: SystemExit"}, "teardown": {"duration": 9.726302232593298e-05, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_broken_function", "lineno": 127, "outcome": "failed", "keywords": ["test_broken_function", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 8.235592395067215e-05, "outcome": "passed"}, "call": {"duration": 0.00010061997454613447, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 131, "message": "TypeError: Broken function"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 132, "message": ""}, {"path": "tests/test_math_utils.py", "lineno": 131, "message": "TypeError"}], "longrepr": "def test_broken_function():\n # Simulate broken function raising TypeError\n def broken_func(*args, **kwargs):\n raise TypeError(\"Broken function\")\n> broken_func()\n\ntests/test_math_utils.py:132: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nargs = (), kwargs = {}\n\n def broken_func(*args, **kwargs):\n> raise TypeError(\"Broken function\")\nE TypeError: Broken function\n\ntests/test_math_utils.py:131: TypeError"}, "teardown": {"duration": 9.920704178512096e-05, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_import_error_patch", "lineno": 133, "outcome": "failed", "keywords": ["test_import_error_patch", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 8.177000563591719e-05, "outcome": "passed"}, "call": {"duration": 0.00010956800542771816, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 139, "message": "ImportError: Simulated ImportError"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 144, "message": ""}, {"path": "tests/test_math_utils.py", "lineno": 139, "message": "ImportError"}], "longrepr": "def test_import_error_patch():\n # Patch import to simulate ImportError on specific module\n original_import = __import__\n def fake_import(name, *args, **kwargs):\n if name == \"fake_module\":\n raise ImportError(\"Simulated ImportError\")\n return original_import(name, *args, **kwargs)\n import builtins\n builtins.__import__, old_import = fake_import, builtins.__import__\n try:\n> __import__(\"fake_module\")\n\ntests/test_math_utils.py:144: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nname = 'fake_module', args = (), kwargs = {}\n\n def fake_import(name, *args, **kwargs):\n if name == \"fake_module\":\n> raise ImportError(\"Simulated ImportError\")\nE ImportError: Simulated ImportError\n\ntests/test_math_utils.py:139: ImportError"}, "teardown": {"duration": 0.00010040099732577801, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_module_not_found_error", "lineno": 147, "outcome": "failed", "keywords": ["test_module_not_found_error", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 8.933199569582939e-05, "outcome": "passed"}, "call": {"duration": 0.00035946001298725605, "outcome": "failed", "crash": {"path": "", "lineno": 973, "message": "ModuleNotFoundError: No module named 'non_existent_module_xyz'"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 150, "message": ""}, {"path": ".pixi/envs/default/lib/python3.8/importlib/__init__.py", "lineno": 127, "message": "in import_module"}, {"path": "", "lineno": 1014, "message": "in _gcd_import"}, {"path": "", "lineno": 991, "message": "in _find_and_load"}, {"path": "", "lineno": 973, "message": "ModuleNotFoundError"}], "longrepr": "def test_module_not_found_error():\n # Raises ModuleNotFoundError (subclass of ImportError) for missing module\n> importlib.import_module(\"non_existent_module_xyz\")\n\ntests/test_math_utils.py:150: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n.pixi/envs/default/lib/python3.8/importlib/__init__.py:127: in import_module\n return _bootstrap._gcd_import(name[level:], package, level)\n:1014: in _gcd_import\n ???\n:991: in _find_and_load\n ???\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nname = 'non_existent_module_xyz'\nimport_ = \n\n> ???\nE ModuleNotFoundError: No module named 'non_existent_module_xyz'\n\n:973: ModuleNotFoundError"}, "teardown": {"duration": 0.00012242794036865234, "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.00010616099461913109, "outcome": "passed"}, "call": {"duration": 9.323796257376671e-05, "outcome": "passed"}, "teardown": {"duration": 6.953394040465355e-05, "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": 7.228192407637835e-05, "outcome": "passed"}, "call": {"duration": 9.292294271290302e-05, "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.00011440599337220192, "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": 8.668401278555393e-05, "outcome": "passed"}, "call": {"duration": 8.700799662619829e-05, "outcome": "passed"}, "teardown": {"duration": 6.783695425838232e-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": 7.479696068912745e-05, "outcome": "passed"}, "call": {"duration": 9.630701970309019e-05, "outcome": "passed"}, "teardown": {"duration": 6.600096821784973e-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": 7.073499727994204e-05, "outcome": "passed"}, "call": {"duration": 9.585998486727476e-05, "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.00011261296458542347, "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": 8.472101762890816e-05, "outcome": "passed"}, "call": {"duration": 0.00010093394666910172, "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": 9.58130694925785e-05, "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": 8.025695569813251e-05, "outcome": "passed"}, "call": {"duration": 8.935399819165468e-05, "outcome": "passed"}, "teardown": {"duration": 6.887107156217098e-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": 8.180399890989065e-05, "outcome": "passed"}, "call": {"duration": 0.0003169990377500653, "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": 9.687000419944525e-05, "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": 8.325593080371618e-05, "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 3371938af..1677e114d 100644 --- a/ci-reports/markdown/raw-test-output.log +++ b/ci-reports/markdown/raw-test-output.log @@ -1,5 +1,561 @@ -ERROR: usage: pytest [options] [file_or_dir] [file_or_dir] [...] -pytest: error: unrecognized arguments: --result-log=ci-reports/markdown/pytest-result.log - inifile: None - rootdir: /workspace/tligui_y/slic +============================= 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, cov-5.0.0, allure-pytest-2.13.5, html-4.1.1, md-report-0.6.2, json-report-1.5.0 +collected 50 items / 2 errors +tests/test_io_utils.py ..FFFFFF.F +tests/test_math_utils.py FF........FFxFFFFFFFFFFFFFFFFFF +tests/test_string_utils.py .F..FF.x + +==================================== ERRORS ==================================== +__________________ ERROR collecting tests/test_broken_fct.py ___________________ +.pixi/envs/default/lib/python3.8/site-packages/_pytest/python.py:493: in importtestmodule + mod = import_path( +.pixi/envs/default/lib/python3.8/site-packages/_pytest/pathlib.py:587: in import_path + importlib.import_module(module_name) +.pixi/envs/default/lib/python3.8/importlib/__init__.py:127: in import_module + return _bootstrap._gcd_import(name[level:], package, level) +:1014: in _gcd_import + ??? +:991: in _find_and_load + ??? +:975: in _find_and_load_unlocked + ??? +:671: in _load_unlocked + ??? +.pixi/envs/default/lib/python3.8/site-packages/_pytest/assertion/rewrite.py:175: in exec_module + source_stat, co = _rewrite_test(fn, self.config) +.pixi/envs/default/lib/python3.8/site-packages/_pytest/assertion/rewrite.py:355: in _rewrite_test + tree = ast.parse(source, filename=strfn) +.pixi/envs/default/lib/python3.8/ast.py:47: in parse + return compile(source, filename, mode, flags, +E File "/workspace/tligui_y/slic/tests/test_broken_fct.py", line 8 +E def test_valid_2(): +E ^ +E SyntaxError: invalid syntax +________________ ERROR collecting tests/test_collector_error.py ________________ +ImportError while importing test module '/workspace/tligui_y/slic/tests/test_collector_error.py'. +Hint: make sure your test modules/packages have valid Python names. +Traceback: +.pixi/envs/default/lib/python3.8/importlib/__init__.py:127: in import_module + return _bootstrap._gcd_import(name[level:], package, level) +tests/test_collector_error.py:1: in + from no_existing_module.math_utils import * +E ModuleNotFoundError: No module named 'no_existing_module' +=================================== FAILURES =================================== +_____________________________ test_cause_io_error ______________________________ + + def test_cause_io_error(): + # Raises manual IOError to simulate IO failure +> cause_io_error() + +tests/test_io_utils.py:25: +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + + def cause_io_error(): +> raise IOError("Forced IO Error for testing") +E OSError: Forced IO Error for testing + +functions/io_utils.py:10: OSError +_____________________________ test_file_not_found ______________________________ + + def test_file_not_found(): + # Reading non-existing file raises FileNotFoundError +> read_file("nonexistent.file") + +tests/test_io_utils.py:29: +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +path = 'nonexistent.file' + + def read_file(path): +> with open(path, "r", encoding="utf-8") as f: +E FileNotFoundError: [Errno 2] No such file or directory: 'nonexistent.file' + +functions/io_utils.py:2: FileNotFoundError +____________________________ test_permission_error _____________________________ + +monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f6f74aa6040> + + def test_permission_error(monkeypatch): + # Patch open to raise PermissionError simulating access denial + def raise_perm_error(*args, **kwargs): + raise PermissionError("Permission denied") + monkeypatch.setattr("builtins.open", raise_perm_error) +> read_file("anyfile.txt") + +tests/test_io_utils.py:36: +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ +functions/io_utils.py:2: in read_file + with open(path, "r", encoding="utf-8") as f: +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +args = ('anyfile.txt', 'r'), kwargs = {'encoding': 'utf-8'} + + def raise_perm_error(*args, **kwargs): +> raise PermissionError("Permission denied") +E PermissionError: Permission denied + +tests/test_io_utils.py:34: PermissionError +_____________________________ test_mock_open_error _____________________________ + +monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f6f74c95280> + + def test_mock_open_error(monkeypatch): + # Mock open() to raise IOError simulating read error + mocked_open = mock.mock_open() + mocked_open.side_effect = IOError("Mocked IOError") + monkeypatch.setattr("builtins.open", mocked_open) +> with open("file.txt", "r") as f: + +tests/test_io_utils.py:43: +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ +.pixi/envs/default/lib/python3.8/unittest/mock.py:1081: in __call__ + return self._mock_call(*args, **kwargs) +.pixi/envs/default/lib/python3.8/unittest/mock.py:1085: in _mock_call + return self._execute_mock_call(*args, **kwargs) +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = +args = ('file.txt', 'r'), kwargs = {}, effect = OSError('Mocked IOError') + + def _execute_mock_call(self, /, *args, **kwargs): + # separate from _increment_mock_call so that awaited functions are + # executed separately from their call, also AsyncMock overrides this method + + effect = self.side_effect + if effect is not None: + if _is_exception(effect): +> raise effect +E OSError: Mocked IOError + +.pixi/envs/default/lib/python3.8/unittest/mock.py:1140: OSError +________________________ test_file_handle_closed_error _________________________ + + def test_file_handle_closed_error(): + # Accessing closed file raises ValueError + f = io.StringIO("content") + f.close() +> f.read() +E ValueError: I/O operation on closed file + +tests/test_io_utils.py:50: ValueError +________________________________ test_os_error _________________________________ + +monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f6f74ce8100> + + def test_os_error(monkeypatch): + # Patch os.remove to raise OSError simulating filesystem error + def raise_os_error(path): + raise OSError("Simulated OSError") + monkeypatch.setattr("os.remove", raise_os_error) +> os.remove("file.txt") + +tests/test_io_utils.py:57: +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +path = 'file.txt' + + def raise_os_error(path): +> raise OSError("Simulated OSError") +E OSError: Simulated OSError + +tests/test_io_utils.py:55: OSError +__________________________ test_file_not_found_error ___________________________ + + def test_file_not_found_error(): + # Raises FileNotFoundError when opening a non-existent file +> open("no_such_file.txt", "r") +E FileNotFoundError: [Errno 2] No such file or directory: 'no_such_file.txt' + +tests/test_io_utils.py:69: FileNotFoundError +_________________________________ test_broken __________________________________ + + def test_broken(): + # simulating a broken or faulty test implementation that will cause the test to error +> want_the_test_to_fail +E NameError: name 'want_the_test_to_fail' is not defined + +tests/test_math_utils.py:16: NameError +__________________________ test_call_missing_function __________________________ + + def test_call_missing_function(): + # Accessing a missing function attribute raises AttributeError +> getattr(math_utils, "non_existent_function")() +E AttributeError: module 'functions.math_utils' has no attribute 'non_existent_function' + +tests/test_math_utils.py:20: AttributeError +______________________________ test_addition_fail ______________________________ + + def test_addition_fail(): + # Assertion failure: expected incorrect result +> assert addition(2, 2) == 5 +E assert 4 == 5 +E + where 4 = addition(2, 2) + +tests/test_math_utils.py:48: AssertionError +______________________________ test_division_zero ______________________________ + + def test_division_zero(): + # Will raise ZeroDivisionError if not handled in division +> division(1, 0) + +tests/test_math_utils.py:52: +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +a = 1, b = 0 + + def division(a, b): +> return a / b +E ZeroDivisionError: division by zero + +functions/math_utils.py:5: ZeroDivisionError +______________________________ test_runtime_error ______________________________ + + def test_runtime_error(): + # Test raises an uncaught RuntimeError +> raise RuntimeError("Forced runtime error") +E RuntimeError: Forced runtime error + +tests/test_math_utils.py:61: RuntimeError +______________________________ test_memory_error _______________________________ + + def test_memory_error(): + # Manually raise MemoryError to simulate out-of-memory condition +> raise MemoryError("Simulated memory error") +E MemoryError: Simulated memory error + +tests/test_math_utils.py:65: MemoryError +______________________________ test_timeout_error ______________________________ + + def test_timeout_error(): + # Manually raise TimeoutError simulating timeout conditions +> raise TimeoutError("Simulated timeout error") +E TimeoutError: Simulated timeout error + +tests/test_math_utils.py:69: TimeoutError +_____________________________ test_recursion_error _____________________________ + + def test_recursion_error(): + # Infinite recursion triggers RecursionError + def recursive(): + return recursive() +> recursive() + +tests/test_math_utils.py:75: +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ +tests/test_math_utils.py:74: in recursive + return recursive() +tests/test_math_utils.py:74: in recursive + return recursive() +E RecursionError: maximum recursion depth exceeded +!!! Recursion detected (same locals & position) +__________________________ test_floating_point_error ___________________________ + + def test_floating_point_error(): + # Manually raise FloatingPointError (rare in practice) +> raise FloatingPointError("Simulated floating point error") +E FloatingPointError: Simulated floating point error + +tests/test_math_utils.py:79: FloatingPointError +_________________________ test_floating_point_overflow _________________________ + + def test_floating_point_overflow(): + # Exponential overflow triggers OverflowError +> math.exp(1000) +E OverflowError: math range error + +tests/test_math_utils.py:83: OverflowError +_______________________________ test_value_error _______________________________ + + def test_value_error(): + # ValueError on invalid integer conversion +> int("invalid") +E ValueError: invalid literal for int() with base 10: 'invalid' + +tests/test_math_utils.py:87: ValueError +_______________________________ test_type_error ________________________________ + + def test_type_error(): + # TypeError when passing wrong argument type to sum +> sum(5) +E TypeError: 'int' object is not iterable + +tests/test_math_utils.py:91: TypeError +___________________________ test_unhandled_exception ___________________________ + + def test_unhandled_exception(): + # Raises generic unhandled Exception +> raise Exception("Generic unhandled exception") +E Exception: Generic unhandled exception + +tests/test_math_utils.py:95: Exception +______________________________ test_custom_error _______________________________ + + def test_custom_error(): + # Raises user-defined CustomError exception +> raise CustomError("Custom error simulation") +E test_math_utils.CustomError: Custom error simulation + +tests/test_math_utils.py:99: CustomError +__________________________ test_stop_iteration_direct __________________________ + + def test_stop_iteration_direct(): + # Directly raise StopIteration exception +> raise StopIteration() +E StopIteration + +tests/test_math_utils.py:103: StopIteration + +The above exception was the direct cause of the following exception: + +cls = +func = . at 0x7f6f74900550> +when = 'call' +reraise = (, ) + + @classmethod + def from_call( + cls, + func: Callable[[], TResult], + when: Literal["collect", "setup", "call", "teardown"], + reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, + ) -> CallInfo[TResult]: + """Call func, wrapping the result in a CallInfo. + + :param func: + The function to call. Called without arguments. + :type func: Callable[[], _pytest.runner.TResult] + :param when: + The phase in which the function is called. + :param reraise: + Exception or exceptions that shall propagate if raised by the + function, instead of being wrapped in the CallInfo. + """ + excinfo = None + start = timing.time() + precise_start = timing.perf_counter() + try: +> result: TResult | None = func() + +.pixi/envs/default/lib/python3.8/site-packages/_pytest/runner.py:341: +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ +.pixi/envs/default/lib/python3.8/site-packages/_pytest/runner.py:242: in + lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise +.pixi/envs/default/lib/python3.8/site-packages/pluggy/_hooks.py:513: in __call__ + return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) +.pixi/envs/default/lib/python3.8/site-packages/pluggy/_manager.py:120: in _hookexec + return self._inner_hookexec(hook_name, methods, kwargs, firstresult) +.pixi/envs/default/lib/python3.8/site-packages/_pytest/threadexception.py:92: in pytest_runtest_call + yield from thread_exception_runtest_hook() +.pixi/envs/default/lib/python3.8/site-packages/_pytest/threadexception.py:68: in thread_exception_runtest_hook + yield +.pixi/envs/default/lib/python3.8/site-packages/_pytest/unraisableexception.py:95: in pytest_runtest_call + yield from unraisable_exception_runtest_hook() +.pixi/envs/default/lib/python3.8/site-packages/_pytest/unraisableexception.py:70: in unraisable_exception_runtest_hook + yield +.pixi/envs/default/lib/python3.8/site-packages/_pytest/logging.py:846: in pytest_runtest_call + yield from self._runtest_for(item, "call") +.pixi/envs/default/lib/python3.8/site-packages/_pytest/logging.py:829: in _runtest_for + yield +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = _capture_fixture=None> +item = + + @hookimpl(wrapper=True) + def pytest_runtest_call(self, item: Item) -> Generator[None]: + with self.item_capture("call", item): +> return (yield) +E RuntimeError: generator raised StopIteration + +.pixi/envs/default/lib/python3.8/site-packages/_pytest/capture.py:880: RuntimeError +__________________________ test_generator_exit_direct __________________________ + + def test_generator_exit_direct(): + # Directly raise GeneratorExit exception +> raise GeneratorExit() +E GeneratorExit + +tests/test_math_utils.py:107: GeneratorExit +_____________________________ test_recursion_limit _____________________________ + + def test_recursion_limit(): + # Lower recursion limit to force RecursionError on deep recursion + original_limit = sys.getrecursionlimit() +> sys.setrecursionlimit(50) +E RecursionError: cannot set the recursion limit to 50 at the recursion depth 37: the limit is too low + +tests/test_math_utils.py:112: RecursionError +_____________________________ test_malformed_code ______________________________ + + def test_malformed_code(): + # SyntaxError when executing malformed Python code +> exec("def bad(:\n pass") +E File "", line 1 +E def bad(: +E ^ +E SyntaxError: invalid syntax + +tests/test_math_utils.py:122: SyntaxError +________________________________ test_sys_exit _________________________________ + + def test_sys_exit(): + # Simulate SystemExit via sys.exit +> sys.exit(1) +E SystemExit: 1 + +tests/test_math_utils.py:126: SystemExit +_____________________________ test_broken_function _____________________________ + + def test_broken_function(): + # Simulate broken function raising TypeError + def broken_func(*args, **kwargs): + raise TypeError("Broken function") +> broken_func() + +tests/test_math_utils.py:132: +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +args = (), kwargs = {} + + def broken_func(*args, **kwargs): +> raise TypeError("Broken function") +E TypeError: Broken function + +tests/test_math_utils.py:131: TypeError +___________________________ test_import_error_patch ____________________________ + + def test_import_error_patch(): + # Patch import to simulate ImportError on specific module + original_import = __import__ + def fake_import(name, *args, **kwargs): + if name == "fake_module": + raise ImportError("Simulated ImportError") + return original_import(name, *args, **kwargs) + import builtins + builtins.__import__, old_import = fake_import, builtins.__import__ + try: +> __import__("fake_module") + +tests/test_math_utils.py:144: +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +name = 'fake_module', args = (), kwargs = {} + + def fake_import(name, *args, **kwargs): + if name == "fake_module": +> raise ImportError("Simulated ImportError") +E ImportError: Simulated ImportError + +tests/test_math_utils.py:139: ImportError +_________________________ test_module_not_found_error __________________________ + + def test_module_not_found_error(): + # Raises ModuleNotFoundError (subclass of ImportError) for missing module +> importlib.import_module("non_existent_module_xyz") + +tests/test_math_utils.py:150: +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ +.pixi/envs/default/lib/python3.8/importlib/__init__.py:127: in import_module + return _bootstrap._gcd_import(name[level:], package, level) +:1014: in _gcd_import + ??? +:991: in _find_and_load + ??? +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +name = 'non_existent_module_xyz' +import_ = + +> ??? +E ModuleNotFoundError: No module named 'non_existent_module_xyz' + +:973: ModuleNotFoundError +__________________________ test_uppercase_type_error ___________________________ + + def test_uppercase_type_error(): + # TypeError when input is None (invalid input) +> uppercase(None) + +tests/test_string_utils.py:14: +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +s = None + + def uppercase(s): + if s is None: +> raise TypeError("Input cannot be None") +E TypeError: Input cannot be None + +functions/string_utils.py:3: TypeError +__________________________ test_unicode_decode_error ___________________________ + + def test_unicode_decode_error(): + # UnicodeDecodeError when decoding invalid byte sequence +> b'\xff'.decode('utf-8') +E UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 0: invalid start byte + +tests/test_string_utils.py:26: UnicodeDecodeError +_____________________ test_unicode_decode_surrogateescape ______________________ + + def test_unicode_decode_surrogateescape(): + # UnicodeDecodeError with strict error handler on invalid byte +> b"\x80".decode("utf-8", errors="strict") +E UnicodeDecodeError: 'utf-8' codec can't decode byte 0x80 in position 0: invalid start byte + +tests/test_string_utils.py:30: UnicodeDecodeError +=============================== warnings summary =============================== +tests/test_string_utils.py::test_warning_emit + /workspace/tligui_y/slic/tests/test_string_utils.py:22: UserWarning: Test warning + warnings.warn("Test warning", UserWarning) + +-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html +- generated xml file: /workspace/tligui_y/slic/ci-reports/xml/pytest-report.xml - +--------------------------------- JSON report ---------------------------------- +report saved to: ci-reports/markdown/pytest-report.json +- Generated html report: file:///workspace/tligui_y/slic/ci-reports/html/pytest-report.html - +=========================== short test summary info ============================ +FAILED tests/test_io_utils.py::test_cause_io_error - OSError: Forced IO Error for testing +FAILED tests/test_io_utils.py::test_file_not_found - FileNotFoundError: [Errno 2] No such file or directory: 'nonexistent.file' +FAILED tests/test_io_utils.py::test_permission_error - PermissionError: Permission denied +FAILED tests/test_io_utils.py::test_mock_open_error - OSError: Mocked IOError +FAILED tests/test_io_utils.py::test_file_handle_closed_error - ValueError: I/O operation on closed file +FAILED tests/test_io_utils.py::test_os_error - OSError: Simulated OSError +FAILED tests/test_io_utils.py::test_file_not_found_error - FileNotFoundError: [Errno 2] No such file or directory: 'no_such_file.txt' +FAILED tests/test_math_utils.py::test_broken - NameError: name 'want_the_test_to_fail' is not defined +FAILED tests/test_math_utils.py::test_call_missing_function - AttributeError: module 'functions.math_utils' has no attribute 'non_existent_function' +FAILED tests/test_math_utils.py::test_addition_fail - assert 4 == 5 + + where 4 = addition(2, 2) +FAILED tests/test_math_utils.py::test_division_zero - ZeroDivisionError: division by zero +FAILED tests/test_math_utils.py::test_runtime_error - RuntimeError: Forced runtime error +FAILED tests/test_math_utils.py::test_memory_error - MemoryError: Simulated memory error +FAILED tests/test_math_utils.py::test_timeout_error - TimeoutError: Simulated timeout error +FAILED tests/test_math_utils.py::test_recursion_error - RecursionError: maximum recursion depth exceeded +FAILED tests/test_math_utils.py::test_floating_point_error - FloatingPointError: Simulated floating point error +FAILED tests/test_math_utils.py::test_floating_point_overflow - OverflowError: math range error +FAILED tests/test_math_utils.py::test_value_error - ValueError: invalid literal for int() with base 10: 'invalid' +FAILED tests/test_math_utils.py::test_type_error - TypeError: 'int' object is not iterable +FAILED tests/test_math_utils.py::test_unhandled_exception - Exception: Generic unhandled exception +FAILED tests/test_math_utils.py::test_custom_error - test_math_utils.CustomError: Custom error simulation +FAILED tests/test_math_utils.py::test_stop_iteration_direct - RuntimeError: generator raised StopIteration +FAILED tests/test_math_utils.py::test_generator_exit_direct - GeneratorExit +FAILED tests/test_math_utils.py::test_recursion_limit - RecursionError: cannot set the recursion limit to 50 at the recursion depth 37: the limit is too low +FAILED tests/test_math_utils.py::test_malformed_code - File "", line 1 + def bad(: + ^ +SyntaxError: invalid syntax +FAILED tests/test_math_utils.py::test_sys_exit - SystemExit: 1 +FAILED tests/test_math_utils.py::test_broken_function - TypeError: Broken function +FAILED tests/test_math_utils.py::test_import_error_patch - ImportError: Simulated ImportError +FAILED tests/test_math_utils.py::test_module_not_found_error - ModuleNotFoundError: No module named 'non_existent_module_xyz' +FAILED tests/test_string_utils.py::test_uppercase_type_error - TypeError: Input cannot be None +FAILED tests/test_string_utils.py::test_unicode_decode_error - UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 0: invalid start byte +FAILED tests/test_string_utils.py::test_unicode_decode_surrogateescape - UnicodeDecodeError: 'utf-8' codec can't decode byte 0x80 in position 0: invalid start byte +ERROR tests/test_broken_fct.py +ERROR tests/test_collector_error.py +!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! KeyboardInterrupt !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! +/workspace/tligui_y/slic/tests/test_string_utils.py:43: KeyboardInterrupt +(to show a full traceback on KeyboardInterrupt use --full-trace) +======== 32 failed, 15 passed, 2 xfailed, 1 warning, 2 errors in 0.60s ========= diff --git a/ci-reports/xml/pytest-report.xml b/ci-reports/xml/pytest-report.xml new file mode 100644 index 000000000..8f2517b9b --- /dev/null +++ b/ci-reports/xml/pytest-report.xml @@ -0,0 +1,397 @@ +.pixi/envs/default/lib/python3.8/site-packages/_pytest/python.py:493: in importtestmodule + mod = import_path( +.pixi/envs/default/lib/python3.8/site-packages/_pytest/pathlib.py:587: in import_path + importlib.import_module(module_name) +.pixi/envs/default/lib/python3.8/importlib/__init__.py:127: in import_module + return _bootstrap._gcd_import(name[level:], package, level) +<frozen importlib._bootstrap>:1014: in _gcd_import + ??? +<frozen importlib._bootstrap>:991: in _find_and_load + ??? +<frozen importlib._bootstrap>:975: in _find_and_load_unlocked + ??? +<frozen importlib._bootstrap>:671: in _load_unlocked + ??? +.pixi/envs/default/lib/python3.8/site-packages/_pytest/assertion/rewrite.py:175: in exec_module + source_stat, co = _rewrite_test(fn, self.config) +.pixi/envs/default/lib/python3.8/site-packages/_pytest/assertion/rewrite.py:355: in _rewrite_test + tree = ast.parse(source, filename=strfn) +.pixi/envs/default/lib/python3.8/ast.py:47: in parse + return compile(source, filename, mode, flags, +E File "/workspace/tligui_y/slic/tests/test_broken_fct.py", line 8 +E def test_valid_2(): +E ^ +E SyntaxError: invalid syntaxImportError while importing test module '/workspace/tligui_y/slic/tests/test_collector_error.py'. +Hint: make sure your test modules/packages have valid Python names. +Traceback: +.pixi/envs/default/lib/python3.8/importlib/__init__.py:127: in import_module + return _bootstrap._gcd_import(name[level:], package, level) +tests/test_collector_error.py:1: in <module> + from no_existing_module.math_utils import * +E ModuleNotFoundError: No module named 'no_existing_module'def test_cause_io_error(): + # Raises manual IOError to simulate IO failure +> cause_io_error() + +tests/test_io_utils.py:25: +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + + def cause_io_error(): +> raise IOError("Forced IO Error for testing") +E OSError: Forced IO Error for testing + +functions/io_utils.py:10: OSErrordef test_file_not_found(): + # Reading non-existing file raises FileNotFoundError +> read_file("nonexistent.file") + +tests/test_io_utils.py:29: +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +path = 'nonexistent.file' + + def read_file(path): +> with open(path, "r", encoding="utf-8") as f: +E FileNotFoundError: [Errno 2] No such file or directory: 'nonexistent.file' + +functions/io_utils.py:2: FileNotFoundErrormonkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f6f74aa6040> + + def test_permission_error(monkeypatch): + # Patch open to raise PermissionError simulating access denial + def raise_perm_error(*args, **kwargs): + raise PermissionError("Permission denied") + monkeypatch.setattr("builtins.open", raise_perm_error) +> read_file("anyfile.txt") + +tests/test_io_utils.py:36: +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ +functions/io_utils.py:2: in read_file + with open(path, "r", encoding="utf-8") as f: +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +args = ('anyfile.txt', 'r'), kwargs = {'encoding': 'utf-8'} + + def raise_perm_error(*args, **kwargs): +> raise PermissionError("Permission denied") +E PermissionError: Permission denied + +tests/test_io_utils.py:34: PermissionErrormonkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f6f74c95280> + + def test_mock_open_error(monkeypatch): + # Mock open() to raise IOError simulating read error + mocked_open = mock.mock_open() + mocked_open.side_effect = IOError("Mocked IOError") + monkeypatch.setattr("builtins.open", mocked_open) +> with open("file.txt", "r") as f: + +tests/test_io_utils.py:43: +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ +.pixi/envs/default/lib/python3.8/unittest/mock.py:1081: in __call__ + return self._mock_call(*args, **kwargs) +.pixi/envs/default/lib/python3.8/unittest/mock.py:1085: in _mock_call + return self._execute_mock_call(*args, **kwargs) +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = <MagicMock name='open' spec='builtin_function_or_method' id='140116677448752'> +args = ('file.txt', 'r'), kwargs = {}, effect = OSError('Mocked IOError') + + def _execute_mock_call(self, /, *args, **kwargs): + # separate from _increment_mock_call so that awaited functions are + # executed separately from their call, also AsyncMock overrides this method + + effect = self.side_effect + if effect is not None: + if _is_exception(effect): +> raise effect +E OSError: Mocked IOError + +.pixi/envs/default/lib/python3.8/unittest/mock.py:1140: OSErrordef test_file_handle_closed_error(): + # Accessing closed file raises ValueError + f = io.StringIO("content") + f.close() +> f.read() +E ValueError: I/O operation on closed file + +tests/test_io_utils.py:50: ValueErrormonkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f6f74ce8100> + + def test_os_error(monkeypatch): + # Patch os.remove to raise OSError simulating filesystem error + def raise_os_error(path): + raise OSError("Simulated OSError") + monkeypatch.setattr("os.remove", raise_os_error) +> os.remove("file.txt") + +tests/test_io_utils.py:57: +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +path = 'file.txt' + + def raise_os_error(path): +> raise OSError("Simulated OSError") +E OSError: Simulated OSError + +tests/test_io_utils.py:55: OSErrordef test_file_not_found_error(): + # Raises FileNotFoundError when opening a non-existent file +> open("no_such_file.txt", "r") +E FileNotFoundError: [Errno 2] No such file or directory: 'no_such_file.txt' + +tests/test_io_utils.py:69: FileNotFoundErrordef test_broken(): + # simulating a broken or faulty test implementation that will cause the test to error +> want_the_test_to_fail +E NameError: name 'want_the_test_to_fail' is not defined + +tests/test_math_utils.py:16: NameErrordef test_call_missing_function(): + # Accessing a missing function attribute raises AttributeError +> getattr(math_utils, "non_existent_function")() +E AttributeError: module 'functions.math_utils' has no attribute 'non_existent_function' + +tests/test_math_utils.py:20: AttributeErrordef test_addition_fail(): + # Assertion failure: expected incorrect result +> assert addition(2, 2) == 5 +E assert 4 == 5 +E + where 4 = addition(2, 2) + +tests/test_math_utils.py:48: AssertionErrordef test_division_zero(): + # Will raise ZeroDivisionError if not handled in division +> division(1, 0) + +tests/test_math_utils.py:52: +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +a = 1, b = 0 + + def division(a, b): +> return a / b +E ZeroDivisionError: division by zero + +functions/math_utils.py:5: ZeroDivisionErrordef test_runtime_error(): + # Test raises an uncaught RuntimeError +> raise RuntimeError("Forced runtime error") +E RuntimeError: Forced runtime error + +tests/test_math_utils.py:61: RuntimeErrordef test_memory_error(): + # Manually raise MemoryError to simulate out-of-memory condition +> raise MemoryError("Simulated memory error") +E MemoryError: Simulated memory error + +tests/test_math_utils.py:65: MemoryErrordef test_timeout_error(): + # Manually raise TimeoutError simulating timeout conditions +> raise TimeoutError("Simulated timeout error") +E TimeoutError: Simulated timeout error + +tests/test_math_utils.py:69: TimeoutErrordef test_recursion_error(): + # Infinite recursion triggers RecursionError + def recursive(): + return recursive() +> recursive() + +tests/test_math_utils.py:75: +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ +tests/test_math_utils.py:74: in recursive + return recursive() +tests/test_math_utils.py:74: in recursive + return recursive() +E RecursionError: maximum recursion depth exceeded +!!! Recursion detected (same locals & position)def test_floating_point_error(): + # Manually raise FloatingPointError (rare in practice) +> raise FloatingPointError("Simulated floating point error") +E FloatingPointError: Simulated floating point error + +tests/test_math_utils.py:79: FloatingPointErrordef test_floating_point_overflow(): + # Exponential overflow triggers OverflowError +> math.exp(1000) +E OverflowError: math range error + +tests/test_math_utils.py:83: OverflowErrordef test_value_error(): + # ValueError on invalid integer conversion +> int("invalid") +E ValueError: invalid literal for int() with base 10: 'invalid' + +tests/test_math_utils.py:87: ValueErrordef test_type_error(): + # TypeError when passing wrong argument type to sum +> sum(5) +E TypeError: 'int' object is not iterable + +tests/test_math_utils.py:91: TypeErrordef test_unhandled_exception(): + # Raises generic unhandled Exception +> raise Exception("Generic unhandled exception") +E Exception: Generic unhandled exception + +tests/test_math_utils.py:95: Exceptiondef test_custom_error(): + # Raises user-defined CustomError exception +> raise CustomError("Custom error simulation") +E test_math_utils.CustomError: Custom error simulation + +tests/test_math_utils.py:99: CustomErrordef test_stop_iteration_direct(): + # Directly raise StopIteration exception +> raise StopIteration() +E StopIteration + +tests/test_math_utils.py:103: StopIteration + +The above exception was the direct cause of the following exception: + +cls = <class '_pytest.runner.CallInfo'> +func = <function call_and_report.<locals>.<lambda> at 0x7f6f74900550> +when = 'call' +reraise = (<class '_pytest.outcomes.Exit'>, <class 'KeyboardInterrupt'>) + + @classmethod + def from_call( + cls, + func: Callable[[], TResult], + when: Literal["collect", "setup", "call", "teardown"], + reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, + ) -> CallInfo[TResult]: + """Call func, wrapping the result in a CallInfo. + + :param func: + The function to call. Called without arguments. + :type func: Callable[[], _pytest.runner.TResult] + :param when: + The phase in which the function is called. + :param reraise: + Exception or exceptions that shall propagate if raised by the + function, instead of being wrapped in the CallInfo. + """ + excinfo = None + start = timing.time() + precise_start = timing.perf_counter() + try: +> result: TResult | None = func() + +.pixi/envs/default/lib/python3.8/site-packages/_pytest/runner.py:341: +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ +.pixi/envs/default/lib/python3.8/site-packages/_pytest/runner.py:242: in <lambda> + lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise +.pixi/envs/default/lib/python3.8/site-packages/pluggy/_hooks.py:513: in __call__ + return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) +.pixi/envs/default/lib/python3.8/site-packages/pluggy/_manager.py:120: in _hookexec + return self._inner_hookexec(hook_name, methods, kwargs, firstresult) +.pixi/envs/default/lib/python3.8/site-packages/_pytest/threadexception.py:92: in pytest_runtest_call + yield from thread_exception_runtest_hook() +.pixi/envs/default/lib/python3.8/site-packages/_pytest/threadexception.py:68: in thread_exception_runtest_hook + yield +.pixi/envs/default/lib/python3.8/site-packages/_pytest/unraisableexception.py:95: in pytest_runtest_call + yield from unraisable_exception_runtest_hook() +.pixi/envs/default/lib/python3.8/site-packages/_pytest/unraisableexception.py:70: in unraisable_exception_runtest_hook + yield +.pixi/envs/default/lib/python3.8/site-packages/_pytest/logging.py:846: in pytest_runtest_call + yield from self._runtest_for(item, "call") +.pixi/envs/default/lib/python3.8/site-packages/_pytest/logging.py:829: in _runtest_for + yield +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = <CaptureManager _method='no' _global_capturing=<MultiCapture out=None err=None in_=None _state='suspended' _in_suspended=False> _capture_fixture=None> +item = <Function test_stop_iteration_direct> + + @hookimpl(wrapper=True) + def pytest_runtest_call(self, item: Item) -> Generator[None]: + with self.item_capture("call", item): +> return (yield) +E RuntimeError: generator raised StopIteration + +.pixi/envs/default/lib/python3.8/site-packages/_pytest/capture.py:880: RuntimeErrordef test_generator_exit_direct(): + # Directly raise GeneratorExit exception +> raise GeneratorExit() +E GeneratorExit + +tests/test_math_utils.py:107: GeneratorExitdef test_recursion_limit(): + # Lower recursion limit to force RecursionError on deep recursion + original_limit = sys.getrecursionlimit() +> sys.setrecursionlimit(50) +E RecursionError: cannot set the recursion limit to 50 at the recursion depth 37: the limit is too low + +tests/test_math_utils.py:112: RecursionErrordef test_malformed_code(): + # SyntaxError when executing malformed Python code +> exec("def bad(:\n pass") +E File "<string>", line 1 +E def bad(: +E ^ +E SyntaxError: invalid syntax + +tests/test_math_utils.py:122: SyntaxErrordef test_sys_exit(): + # Simulate SystemExit via sys.exit +> sys.exit(1) +E SystemExit: 1 + +tests/test_math_utils.py:126: SystemExitdef test_broken_function(): + # Simulate broken function raising TypeError + def broken_func(*args, **kwargs): + raise TypeError("Broken function") +> broken_func() + +tests/test_math_utils.py:132: +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +args = (), kwargs = {} + + def broken_func(*args, **kwargs): +> raise TypeError("Broken function") +E TypeError: Broken function + +tests/test_math_utils.py:131: TypeErrordef test_import_error_patch(): + # Patch import to simulate ImportError on specific module + original_import = __import__ + def fake_import(name, *args, **kwargs): + if name == "fake_module": + raise ImportError("Simulated ImportError") + return original_import(name, *args, **kwargs) + import builtins + builtins.__import__, old_import = fake_import, builtins.__import__ + try: +> __import__("fake_module") + +tests/test_math_utils.py:144: +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +name = 'fake_module', args = (), kwargs = {} + + def fake_import(name, *args, **kwargs): + if name == "fake_module": +> raise ImportError("Simulated ImportError") +E ImportError: Simulated ImportError + +tests/test_math_utils.py:139: ImportErrordef test_module_not_found_error(): + # Raises ModuleNotFoundError (subclass of ImportError) for missing module +> importlib.import_module("non_existent_module_xyz") + +tests/test_math_utils.py:150: +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ +.pixi/envs/default/lib/python3.8/importlib/__init__.py:127: in import_module + return _bootstrap._gcd_import(name[level:], package, level) +<frozen importlib._bootstrap>:1014: in _gcd_import + ??? +<frozen importlib._bootstrap>:991: in _find_and_load + ??? +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +name = 'non_existent_module_xyz' +import_ = <function _gcd_import at 0x7f6f793954c0> + +> ??? +E ModuleNotFoundError: No module named 'non_existent_module_xyz' + +<frozen importlib._bootstrap>:973: ModuleNotFoundErrordef test_uppercase_type_error(): + # TypeError when input is None (invalid input) +> uppercase(None) + +tests/test_string_utils.py:14: +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +s = None + + def uppercase(s): + if s is None: +> raise TypeError("Input cannot be None") +E TypeError: Input cannot be None + +functions/string_utils.py:3: TypeErrordef test_unicode_decode_error(): + # UnicodeDecodeError when decoding invalid byte sequence +> b'\xff'.decode('utf-8') +E UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 0: invalid start byte + +tests/test_string_utils.py:26: UnicodeDecodeErrordef test_unicode_decode_surrogateescape(): + # UnicodeDecodeError with strict error handler on invalid byte +> b"\x80".decode("utf-8", errors="strict") +E UnicodeDecodeError: 'utf-8' codec can't decode byte 0x80 in position 0: invalid start byte + +tests/test_string_utils.py:30: UnicodeDecodeError \ No newline at end of file