From d2407a02018aee73bfd615b5caf89db06404d525 Mon Sep 17 00:00:00 2001 From: ci-bot Date: Tue, 15 Jul 2025 13:44:37 +0000 Subject: [PATCH] CI: update test report and coverage files --- ci-reports/markdown/TEST-REPORT.md | 1037 ++++++++++++++++++----- ci-reports/markdown/md-report.log | 1 + ci-reports/markdown/pytest-report.json | 2 +- ci-reports/markdown/raw-test-output.log | 16 +- 4 files changed, 842 insertions(+), 214 deletions(-) diff --git a/ci-reports/markdown/TEST-REPORT.md b/ci-reports/markdown/TEST-REPORT.md index 431db183d..59fef6b04 100644 --- a/ci-reports/markdown/TEST-REPORT.md +++ b/ci-reports/markdown/TEST-REPORT.md @@ -1,5 +1,632 @@ +โš ๏ธ **Test execution interrupted** + +> The test run was interrupted by the user (reasons : KeyboardInterrupt or ...). + +
+๐Ÿ“‹ Short test summary info + +``` +=========================== 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.72s ========= +``` +
+ +
+๐Ÿชต Full raw pytest log + +``` +============================= test session starts ============================== +platform linux -- Python 3.8.20, pytest-8.3.4, pluggy-1.5.0 +rootdir: /workspace/tligui_y/slic +plugins: cov-5.0.0, metadata-3.1.1, html-4.1.1, allure-pytest-2.13.5, json-report-1.5.0, md-report-0.6.2 +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 0x7f9b18814ca0> + + 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 0x7f9b182d7bb0> + + 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 0x7f9b156d8340> + + 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 0x7f9b1598c550> +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 +--------------------------------- 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 + +=========================== 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.72s ========= +``` +
+ +--- + # ๐Ÿงช Test Report -*Generated on 2025-07-15 13:41:51* +*Generated on 2025-07-15 13:44:36* ## ๐Ÿ“‹ Summary - **Passed**: `16` @@ -7,7 +634,7 @@ - **Xfailed**: `2` - **Total**: `50` - **Collected**: `50` -- **Total Duration**: `0.764`s +- **Total Duration**: `0.721`s ## ๐Ÿ”Ž Tests
@@ -27,7 +654,7 @@ โœ… #1 - **Status:** โœ… `passed` -- **Duration:** `0.000446` s +- **Duration:** `0.000426` s ### ๐Ÿ”ง Setup Phase @@ -36,7 +663,7 @@ ๐Ÿ“Œ Duration ``` -`0.003444524947553873` +`0.0032127780141308904` ``` @@ -61,7 +688,7 @@ ๐Ÿ“Œ Duration ``` -`0.00044572295155376196` +`0.0004261339781805873` ``` @@ -86,7 +713,7 @@ ๐Ÿ“Œ Duration ``` -`0.0002459869720041752` +`0.00024305901024490595` ``` @@ -120,7 +747,7 @@ โœ… #2 - **Status:** โœ… `passed` -- **Duration:** `0.000295` s +- **Duration:** `0.000287` s ### ๐Ÿ”ง Setup Phase @@ -129,7 +756,7 @@ ๐Ÿ“Œ Duration ``` -`0.0004850690020248294` +`0.00046387407928705215` ``` @@ -154,7 +781,7 @@ ๐Ÿ“Œ Duration ``` -`0.0002949959598481655` +`0.00028738402761518955` ``` @@ -179,7 +806,7 @@ ๐Ÿ“Œ Duration ``` -`0.00015547603834420443` +`0.00013642804697155952` ``` @@ -213,7 +840,7 @@ โœ… #9 - **Status:** โœ… `passed` -- **Duration:** `0.000857` s +- **Duration:** `0.000923` s ### ๐Ÿ”ง Setup Phase @@ -222,7 +849,7 @@ ๐Ÿ“Œ Duration ``` -`0.0006876830011606216` +`0.0006583039648830891` ``` @@ -247,7 +874,7 @@ ๐Ÿ“Œ Duration ``` -`0.0008573830127716064` +`0.0009225410176441073` ``` @@ -272,7 +899,7 @@ ๐Ÿ“Œ Duration ``` -`0.0001462970394641161` +`0.0001621319679543376` ``` @@ -314,7 +941,7 @@ โœ… #13 parameters: [2-2-4] - **Status:** โœ… `passed` -- **Duration:** `0.000149` s +- **Duration:** `0.000147` s - **Parameters:** `2-2-4` ### ๐Ÿ”ง Setup Phase @@ -324,7 +951,7 @@ ๐Ÿ“Œ Duration ``` -`0.00031657307408750057` +`0.00029173295479267836` ``` @@ -349,7 +976,7 @@ ๐Ÿ“Œ Duration ``` -`0.00014896399807184935` +`0.0001469579292461276` ``` @@ -374,7 +1001,7 @@ ๐Ÿ“Œ Duration ``` -`0.00014423299580812454` +`0.000137775088660419` ``` @@ -400,7 +1027,7 @@ โœ… #14 parameters: [1-5-6] - **Status:** โœ… `passed` -- **Duration:** `0.000130` s +- **Duration:** `0.000127` s - **Parameters:** `1-5-6` ### ๐Ÿ”ง Setup Phase @@ -410,7 +1037,7 @@ ๐Ÿ“Œ Duration ``` -`0.00025290704797953367` +`0.00024381093680858612` ``` @@ -435,7 +1062,7 @@ ๐Ÿ“Œ Duration ``` -`0.00012963195331394672` +`0.0001267970073968172` ``` @@ -460,7 +1087,7 @@ ๐Ÿ“Œ Duration ``` -`0.00013115699402987957` +`0.00013072194997221231` ``` @@ -486,7 +1113,7 @@ โœ… #15 parameters: [3-4-7] - **Status:** โœ… `passed` -- **Duration:** `0.000132` s +- **Duration:** `0.000130` s - **Parameters:** `3-4-7` ### ๐Ÿ”ง Setup Phase @@ -496,7 +1123,7 @@ ๐Ÿ“Œ Duration ``` -`0.00024793599732220173` +`0.00023513694759458303` ``` @@ -521,7 +1148,7 @@ ๐Ÿ“Œ Duration ``` -`0.00013241602573543787` +`0.00013011100236326456` ``` @@ -546,7 +1173,7 @@ ๐Ÿ“Œ Duration ``` -`0.00013352197129279375` +`0.00013188202865421772` ``` @@ -572,7 +1199,7 @@ โœ… #16 parameters: [3-5-8] - **Status:** โœ… `passed` -- **Duration:** `0.000128` s +- **Duration:** `0.000125` s - **Parameters:** `3-5-8` ### ๐Ÿ”ง Setup Phase @@ -582,7 +1209,7 @@ ๐Ÿ“Œ Duration ``` -`0.0002357090124860406` +`0.00023425009567290545` ``` @@ -607,7 +1234,7 @@ ๐Ÿ“Œ Duration ``` -`0.00012829795014113188` +`0.00012549699749797583` ``` @@ -632,7 +1259,7 @@ ๐Ÿ“Œ Duration ``` -`0.00013360800221562386` +`0.0001338550355285406` ``` @@ -658,7 +1285,7 @@ โœ… #17 parameters: [3-6-9] - **Status:** โœ… `passed` -- **Duration:** `0.000123` s +- **Duration:** `0.000126` s - **Parameters:** `3-6-9` ### ๐Ÿ”ง Setup Phase @@ -668,7 +1295,7 @@ ๐Ÿ“Œ Duration ``` -`0.0002399079967290163` +`0.0002453660126775503` ``` @@ -693,7 +1320,7 @@ ๐Ÿ“Œ Duration ``` -`0.00012330093886703253` +`0.00012592901475727558` ``` @@ -718,7 +1345,7 @@ ๐Ÿ“Œ Duration ``` -`0.0001275429967790842` +`0.00013521499931812286` ``` @@ -752,7 +1379,7 @@ โœ… #18 parameters: [a=2,b=2,expected=4] - **Status:** โœ… `passed` -- **Duration:** `0.000131` s +- **Duration:** `0.000125` s - **Parameters:** `a=2,b=2,expected=4` ### ๐Ÿ”ง Setup Phase @@ -762,7 +1389,7 @@ ๐Ÿ“Œ Duration ``` -`0.00024381594266742468` +`0.00023202202282845974` ``` @@ -787,7 +1414,7 @@ ๐Ÿ“Œ Duration ``` -`0.0001305269543081522` +`0.00012490793596953154` ``` @@ -812,7 +1439,7 @@ ๐Ÿ“Œ Duration ``` -`0.00013120402581989765` +`0.0001268379855901003` ``` @@ -838,7 +1465,7 @@ โœ… #19 parameters: [a=1,b=5,expected=6] - **Status:** โœ… `passed` -- **Duration:** `0.000124` s +- **Duration:** `0.000126` s - **Parameters:** `a=1,b=5,expected=6` ### ๐Ÿ”ง Setup Phase @@ -848,7 +1475,7 @@ ๐Ÿ“Œ Duration ``` -`0.0002316739410161972` +`0.00023731705732643604` ``` @@ -873,7 +1500,7 @@ ๐Ÿ“Œ Duration ``` -`0.00012374401558190584` +`0.00012592191342264414` ``` @@ -898,7 +1525,7 @@ ๐Ÿ“Œ Duration ``` -`0.00012842006981372833` +`0.00013014511205255985` ``` @@ -924,7 +1551,7 @@ โœ… #20 parameters: [a=3,b=4,expected=7] - **Status:** โœ… `passed` -- **Duration:** `0.000129` s +- **Duration:** `0.000122` s - **Parameters:** `a=3,b=4,expected=7` ### ๐Ÿ”ง Setup Phase @@ -934,7 +1561,7 @@ ๐Ÿ“Œ Duration ``` -`0.00024360092356801033` +`0.00023228302597999573` ``` @@ -959,7 +1586,7 @@ ๐Ÿ“Œ Duration ``` -`0.00012872798833996058` +`0.00012194295413792133` ``` @@ -984,7 +1611,7 @@ ๐Ÿ“Œ Duration ``` -`0.00013106397818773985` +`0.0001277880510315299` ``` @@ -1026,7 +1653,7 @@ โœ… #42 - **Status:** โœ… `passed` -- **Duration:** `0.000148` s +- **Duration:** `0.000153` s ### ๐Ÿ”ง Setup Phase @@ -1035,7 +1662,7 @@ ๐Ÿ“Œ Duration ``` -`0.00012713694013655186` +`0.00012424401938915253` ``` @@ -1060,7 +1687,7 @@ ๐Ÿ“Œ Duration ``` -`0.00014760601334273815` +`0.0001528679858893156` ``` @@ -1085,7 +1712,7 @@ ๐Ÿ“Œ Duration ``` -`0.0001062699593603611` +`9.928003419190645e-05` ``` @@ -1119,7 +1746,7 @@ โœ… #44 - **Status:** โœ… `passed` -- **Duration:** `0.000151` s +- **Duration:** `0.000150` s ### ๐Ÿ”ง Setup Phase @@ -1128,7 +1755,7 @@ ๐Ÿ“Œ Duration ``` -`0.00012025097385048866` +`0.00012891704682260752` ``` @@ -1153,7 +1780,7 @@ ๐Ÿ“Œ Duration ``` -`0.00015143200289458036` +`0.00015045306645333767` ``` @@ -1178,7 +1805,7 @@ ๐Ÿ“Œ Duration ``` -`0.00010109099093824625` +`0.00010042800568044186` ``` @@ -1212,7 +1839,7 @@ โœ… #45 - **Status:** โœ… `passed` -- **Duration:** `0.000140` s +- **Duration:** `0.000139` s ### ๐Ÿ”ง Setup Phase @@ -1221,7 +1848,7 @@ ๐Ÿ“Œ Duration ``` -`0.00011272903066128492` +`0.0001035189488902688` ``` @@ -1246,7 +1873,7 @@ ๐Ÿ“Œ Duration ``` -`0.0001398510066792369` +`0.00013936299365013838` ``` @@ -1271,7 +1898,7 @@ ๐Ÿ“Œ Duration ``` -`0.00010255398228764534` +`9.564904030412436e-05` ``` @@ -1305,7 +1932,7 @@ โœ… #48 - **Status:** โœ… `passed` -- **Duration:** `0.000136` s +- **Duration:** `0.000134` s ### ๐Ÿ”ง Setup Phase @@ -1314,7 +1941,7 @@ ๐Ÿ“Œ Duration ``` -`0.00012593402061611414` +`0.00011321809142827988` ``` @@ -1339,7 +1966,7 @@ ๐Ÿ“Œ Duration ``` -`0.00013588299043476582` +`0.00013439403846859932` ``` @@ -1364,7 +1991,7 @@ ๐Ÿ“Œ Duration ``` -`9.943998884409666e-05` +`9.838398545980453e-05` ``` @@ -1407,7 +2034,7 @@ ๐Ÿ“Œ Duration ``` -`0.00013431801926344633` +`0.00011409004218876362` ``` @@ -1457,7 +2084,7 @@ โŒ #3 - **Status:** โŒ `failed` -- **Duration:** `0.000159` s +- **Duration:** `0.000166` s ### ๐Ÿ”ง Setup Phase @@ -1466,7 +2093,7 @@ ๐Ÿ“Œ Duration ``` -`0.00011476001236587763` +`0.00012779596727341413` ``` @@ -1491,7 +2118,7 @@ ๐Ÿ“Œ Duration ``` -`0.00015856698155403137` +`0.00016633502673357725` ``` @@ -1560,7 +2187,7 @@ functions/io_utils.py:10: OSError` ๐Ÿ“Œ Duration ``` -`0.00014255999121814966` +`0.00015761400572955608` ``` @@ -1594,7 +2221,7 @@ functions/io_utils.py:10: OSError` โŒ #4 - **Status:** โŒ `failed` -- **Duration:** `0.000175` s +- **Duration:** `0.000190` s ### ๐Ÿ”ง Setup Phase @@ -1603,7 +2230,7 @@ functions/io_utils.py:10: OSError` ๐Ÿ“Œ Duration ``` -`0.00013862806372344494` +`0.0001337979920208454` ``` @@ -1628,7 +2255,7 @@ functions/io_utils.py:10: OSError` ๐Ÿ“Œ Duration ``` -`0.0001750170486047864` +`0.00019010505639016628` ``` @@ -1699,7 +2326,7 @@ functions/io_utils.py:2: FileNotFoundError` ๐Ÿ“Œ Duration ``` -`0.00014102004934102297` +`0.0001524569233879447` ``` @@ -1733,7 +2360,7 @@ functions/io_utils.py:2: FileNotFoundError` โŒ #5 - **Status:** โŒ `failed` -- **Duration:** `0.000179` s +- **Duration:** `0.000177` s ### ๐Ÿ”ง Setup Phase @@ -1742,7 +2369,7 @@ functions/io_utils.py:2: FileNotFoundError` ๐Ÿ“Œ Duration ``` -`0.00022992293816059828` +`0.00021846394520252943` ``` @@ -1767,7 +2394,7 @@ functions/io_utils.py:2: FileNotFoundError` ๐Ÿ“Œ Duration ``` -`0.00017850904259830713` +`0.00017670204397290945` ``` @@ -1811,7 +2438,7 @@ functions/io_utils.py:2: FileNotFoundError` ๐Ÿ“Œ Longrepr ``` -`monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fd1c1b03970> +`monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f9b18814ca0> def test_permission_error(monkeypatch): # Patch open to raise PermissionError simulating access denial @@ -1846,7 +2473,7 @@ tests/test_io_utils.py:34: PermissionError` ๐Ÿ“Œ Duration ``` -`0.0001781609607860446` +`0.00017797702457755804` ``` @@ -1880,7 +2507,7 @@ tests/test_io_utils.py:34: PermissionError` โŒ #6 - **Status:** โŒ `failed` -- **Duration:** `0.003277` s +- **Duration:** `0.003237` s ### ๐Ÿ”ง Setup Phase @@ -1889,7 +2516,7 @@ tests/test_io_utils.py:34: PermissionError` ๐Ÿ“Œ Duration ``` -`0.00020119501277804375` +`0.00018545694183558226` ``` @@ -1914,7 +2541,7 @@ tests/test_io_utils.py:34: PermissionError` ๐Ÿ“Œ Duration ``` -`0.0032772490521892905` +`0.0032367990352213383` ``` @@ -1958,7 +2585,7 @@ tests/test_io_utils.py:34: PermissionError` ๐Ÿ“Œ Longrepr ``` -`monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fd1c1d46ac0> +`monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f9b182d7bb0> def test_mock_open_error(monkeypatch): # Mock open() to raise IOError simulating read error @@ -1975,7 +2602,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): @@ -2002,7 +2629,7 @@ E OSError: Mocked IOError ๐Ÿ“Œ Duration ``` -`0.00031800800934433937` +`0.000320967985317111` ``` @@ -2036,7 +2663,7 @@ E OSError: Mocked IOError โŒ #7 - **Status:** โŒ `failed` -- **Duration:** `0.000189` s +- **Duration:** `0.000201` s ### ๐Ÿ”ง Setup Phase @@ -2045,7 +2672,7 @@ E OSError: Mocked IOError ๐Ÿ“Œ Duration ``` -`0.00016160891391336918` +`0.0001448270631954074` ``` @@ -2070,7 +2697,7 @@ E OSError: Mocked IOError ๐Ÿ“Œ Duration ``` -`0.00018857000395655632` +`0.000200584065169096` ``` @@ -2135,7 +2762,7 @@ tests/test_io_utils.py:50: ValueError` ๐Ÿ“Œ Duration ``` -`0.0001827350351959467` +`0.00020871602464467287` ``` @@ -2169,7 +2796,7 @@ tests/test_io_utils.py:50: ValueError` โŒ #8 - **Status:** โŒ `failed` -- **Duration:** `0.000193` s +- **Duration:** `0.000194` s ### ๐Ÿ”ง Setup Phase @@ -2178,7 +2805,7 @@ tests/test_io_utils.py:50: ValueError` ๐Ÿ“Œ Duration ``` -`0.0002518180990591645` +`0.00025799497961997986` ``` @@ -2203,7 +2830,7 @@ tests/test_io_utils.py:50: ValueError` ๐Ÿ“Œ Duration ``` -`0.00019334908574819565` +`0.00019365502521395683` ``` @@ -2247,7 +2874,7 @@ tests/test_io_utils.py:50: ValueError` ๐Ÿ“Œ Longrepr ``` -`monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fd1c1b28790> +`monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f9b156d8340> def test_os_error(monkeypatch): # Patch os.remove to raise OSError simulating filesystem error @@ -2279,7 +2906,7 @@ tests/test_io_utils.py:55: OSError` ๐Ÿ“Œ Duration ``` -`0.00018196494784206152` +`0.00018561806064099073` ``` @@ -2313,7 +2940,7 @@ tests/test_io_utils.py:55: OSError` โŒ #10 - **Status:** โŒ `failed` -- **Duration:** `0.000165` s +- **Duration:** `0.000163` s ### ๐Ÿ”ง Setup Phase @@ -2322,7 +2949,7 @@ tests/test_io_utils.py:55: OSError` ๐Ÿ“Œ Duration ``` -`0.00012593006249517202` +`0.00011364906094968319` ``` @@ -2347,7 +2974,7 @@ tests/test_io_utils.py:55: OSError` ๐Ÿ“Œ Duration ``` -`0.00016519799828529358` +`0.00016330706421285868` ``` @@ -2410,7 +3037,7 @@ tests/test_io_utils.py:69: FileNotFoundError` ๐Ÿ“Œ Duration ``` -`0.00014093902427703142` +`0.00015117600560188293` ``` @@ -2452,7 +3079,7 @@ tests/test_io_utils.py:69: FileNotFoundError` โŒ #11 - **Status:** โŒ `failed` -- **Duration:** `0.000158` s +- **Duration:** `0.000165` s ### ๐Ÿ”ง Setup Phase @@ -2461,7 +3088,7 @@ tests/test_io_utils.py:69: FileNotFoundError` ๐Ÿ“Œ Duration ``` -`0.00013216095976531506` +`0.00012705905828624964` ``` @@ -2486,7 +3113,7 @@ tests/test_io_utils.py:69: FileNotFoundError` ๐Ÿ“Œ Duration ``` -`0.00015786895528435707` +`0.00016505492385476828` ``` @@ -2549,7 +3176,7 @@ tests/test_math_utils.py:16: NameError` ๐Ÿ“Œ Duration ``` -`0.00014825991820544004` +`0.00014823698438704014` ``` @@ -2583,7 +3210,7 @@ tests/test_math_utils.py:16: NameError` โŒ #12 - **Status:** โŒ `failed` -- **Duration:** `0.000161` s +- **Duration:** `0.000150` s ### ๐Ÿ”ง Setup Phase @@ -2592,7 +3219,7 @@ tests/test_math_utils.py:16: NameError` ๐Ÿ“Œ Duration ``` -`0.0001234819646924734` +`0.00011673092376440763` ``` @@ -2617,7 +3244,7 @@ tests/test_math_utils.py:16: NameError` ๐Ÿ“Œ Duration ``` -`0.00016121799126267433` +`0.0001503940438851714` ``` @@ -2680,7 +3307,7 @@ tests/test_math_utils.py:20: AttributeError` ๐Ÿ“Œ Duration ``` -`0.00013986602425575256` +`0.0001346459612250328` ``` @@ -2714,7 +3341,7 @@ tests/test_math_utils.py:20: AttributeError` โŒ #21 - **Status:** โŒ `failed` -- **Duration:** `0.000461` s +- **Duration:** `0.000437` s ### ๐Ÿ”ง Setup Phase @@ -2723,7 +3350,7 @@ tests/test_math_utils.py:20: AttributeError` ๐Ÿ“Œ Duration ``` -`0.00010299601126462221` +`0.00011454999912530184` ``` @@ -2748,7 +3375,7 @@ tests/test_math_utils.py:20: AttributeError` ๐Ÿ“Œ Duration ``` -`0.00046050408855080605` +`0.00043726200237870216` ``` @@ -2813,7 +3440,7 @@ tests/test_math_utils.py:48: AssertionError` ๐Ÿ“Œ Duration ``` -`0.00013612606562674046` +`0.00013775192201137543` ``` @@ -2847,7 +3474,7 @@ tests/test_math_utils.py:48: AssertionError` โŒ #22 - **Status:** โŒ `failed` -- **Duration:** `0.000157` s +- **Duration:** `0.000158` s ### ๐Ÿ”ง Setup Phase @@ -2856,7 +3483,7 @@ tests/test_math_utils.py:48: AssertionError` ๐Ÿ“Œ Duration ``` -`0.00011770997662097216` +`0.00011610391084104776` ``` @@ -2881,7 +3508,7 @@ tests/test_math_utils.py:48: AssertionError` ๐Ÿ“Œ Duration ``` -`0.0001571460161358118` +`0.0001582109834998846` ``` @@ -2952,7 +3579,7 @@ functions/math_utils.py:5: ZeroDivisionError` ๐Ÿ“Œ Duration ``` -`0.00014054193161427975` +`0.0001586059806868434` ``` @@ -2986,7 +3613,7 @@ functions/math_utils.py:5: ZeroDivisionError` โŒ #24 - **Status:** โŒ `failed` -- **Duration:** `0.000145` s +- **Duration:** `0.000148` s ### ๐Ÿ”ง Setup Phase @@ -2995,7 +3622,7 @@ functions/math_utils.py:5: ZeroDivisionError` ๐Ÿ“Œ Duration ``` -`0.00011596502736210823` +`0.00011843896936625242` ``` @@ -3020,7 +3647,7 @@ functions/math_utils.py:5: ZeroDivisionError` ๐Ÿ“Œ Duration ``` -`0.0001452839933335781` +`0.00014782208018004894` ``` @@ -3083,7 +3710,7 @@ tests/test_math_utils.py:61: RuntimeError` ๐Ÿ“Œ Duration ``` -`0.0001393159618601203` +`0.00013864494394510984` ``` @@ -3117,7 +3744,7 @@ tests/test_math_utils.py:61: RuntimeError` โŒ #25 - **Status:** โŒ `failed` -- **Duration:** `0.000159` s +- **Duration:** `0.000150` s ### ๐Ÿ”ง Setup Phase @@ -3126,7 +3753,7 @@ tests/test_math_utils.py:61: RuntimeError` ๐Ÿ“Œ Duration ``` -`0.00011941499542444944` +`0.00012616498861461878` ``` @@ -3151,7 +3778,7 @@ tests/test_math_utils.py:61: RuntimeError` ๐Ÿ“Œ Duration ``` -`0.00015935895498842` +`0.00014972698409110308` ``` @@ -3214,7 +3841,7 @@ tests/test_math_utils.py:65: MemoryError` ๐Ÿ“Œ Duration ``` -`0.00014849600847810507` +`0.00013600499369204044` ``` @@ -3248,7 +3875,7 @@ tests/test_math_utils.py:65: MemoryError` โŒ #26 - **Status:** โŒ `failed` -- **Duration:** `0.000150` s +- **Duration:** `0.000145` s ### ๐Ÿ”ง Setup Phase @@ -3257,7 +3884,7 @@ tests/test_math_utils.py:65: MemoryError` ๐Ÿ“Œ Duration ``` -`0.00011813209857791662` +`0.00011415802873671055` ``` @@ -3282,7 +3909,7 @@ tests/test_math_utils.py:65: MemoryError` ๐Ÿ“Œ Duration ``` -`0.0001498619094491005` +`0.00014513498172163963` ``` @@ -3345,7 +3972,7 @@ tests/test_math_utils.py:69: TimeoutError` ๐Ÿ“Œ Duration ``` -`0.00014191190712153912` +`0.00013685296289622784` ``` @@ -3379,7 +4006,7 @@ tests/test_math_utils.py:69: TimeoutError` โŒ #27 - **Status:** โŒ `failed` -- **Duration:** `0.000815` s +- **Duration:** `0.000782` s ### ๐Ÿ”ง Setup Phase @@ -3388,7 +4015,7 @@ tests/test_math_utils.py:69: TimeoutError` ๐Ÿ“Œ Duration ``` -`0.00011882302351295948` +`0.00011689402163028717` ``` @@ -3413,7 +4040,7 @@ tests/test_math_utils.py:69: TimeoutError` ๐Ÿ“Œ Duration ``` -`0.0008152730297297239` +`0.0007815680000931025` ``` @@ -3484,7 +4111,7 @@ E RecursionError: maximum recursion depth exceeded ๐Ÿ“Œ Duration ``` -`0.0002282590139657259` +`0.00018014805391430855` ``` @@ -3518,7 +4145,7 @@ E RecursionError: maximum recursion depth exceeded โŒ #28 - **Status:** โŒ `failed` -- **Duration:** `0.000183` s +- **Duration:** `0.000173` s ### ๐Ÿ”ง Setup Phase @@ -3527,7 +4154,7 @@ E RecursionError: maximum recursion depth exceeded ๐Ÿ“Œ Duration ``` -`0.00013889605179429054` +`0.0001346420031040907` ``` @@ -3552,7 +4179,7 @@ E RecursionError: maximum recursion depth exceeded ๐Ÿ“Œ Duration ``` -`0.0001825090730562806` +`0.00017308094538748264` ``` @@ -3615,7 +4242,7 @@ tests/test_math_utils.py:79: FloatingPointError` ๐Ÿ“Œ Duration ``` -`0.00017750193364918232` +`0.00013784191105514765` ``` @@ -3649,7 +4276,7 @@ tests/test_math_utils.py:79: FloatingPointError` โŒ #29 - **Status:** โŒ `failed` -- **Duration:** `0.000173` s +- **Duration:** `0.000155` s ### ๐Ÿ”ง Setup Phase @@ -3658,7 +4285,7 @@ tests/test_math_utils.py:79: FloatingPointError` ๐Ÿ“Œ Duration ``` -`0.00014480692334473133` +`0.00011561193969100714` ``` @@ -3683,7 +4310,7 @@ tests/test_math_utils.py:79: FloatingPointError` ๐Ÿ“Œ Duration ``` -`0.00017289398238062859` +`0.00015472294762730598` ``` @@ -3746,7 +4373,7 @@ tests/test_math_utils.py:83: OverflowError` ๐Ÿ“Œ Duration ``` -`0.0002508109901100397` +`0.00013941293582320213` ``` @@ -3780,7 +4407,7 @@ tests/test_math_utils.py:83: OverflowError` โŒ #30 - **Status:** โŒ `failed` -- **Duration:** `0.000188` s +- **Duration:** `0.000153` s ### ๐Ÿ”ง Setup Phase @@ -3789,7 +4416,7 @@ tests/test_math_utils.py:83: OverflowError` ๐Ÿ“Œ Duration ``` -`0.00014135404489934444` +`0.00011560297571122646` ``` @@ -3814,7 +4441,7 @@ tests/test_math_utils.py:83: OverflowError` ๐Ÿ“Œ Duration ``` -`0.00018813705537468195` +`0.00015253107994794846` ``` @@ -3877,7 +4504,7 @@ tests/test_math_utils.py:87: ValueError` ๐Ÿ“Œ Duration ``` -`0.00020470598246902227` +`0.00014192401431500912` ``` @@ -3911,7 +4538,7 @@ tests/test_math_utils.py:87: ValueError` โŒ #31 - **Status:** โŒ `failed` -- **Duration:** `0.000190` s +- **Duration:** `0.000149` s ### ๐Ÿ”ง Setup Phase @@ -3920,7 +4547,7 @@ tests/test_math_utils.py:87: ValueError` ๐Ÿ“Œ Duration ``` -`0.00013943191152065992` +`0.00011750601697713137` ``` @@ -3945,7 +4572,7 @@ tests/test_math_utils.py:87: ValueError` ๐Ÿ“Œ Duration ``` -`0.0001896279864013195` +`0.0001487770350649953` ``` @@ -4008,7 +4635,7 @@ tests/test_math_utils.py:91: TypeError` ๐Ÿ“Œ Duration ``` -`0.00018072500824928284` +`0.00013360206503421068` ``` @@ -4042,7 +4669,7 @@ tests/test_math_utils.py:91: TypeError` โŒ #32 - **Status:** โŒ `failed` -- **Duration:** `0.000164` s +- **Duration:** `0.000145` s ### ๐Ÿ”ง Setup Phase @@ -4051,7 +4678,7 @@ tests/test_math_utils.py:91: TypeError` ๐Ÿ“Œ Duration ``` -`0.00013399694580584764` +`0.00011453707702457905` ``` @@ -4076,7 +4703,7 @@ tests/test_math_utils.py:91: TypeError` ๐Ÿ“Œ Duration ``` -`0.00016419996973127127` +`0.0001454149605706334` ``` @@ -4139,7 +4766,7 @@ tests/test_math_utils.py:95: Exception` ๐Ÿ“Œ Duration ``` -`0.00016882095951586962` +`0.0001358630834147334` ``` @@ -4173,7 +4800,7 @@ tests/test_math_utils.py:95: Exception` โŒ #33 - **Status:** โŒ `failed` -- **Duration:** `0.000170` s +- **Duration:** `0.000157` s ### ๐Ÿ”ง Setup Phase @@ -4182,7 +4809,7 @@ tests/test_math_utils.py:95: Exception` ๐Ÿ“Œ Duration ``` -`0.0001247971085831523` +`0.00011831300798803568` ``` @@ -4207,7 +4834,7 @@ tests/test_math_utils.py:95: Exception` ๐Ÿ“Œ Duration ``` -`0.00017007999122142792` +`0.00015718000940978527` ``` @@ -4270,7 +4897,7 @@ tests/test_math_utils.py:99: CustomError` ๐Ÿ“Œ Duration ``` -`0.00016208202578127384` +`0.00013995799235999584` ``` @@ -4304,7 +4931,7 @@ tests/test_math_utils.py:99: CustomError` โŒ #34 - **Status:** โŒ `failed` -- **Duration:** `0.000157` s +- **Duration:** `0.000149` s ### ๐Ÿ”ง Setup Phase @@ -4313,7 +4940,7 @@ tests/test_math_utils.py:99: CustomError` ๐Ÿ“Œ Duration ``` -`0.00012537103611975908` +`0.00011849403381347656` ``` @@ -4338,7 +4965,7 @@ tests/test_math_utils.py:99: CustomError` ๐Ÿ“Œ Duration ``` -`0.00015746697317808867` +`0.00014923803973942995` ``` @@ -4392,7 +5019,7 @@ tests/test_math_utils.py:103: StopIteration The above exception was the direct cause of the following exception: cls = -func = . at 0x7fd1c40e0550> +func = . at 0x7f9b1598c550> when = 'call' reraise = (, ) @@ -4465,7 +5092,7 @@ E RuntimeError: generator raised StopIteration ๐Ÿ“Œ Duration ``` -`0.0002653859555721283` +`0.0002571839140728116` ``` @@ -4499,7 +5126,7 @@ E RuntimeError: generator raised StopIteration โŒ #35 - **Status:** โŒ `failed` -- **Duration:** `0.000178` s +- **Duration:** `0.000172` s ### ๐Ÿ”ง Setup Phase @@ -4508,7 +5135,7 @@ E RuntimeError: generator raised StopIteration ๐Ÿ“Œ Duration ``` -`0.0001509420108050108` +`0.00013876496814191341` ``` @@ -4533,7 +5160,7 @@ E RuntimeError: generator raised StopIteration ๐Ÿ“Œ Duration ``` -`0.00017761497292667627` +`0.00017175800167024136` ``` @@ -4596,7 +5223,7 @@ tests/test_math_utils.py:107: GeneratorExit` ๐Ÿ“Œ Duration ``` -`0.00017462100367993116` +`0.00017929403111338615` ``` @@ -4630,7 +5257,7 @@ tests/test_math_utils.py:107: GeneratorExit` โŒ #36 - **Status:** โŒ `failed` -- **Duration:** `0.000173` s +- **Duration:** `0.000165` s ### ๐Ÿ”ง Setup Phase @@ -4639,7 +5266,7 @@ tests/test_math_utils.py:107: GeneratorExit` ๐Ÿ“Œ Duration ``` -`0.00013089494314044714` +`0.00012770597822964191` ``` @@ -4664,7 +5291,7 @@ tests/test_math_utils.py:107: GeneratorExit` ๐Ÿ“Œ Duration ``` -`0.00017273705452680588` +`0.00016513094305992126` ``` @@ -4728,7 +5355,7 @@ tests/test_math_utils.py:112: RecursionError` ๐Ÿ“Œ Duration ``` -`0.00016043393407016993` +`0.00013884599320590496` ``` @@ -4762,7 +5389,7 @@ tests/test_math_utils.py:112: RecursionError` โŒ #37 - **Status:** โŒ `failed` -- **Duration:** `0.000161` s +- **Duration:** `0.000162` s ### ๐Ÿ”ง Setup Phase @@ -4771,7 +5398,7 @@ tests/test_math_utils.py:112: RecursionError` ๐Ÿ“Œ Duration ``` -`0.00012180593330413103` +`0.00012920203153043985` ``` @@ -4796,7 +5423,7 @@ tests/test_math_utils.py:112: RecursionError` ๐Ÿ“Œ Duration ``` -`0.00016103999223560095` +`0.00016244500875473022` ``` @@ -4865,7 +5492,7 @@ tests/test_math_utils.py:122: SyntaxError` ๐Ÿ“Œ Duration ``` -`0.00014080398250371218` +`0.00013569300062954426` ``` @@ -4899,7 +5526,7 @@ tests/test_math_utils.py:122: SyntaxError` โŒ #38 - **Status:** โŒ `failed` -- **Duration:** `0.000157` s +- **Duration:** `0.000164` s ### ๐Ÿ”ง Setup Phase @@ -4908,7 +5535,7 @@ tests/test_math_utils.py:122: SyntaxError` ๐Ÿ“Œ Duration ``` -`0.00013478391338139772` +`0.00011465302668511868` ``` @@ -4933,7 +5560,7 @@ tests/test_math_utils.py:122: SyntaxError` ๐Ÿ“Œ Duration ``` -`0.00015655497554689646` +`0.0001639459514990449` ``` @@ -4996,7 +5623,7 @@ tests/test_math_utils.py:126: SystemExit` ๐Ÿ“Œ Duration ``` -`0.00013929198030382395` +`0.0001434289151802659` ``` @@ -5030,7 +5657,7 @@ tests/test_math_utils.py:126: SystemExit` โŒ #39 - **Status:** โŒ `failed` -- **Duration:** `0.000151` s +- **Duration:** `0.000158` s ### ๐Ÿ”ง Setup Phase @@ -5039,7 +5666,7 @@ tests/test_math_utils.py:126: SystemExit` ๐Ÿ“Œ Duration ``` -`0.00011617201380431652` +`0.00011528097093105316` ``` @@ -5064,7 +5691,7 @@ tests/test_math_utils.py:126: SystemExit` ๐Ÿ“Œ Duration ``` -`0.00015101092867553234` +`0.00015778804663568735` ``` @@ -5137,7 +5764,7 @@ tests/test_math_utils.py:131: TypeError` ๐Ÿ“Œ Duration ``` -`0.0001374280545860529` +`0.00013411405961960554` ``` @@ -5171,7 +5798,7 @@ tests/test_math_utils.py:131: TypeError` โŒ #40 - **Status:** โŒ `failed` -- **Duration:** `0.000156` s +- **Duration:** `0.000154` s ### ๐Ÿ”ง Setup Phase @@ -5180,7 +5807,7 @@ tests/test_math_utils.py:131: TypeError` ๐Ÿ“Œ Duration ``` -`0.00011690706014633179` +`0.00011883804108947515` ``` @@ -5205,7 +5832,7 @@ tests/test_math_utils.py:131: TypeError` ๐Ÿ“Œ Duration ``` -`0.00015612307470291853` +`0.00015352200716733932` ``` @@ -5285,7 +5912,7 @@ tests/test_math_utils.py:139: ImportError` ๐Ÿ“Œ Duration ``` -`0.0001441870117560029` +`0.000136392074637115` ``` @@ -5319,7 +5946,7 @@ tests/test_math_utils.py:139: ImportError` โŒ #41 - **Status:** โŒ `failed` -- **Duration:** `0.000490` s +- **Duration:** `0.000470` s ### ๐Ÿ”ง Setup Phase @@ -5328,7 +5955,7 @@ tests/test_math_utils.py:139: ImportError` ๐Ÿ“Œ Duration ``` -`0.00012049998622387648` +`0.0001162760891020298` ``` @@ -5353,7 +5980,7 @@ tests/test_math_utils.py:139: ImportError` ๐Ÿ“Œ Duration ``` -`0.0004896969767287374` +`0.00046971498522907495` ``` @@ -5412,7 +6039,7 @@ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ name = 'non_existent_module_xyz' -import_ = +import_ = > ??? E ModuleNotFoundError: No module named 'non_existent_module_xyz' @@ -5431,7 +6058,7 @@ E ModuleNotFoundError: No module named 'non_existent_module_xyz' ๐Ÿ“Œ Duration ``` -`0.00014874304179102182` +`0.00014025403652340174` ``` @@ -5473,7 +6100,7 @@ E ModuleNotFoundError: No module named 'non_existent_module_xyz' โŒ #43 - **Status:** โŒ `failed` -- **Duration:** `0.000144` s +- **Duration:** `0.000140` s ### ๐Ÿ”ง Setup Phase @@ -5482,7 +6109,7 @@ E ModuleNotFoundError: No module named 'non_existent_module_xyz' ๐Ÿ“Œ Duration ``` -`0.00010766997002065182` +`0.00010376109275966883` ``` @@ -5507,7 +6134,7 @@ E ModuleNotFoundError: No module named 'non_existent_module_xyz' ๐Ÿ“Œ Duration ``` -`0.00014437595382332802` +`0.00014044297859072685` ``` @@ -5579,7 +6206,7 @@ functions/string_utils.py:3: TypeError` ๐Ÿ“Œ Duration ``` -`0.00013977102935314178` +`0.0001379030290991068` ``` @@ -5613,7 +6240,7 @@ functions/string_utils.py:3: TypeError` โŒ #46 - **Status:** โŒ `failed` -- **Duration:** `0.000196` s +- **Duration:** `0.000140` s ### ๐Ÿ”ง Setup Phase @@ -5622,7 +6249,7 @@ functions/string_utils.py:3: TypeError` ๐Ÿ“Œ Duration ``` -`0.00010833796113729477` +`0.0001006110105663538` ``` @@ -5647,7 +6274,7 @@ functions/string_utils.py:3: TypeError` ๐Ÿ“Œ Duration ``` -`0.00019567401614040136` +`0.00014014204498380423` ``` @@ -5710,7 +6337,7 @@ tests/test_string_utils.py:26: UnicodeDecodeError` ๐Ÿ“Œ Duration ``` -`0.0001331949606537819` +`0.0001303160097450018` ``` @@ -5744,7 +6371,7 @@ tests/test_string_utils.py:26: UnicodeDecodeError` โŒ #47 - **Status:** โŒ `failed` -- **Duration:** `0.000157` s +- **Duration:** `0.000152` s ### ๐Ÿ”ง Setup Phase @@ -5753,7 +6380,7 @@ tests/test_string_utils.py:26: UnicodeDecodeError` ๐Ÿ“Œ Duration ``` -`0.00011932710185647011` +`0.00012672902084887028` ``` @@ -5778,7 +6405,7 @@ tests/test_string_utils.py:26: UnicodeDecodeError` ๐Ÿ“Œ Duration ``` -`0.00015685707330703735` +`0.0001523100072517991` ``` @@ -5841,7 +6468,7 @@ tests/test_string_utils.py:30: UnicodeDecodeError` ๐Ÿ“Œ Duration ``` -`0.00013213104102760553` +`0.00013786100316792727` ``` @@ -5891,7 +6518,7 @@ tests/test_string_utils.py:30: UnicodeDecodeError` โŒ #23 - **Status:** โŒ `xfailed` -- **Duration:** `0.000280` s +- **Duration:** `0.000277` s ### ๐Ÿ”ง Setup Phase @@ -5900,7 +6527,7 @@ tests/test_string_utils.py:30: UnicodeDecodeError` ๐Ÿ“Œ Duration ``` -`0.00013647403102368116` +`0.00013193394988775253` ``` @@ -5925,7 +6552,7 @@ tests/test_string_utils.py:30: UnicodeDecodeError` ๐Ÿ“Œ Duration ``` -`0.0002802410162985325` +`0.00027660897467285395` ``` @@ -5991,7 +6618,7 @@ tests/test_math_utils.py:57: AssertionError` ๐Ÿ“Œ Duration ``` -`0.00013974099420011044` +`0.00013594096526503563` ``` @@ -6033,7 +6660,7 @@ tests/test_math_utils.py:57: AssertionError` โŒ #49 - **Status:** โŒ `xfailed` -- **Duration:** `0.000637` s +- **Duration:** `0.000595` s ### ๐Ÿ”ง Setup Phase @@ -6042,7 +6669,7 @@ tests/test_math_utils.py:57: AssertionError` ๐Ÿ“Œ Duration ``` -`0.0001188300084322691` +`0.0001123109832406044` ``` @@ -6067,7 +6694,7 @@ tests/test_math_utils.py:57: AssertionError` ๐Ÿ“Œ Duration ``` -`0.0006370709743350744` +`0.0005953611107543111` ``` @@ -6139,7 +6766,7 @@ tests/test_string_utils.py:39: AssertionError` ๐Ÿ“Œ Duration ``` -`0.00013529101852327585` +`0.00013314594980329275` ``` diff --git a/ci-reports/markdown/md-report.log b/ci-reports/markdown/md-report.log index 2d9daf525..2f9cfcd94 100644 --- a/ci-reports/markdown/md-report.log +++ b/ci-reports/markdown/md-report.log @@ -1 +1,2 @@ +โœ… Banner and log summary added to markdown report. โœ… Report generated at ci-reports/markdown/TEST-REPORT.md diff --git a/ci-reports/markdown/pytest-report.json b/ci-reports/markdown/pytest-report.json index ebaa0915e..b6b634c9a 100644 --- a/ci-reports/markdown/pytest-report.json +++ b/ci-reports/markdown/pytest-report.json @@ -1 +1 @@ -{"created": 1752586911.598621, "duration": 0.7643063068389893, "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.003444524947553873, "outcome": "passed"}, "call": {"duration": 0.00044572295155376196, "outcome": "passed"}, "teardown": {"duration": 0.0002459869720041752, "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.0004850690020248294, "outcome": "passed"}, "call": {"duration": 0.0002949959598481655, "outcome": "passed"}, "teardown": {"duration": 0.00015547603834420443, "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.00011476001236587763, "outcome": "passed"}, "call": {"duration": 0.00015856698155403137, "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.00014255999121814966, "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.00013862806372344494, "outcome": "passed"}, "call": {"duration": 0.0001750170486047864, "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.00014102004934102297, "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.00022992293816059828, "outcome": "passed"}, "call": {"duration": 0.00017850904259830713, "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 0x7fd1c1b03970>\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.0001781609607860446, "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.00020119501277804375, "outcome": "passed"}, "call": {"duration": 0.0032772490521892905, "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 0x7fd1c1d46ac0>\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.00031800800934433937, "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.00016160891391336918, "outcome": "passed"}, "call": {"duration": 0.00018857000395655632, "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.0001827350351959467, "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.0002518180990591645, "outcome": "passed"}, "call": {"duration": 0.00019334908574819565, "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 0x7fd1c1b28790>\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.00018196494784206152, "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.0006876830011606216, "outcome": "passed"}, "call": {"duration": 0.0008573830127716064, "outcome": "passed"}, "teardown": {"duration": 0.0001462970394641161, "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.00012593006249517202, "outcome": "passed"}, "call": {"duration": 0.00016519799828529358, "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.00014093902427703142, "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.00013216095976531506, "outcome": "passed"}, "call": {"duration": 0.00015786895528435707, "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.00014825991820544004, "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.0001234819646924734, "outcome": "passed"}, "call": {"duration": 0.00016121799126267433, "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.00013986602425575256, "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.00031657307408750057, "outcome": "passed"}, "call": {"duration": 0.00014896399807184935, "outcome": "passed"}, "teardown": {"duration": 0.00014423299580812454, "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.00025290704797953367, "outcome": "passed"}, "call": {"duration": 0.00012963195331394672, "outcome": "passed"}, "teardown": {"duration": 0.00013115699402987957, "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.00024793599732220173, "outcome": "passed"}, "call": {"duration": 0.00013241602573543787, "outcome": "passed"}, "teardown": {"duration": 0.00013352197129279375, "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.0002357090124860406, "outcome": "passed"}, "call": {"duration": 0.00012829795014113188, "outcome": "passed"}, "teardown": {"duration": 0.00013360800221562386, "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.0002399079967290163, "outcome": "passed"}, "call": {"duration": 0.00012330093886703253, "outcome": "passed"}, "teardown": {"duration": 0.0001275429967790842, "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.00024381594266742468, "outcome": "passed"}, "call": {"duration": 0.0001305269543081522, "outcome": "passed"}, "teardown": {"duration": 0.00013120402581989765, "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.0002316739410161972, "outcome": "passed"}, "call": {"duration": 0.00012374401558190584, "outcome": "passed"}, "teardown": {"duration": 0.00012842006981372833, "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.00024360092356801033, "outcome": "passed"}, "call": {"duration": 0.00012872798833996058, "outcome": "passed"}, "teardown": {"duration": 0.00013106397818773985, "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.00010299601126462221, "outcome": "passed"}, "call": {"duration": 0.00046050408855080605, "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.00013612606562674046, "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.00011770997662097216, "outcome": "passed"}, "call": {"duration": 0.0001571460161358118, "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.00014054193161427975, "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.00013647403102368116, "outcome": "passed"}, "call": {"duration": 0.0002802410162985325, "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.00013974099420011044, "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.00011596502736210823, "outcome": "passed"}, "call": {"duration": 0.0001452839933335781, "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.0001393159618601203, "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.00011941499542444944, "outcome": "passed"}, "call": {"duration": 0.00015935895498842, "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.00014849600847810507, "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.00011813209857791662, "outcome": "passed"}, "call": {"duration": 0.0001498619094491005, "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.00014191190712153912, "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.00011882302351295948, "outcome": "passed"}, "call": {"duration": 0.0008152730297297239, "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.0002282590139657259, "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.00013889605179429054, "outcome": "passed"}, "call": {"duration": 0.0001825090730562806, "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.00017750193364918232, "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.00014480692334473133, "outcome": "passed"}, "call": {"duration": 0.00017289398238062859, "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.0002508109901100397, "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.00014135404489934444, "outcome": "passed"}, "call": {"duration": 0.00018813705537468195, "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.00020470598246902227, "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.00013943191152065992, "outcome": "passed"}, "call": {"duration": 0.0001896279864013195, "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.00018072500824928284, "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.00013399694580584764, "outcome": "passed"}, "call": {"duration": 0.00016419996973127127, "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.00016882095951586962, "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.0001247971085831523, "outcome": "passed"}, "call": {"duration": 0.00017007999122142792, "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.00016208202578127384, "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.00012537103611975908, "outcome": "passed"}, "call": {"duration": 0.00015746697317808867, "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 0x7fd1c40e0550>\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.0002653859555721283, "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.0001509420108050108, "outcome": "passed"}, "call": {"duration": 0.00017761497292667627, "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.00017462100367993116, "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.00013089494314044714, "outcome": "passed"}, "call": {"duration": 0.00017273705452680588, "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.00016043393407016993, "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.00012180593330413103, "outcome": "passed"}, "call": {"duration": 0.00016103999223560095, "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.00014080398250371218, "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.00013478391338139772, "outcome": "passed"}, "call": {"duration": 0.00015655497554689646, "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.00013929198030382395, "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.00011617201380431652, "outcome": "passed"}, "call": {"duration": 0.00015101092867553234, "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.0001374280545860529, "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.00011690706014633179, "outcome": "passed"}, "call": {"duration": 0.00015612307470291853, "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.0001441870117560029, "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.00012049998622387648, "outcome": "passed"}, "call": {"duration": 0.0004896969767287374, "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.00014874304179102182, "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.00012713694013655186, "outcome": "passed"}, "call": {"duration": 0.00014760601334273815, "outcome": "passed"}, "teardown": {"duration": 0.0001062699593603611, "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.00010766997002065182, "outcome": "passed"}, "call": {"duration": 0.00014437595382332802, "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.00013977102935314178, "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.00012025097385048866, "outcome": "passed"}, "call": {"duration": 0.00015143200289458036, "outcome": "passed"}, "teardown": {"duration": 0.00010109099093824625, "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.00011272903066128492, "outcome": "passed"}, "call": {"duration": 0.0001398510066792369, "outcome": "passed"}, "teardown": {"duration": 0.00010255398228764534, "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.00010833796113729477, "outcome": "passed"}, "call": {"duration": 0.00019567401614040136, "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.0001331949606537819, "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.00011932710185647011, "outcome": "passed"}, "call": {"duration": 0.00015685707330703735, "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.00013213104102760553, "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.00012593402061611414, "outcome": "passed"}, "call": {"duration": 0.00013588299043476582, "outcome": "passed"}, "teardown": {"duration": 9.943998884409666e-05, "outcome": "passed"}}, {"nodeid": "tests/test_string_utils.py::test_xfail_uppercase_digits", "lineno": 35, "outcome": "xfailed", "keywords": ["test_xfail_uppercase_digits", "xfail", "pytestmark", "test_string_utils.py", "tests", "slic", ""], "setup": {"duration": 0.0001188300084322691, "outcome": "passed"}, "call": {"duration": 0.0006370709743350744, "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.00013529101852327585, "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.00013431801926344633, "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": 1752587076.6972938, "duration": 0.721144437789917, "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.0032127780141308904, "outcome": "passed"}, "call": {"duration": 0.0004261339781805873, "outcome": "passed"}, "teardown": {"duration": 0.00024305901024490595, "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.00046387407928705215, "outcome": "passed"}, "call": {"duration": 0.00028738402761518955, "outcome": "passed"}, "teardown": {"duration": 0.00013642804697155952, "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.00012779596727341413, "outcome": "passed"}, "call": {"duration": 0.00016633502673357725, "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.00015761400572955608, "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.0001337979920208454, "outcome": "passed"}, "call": {"duration": 0.00019010505639016628, "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.0001524569233879447, "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.00021846394520252943, "outcome": "passed"}, "call": {"duration": 0.00017670204397290945, "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 0x7f9b18814ca0>\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.00017797702457755804, "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.00018545694183558226, "outcome": "passed"}, "call": {"duration": 0.0032367990352213383, "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 0x7f9b182d7bb0>\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.000320967985317111, "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.0001448270631954074, "outcome": "passed"}, "call": {"duration": 0.000200584065169096, "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.00020871602464467287, "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.00025799497961997986, "outcome": "passed"}, "call": {"duration": 0.00019365502521395683, "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 0x7f9b156d8340>\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.00018561806064099073, "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.0006583039648830891, "outcome": "passed"}, "call": {"duration": 0.0009225410176441073, "outcome": "passed"}, "teardown": {"duration": 0.0001621319679543376, "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.00011364906094968319, "outcome": "passed"}, "call": {"duration": 0.00016330706421285868, "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.00015117600560188293, "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.00012705905828624964, "outcome": "passed"}, "call": {"duration": 0.00016505492385476828, "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.00014823698438704014, "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.00011673092376440763, "outcome": "passed"}, "call": {"duration": 0.0001503940438851714, "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.0001346459612250328, "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.00029173295479267836, "outcome": "passed"}, "call": {"duration": 0.0001469579292461276, "outcome": "passed"}, "teardown": {"duration": 0.000137775088660419, "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.00024381093680858612, "outcome": "passed"}, "call": {"duration": 0.0001267970073968172, "outcome": "passed"}, "teardown": {"duration": 0.00013072194997221231, "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.00023513694759458303, "outcome": "passed"}, "call": {"duration": 0.00013011100236326456, "outcome": "passed"}, "teardown": {"duration": 0.00013188202865421772, "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.00023425009567290545, "outcome": "passed"}, "call": {"duration": 0.00012549699749797583, "outcome": "passed"}, "teardown": {"duration": 0.0001338550355285406, "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.0002453660126775503, "outcome": "passed"}, "call": {"duration": 0.00012592901475727558, "outcome": "passed"}, "teardown": {"duration": 0.00013521499931812286, "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.00023202202282845974, "outcome": "passed"}, "call": {"duration": 0.00012490793596953154, "outcome": "passed"}, "teardown": {"duration": 0.0001268379855901003, "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.00023731705732643604, "outcome": "passed"}, "call": {"duration": 0.00012592191342264414, "outcome": "passed"}, "teardown": {"duration": 0.00013014511205255985, "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.00023228302597999573, "outcome": "passed"}, "call": {"duration": 0.00012194295413792133, "outcome": "passed"}, "teardown": {"duration": 0.0001277880510315299, "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.00011454999912530184, "outcome": "passed"}, "call": {"duration": 0.00043726200237870216, "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.00013775192201137543, "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.00011610391084104776, "outcome": "passed"}, "call": {"duration": 0.0001582109834998846, "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.0001586059806868434, "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.00013193394988775253, "outcome": "passed"}, "call": {"duration": 0.00027660897467285395, "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.00013594096526503563, "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.00011843896936625242, "outcome": "passed"}, "call": {"duration": 0.00014782208018004894, "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.00013864494394510984, "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.00012616498861461878, "outcome": "passed"}, "call": {"duration": 0.00014972698409110308, "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.00013600499369204044, "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.00011415802873671055, "outcome": "passed"}, "call": {"duration": 0.00014513498172163963, "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.00013685296289622784, "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.00011689402163028717, "outcome": "passed"}, "call": {"duration": 0.0007815680000931025, "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.00018014805391430855, "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.0001346420031040907, "outcome": "passed"}, "call": {"duration": 0.00017308094538748264, "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.00013784191105514765, "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.00011561193969100714, "outcome": "passed"}, "call": {"duration": 0.00015472294762730598, "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.00013941293582320213, "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.00011560297571122646, "outcome": "passed"}, "call": {"duration": 0.00015253107994794846, "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.00014192401431500912, "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.00011750601697713137, "outcome": "passed"}, "call": {"duration": 0.0001487770350649953, "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.00013360206503421068, "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.00011453707702457905, "outcome": "passed"}, "call": {"duration": 0.0001454149605706334, "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.0001358630834147334, "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.00011831300798803568, "outcome": "passed"}, "call": {"duration": 0.00015718000940978527, "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.00013995799235999584, "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.00011849403381347656, "outcome": "passed"}, "call": {"duration": 0.00014923803973942995, "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 0x7f9b1598c550>\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.0002571839140728116, "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.00013876496814191341, "outcome": "passed"}, "call": {"duration": 0.00017175800167024136, "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.00017929403111338615, "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.00012770597822964191, "outcome": "passed"}, "call": {"duration": 0.00016513094305992126, "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.00013884599320590496, "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.00012920203153043985, "outcome": "passed"}, "call": {"duration": 0.00016244500875473022, "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.00013569300062954426, "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.00011465302668511868, "outcome": "passed"}, "call": {"duration": 0.0001639459514990449, "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.0001434289151802659, "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.00011528097093105316, "outcome": "passed"}, "call": {"duration": 0.00015778804663568735, "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.00013411405961960554, "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.00011883804108947515, "outcome": "passed"}, "call": {"duration": 0.00015352200716733932, "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.000136392074637115, "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.0001162760891020298, "outcome": "passed"}, "call": {"duration": 0.00046971498522907495, "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.00014025403652340174, "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.00012424401938915253, "outcome": "passed"}, "call": {"duration": 0.0001528679858893156, "outcome": "passed"}, "teardown": {"duration": 9.928003419190645e-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": 0.00010376109275966883, "outcome": "passed"}, "call": {"duration": 0.00014044297859072685, "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.0001379030290991068, "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.00012891704682260752, "outcome": "passed"}, "call": {"duration": 0.00015045306645333767, "outcome": "passed"}, "teardown": {"duration": 0.00010042800568044186, "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.0001035189488902688, "outcome": "passed"}, "call": {"duration": 0.00013936299365013838, "outcome": "passed"}, "teardown": {"duration": 9.564904030412436e-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.0001006110105663538, "outcome": "passed"}, "call": {"duration": 0.00014014204498380423, "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.0001303160097450018, "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.00012672902084887028, "outcome": "passed"}, "call": {"duration": 0.0001523100072517991, "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.00013786100316792727, "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.00011321809142827988, "outcome": "passed"}, "call": {"duration": 0.00013439403846859932, "outcome": "passed"}, "teardown": {"duration": 9.838398545980453e-05, "outcome": "passed"}}, {"nodeid": "tests/test_string_utils.py::test_xfail_uppercase_digits", "lineno": 35, "outcome": "xfailed", "keywords": ["test_xfail_uppercase_digits", "xfail", "pytestmark", "test_string_utils.py", "tests", "slic", ""], "setup": {"duration": 0.0001123109832406044, "outcome": "passed"}, "call": {"duration": 0.0005953611107543111, "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.00013314594980329275, "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.00011409004218876362, "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 090e46331..8db301214 100644 --- a/ci-reports/markdown/raw-test-output.log +++ b/ci-reports/markdown/raw-test-output.log @@ -1,7 +1,7 @@ ============================= test session starts ============================== platform linux -- Python 3.8.20, pytest-8.3.4, pluggy-1.5.0 rootdir: /workspace/tligui_y/slic -plugins: metadata-3.1.1, allure-pytest-2.13.5, html-4.1.1, cov-5.0.0, md-report-0.6.2, json-report-1.5.0 +plugins: cov-5.0.0, metadata-3.1.1, html-4.1.1, allure-pytest-2.13.5, json-report-1.5.0, md-report-0.6.2 collected 50 items / 2 errors tests/test_io_utils.py ..FFFFFF.F @@ -76,7 +76,7 @@ E FileNotFoundError: [Errno 2] No such file or directory: 'nonexistent.fil functions/io_utils.py:2: FileNotFoundError ____________________________ test_permission_error _____________________________ -monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fd1c1b03970> +monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f9b18814ca0> def test_permission_error(monkeypatch): # Patch open to raise PermissionError simulating access denial @@ -100,7 +100,7 @@ E PermissionError: Permission denied tests/test_io_utils.py:34: PermissionError _____________________________ test_mock_open_error _____________________________ -monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fd1c1d46ac0> +monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f9b182d7bb0> def test_mock_open_error(monkeypatch): # Mock open() to raise IOError simulating read error @@ -117,7 +117,7 @@ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ return self._execute_mock_call(*args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = +self = args = ('file.txt', 'r'), kwargs = {}, effect = OSError('Mocked IOError') def _execute_mock_call(self, /, *args, **kwargs): @@ -143,7 +143,7 @@ E ValueError: I/O operation on closed file tests/test_io_utils.py:50: ValueError ________________________________ test_os_error _________________________________ -monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fd1c1b28790> +monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f9b156d8340> def test_os_error(monkeypatch): # Patch os.remove to raise OSError simulating filesystem error @@ -311,7 +311,7 @@ tests/test_math_utils.py:103: StopIteration The above exception was the direct cause of the following exception: cls = -func = . at 0x7fd1c40e0550> +func = . at 0x7f9b1598c550> when = 'call' reraise = (, ) @@ -467,7 +467,7 @@ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ name = 'non_existent_module_xyz' -import_ = +import_ = > ??? E ModuleNotFoundError: No module named 'non_existent_module_xyz' @@ -561,4 +561,4 @@ ERROR tests/test_collector_error.py !!!!!!!!!!!!!!!!!!!!!!!!!!!!!! KeyboardInterrupt !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! /workspace/tligui_y/slic/tests/test_string_utils.py:43: KeyboardInterrupt (to show a full traceback on KeyboardInterrupt use --full-trace) -======== 32 failed, 15 passed, 2 xfailed, 1 warning, 2 errors in 0.76s ========= +======== 32 failed, 15 passed, 2 xfailed, 1 warning, 2 errors in 0.72s =========