diff --git a/ci-reports/markdown/TEST-REPORT.md b/ci-reports/markdown/TEST-REPORT.md
index 6a848a59..8f286963 100644
--- a/ci-reports/markdown/TEST-REPORT.md
+++ b/ci-reports/markdown/TEST-REPORT.md
@@ -1,603 +1,11 @@
-โ ๏ธ **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_wrong_argument_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_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 - 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)
-======== 31 failed, 15 passed, 2 xfailed, 1 warning, 2 errors in 0.71s =========
-```
-
-
-
-๐ชต 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, allure-pytest-2.13.5, html-4.1.1, json-report-1.5.0, md-report-0.6.2
-collected 49 items / 2 errors
-
-tests/test_io_utils.py ..FFFFFF.F
-tests/test_math_utils.py FF........FFxFFFFFFFFFFFFFFFFF
-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 0x7fca802a9f10>
-
- 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 0x7fca80336160>
-
- 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 0x7fca802a9f10>
-
- 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:51: AssertionError
-______________________________ test_division_zero ______________________________
-
- def test_division_zero():
- # Will raise ZeroDivisionError if not handled in division
-> division(1, 0)
-
-tests/test_math_utils.py:55:
-_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
-
-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:64: 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:68: 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:72: TimeoutError
-_____________________________ test_recursion_error _____________________________
-
- def test_recursion_error():
- # Infinite recursion triggers RecursionError
- def recursive():
- return recursive()
-> recursive()
-
-tests/test_math_utils.py:78:
-_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
-tests/test_math_utils.py:77: in recursive
- return recursive()
-tests/test_math_utils.py:77: 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
-> raise FloatingPointError("Simulated floating point error")
-E FloatingPointError: Simulated floating point error
-
-tests/test_math_utils.py:82: 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:86: 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:90: ValueError
-__________________________ test_wrong_argument_error ___________________________
-
- def test_wrong_argument_error():
- # TypeError when passing wrong argument type to sum
-> sum(5)
-E TypeError: 'int' object is not iterable
-
-tests/test_math_utils.py:94: 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:98: 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:102: CustomError
-__________________________ test_stop_iteration_direct __________________________
-
- def test_stop_iteration_direct():
- # Directly raise StopIteration exception
-> raise StopIteration()
-E StopIteration
-
-tests/test_math_utils.py:106: StopIteration
-
-The above exception was the direct cause of the following exception:
-
-cls =
-func = . at 0x7fca807fe9d0>
-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:110: GeneratorExit
-_____________________________ 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:114: SyntaxError
-________________________________ test_sys_exit _________________________________
-
- def test_sys_exit():
- # Simulate SystemExit via sys.exit
-> sys.exit(1)
-E SystemExit: 1
-
-tests/test_math_utils.py:118: 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:124:
-_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
-
-args = (), kwargs = {}
-
- def broken_func(*args, **kwargs):
-> raise TypeError("Broken function")
-E TypeError: Broken function
-
-tests/test_math_utils.py:123: TypeError
-______________________________ test_import_error _______________________________
-
- def test_import_error():
-> raise ImportError("Simulated ImportError")
-E ImportError: Simulated ImportError
-
-tests/test_math_utils.py:127: ImportError
-_________________________ test_module_not_found_error __________________________
-
- def test_module_not_found_error():
- # Raises ModuleNotFoundError (subclass of ImportError) for missing module
-> importlib.import_module("non_existent_module_xyz")
-
-tests/test_math_utils.py:131:
-_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
-.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_wrong_argument_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_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 - 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)
-======== 31 failed, 15 passed, 2 xfailed, 1 warning, 2 errors in 0.71s =========
-```
-
-
----
-
# ๐งช Test Report
-*Generated on 2025-07-15 14:08:32*
+*Generated on 2025-07-15 23:22:37*
+
+- **created**: `1752621756.9905546`
+- **duration**: `0.7634825706481934`
+- **exitcode**: `2`
+- **root**: `/workspace/tligui_y/slic`
+- **environment**:
## ๐ Summary
- **Passed**: `16`
@@ -605,6038 +13,89 @@ ERROR tests/test_collector_error.py
- **Xfailed**: `2`
- **Total**: `49`
- **Collected**: `49`
-- **Total Duration**: `0.716`s
-
-## ๐ Tests
-
-
-โ
Passed (16)
-
-
-
-๐ test_io_utils.py
-
-
-
-๐ง Function: `test_read_file`
-
-
-
-โ
#1
-
-- **Status:** โ
`passed`
-- **Duration:** `0.000416` s
-
-### ๐ง Setup Phase
-
-
-
-๐ Duration
-
-```
-`0.0033172060502693057`
-```
-
-
-
-
-
-
-๐ Outcome
-
-```
-`passed`
-```
-
-
-
-
-
-### ๐ง Call Phase
-
-
-
-๐ Duration
-
-```
-`0.0004157009534537792`
-```
-
-
-
-
-
-
-๐ Outcome
-
-```
-`passed`
-```
-
-
-
-
-
-### ๐ง Teardown Phase
-
-
-
-๐ Duration
-
-```
-`0.00025737204123288393`
-```
-
-
-
-
-
-
-๐ Outcome
-
-```
-`passed`
-```
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-๐ง Function: `test_write_file`
-
-
-
-โ
#2
-
-- **Status:** โ
`passed`
-- **Duration:** `0.000305` s
-
-### ๐ง Setup Phase
-
-
-
-๐ Duration
-
-```
-`0.00045859592501074076`
-```
-
-
-
-
-
-
-๐ Outcome
-
-```
-`passed`
-```
-
-
-
-
-
-### ๐ง Call Phase
-
-
-
-๐ Duration
-
-```
-`0.00030468800105154514`
-```
-
-
-
-
-
-
-๐ Outcome
-
-```
-`passed`
-```
-
-
-
-
-
-### ๐ง Teardown Phase
-
-
-
-๐ Duration
-
-```
-`0.00014054705388844013`
-```
-
-
-
-
-
-
-๐ Outcome
-
-```
-`passed`
-```
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-๐ง Function: `test_write_file_readonly`
-
-
-
-โ
#9
-
-- **Status:** โ
`passed`
-- **Duration:** `0.001101` s
-
-### ๐ง Setup Phase
-
-
-
-๐ Duration
-
-```
-`0.0006988380337134004`
-```
-
-
-
-
-
-
-๐ Outcome
-
-```
-`passed`
-```
-
-
-
-
-
-### ๐ง Call Phase
-
-
-
-๐ Duration
-
-```
-`0.0011005420237779617`
-```
-
-
-
-
-
-
-๐ Outcome
-
-```
-`passed`
-```
-
-
-
-
-
-### ๐ง Teardown Phase
-
-
-
-๐ Duration
-
-```
-`0.00015400699339807034`
-```
-
-
-
-
-
-
-๐ Outcome
-
-```
-`passed`
-```
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-๐ test_math_utils.py
-
-
-
-๐ง Function: `test_addition_pass`
-
-
-
-โ
#13 parameters: [2-2-4]
-
-- **Status:** โ
`passed`
-- **Duration:** `0.000157` s
-- **Parameters:** `2-2-4`
-
-### ๐ง Setup Phase
-
-
-
-๐ Duration
-
-```
-`0.0003210400464013219`
-```
-
-
-
-
-
-
-๐ Outcome
-
-```
-`passed`
-```
-
-
-
-
-
-### ๐ง Call Phase
-
-
-
-๐ Duration
-
-```
-`0.00015713798347860575`
-```
-
-
-
-
-
-
-๐ Outcome
-
-```
-`passed`
-```
-
-
-
-
-
-### ๐ง Teardown Phase
-
-
-
-๐ Duration
-
-```
-`0.00014523696154356003`
-```
-
-
-
-
-
-
-๐ Outcome
-
-```
-`passed`
-```
-
-
-
-
-
-
-
-
-
-
-โ
#14 parameters: [1-5-6]
-
-- **Status:** โ
`passed`
-- **Duration:** `0.000136` s
-- **Parameters:** `1-5-6`
-
-### ๐ง Setup Phase
-
-
-
-๐ Duration
-
-```
-`0.00026101304683834314`
-```
-
-
-
-
-
-
-๐ Outcome
-
-```
-`passed`
-```
-
-
-
-
-
-### ๐ง Call Phase
-
-
-
-๐ Duration
-
-```
-`0.00013629300519824028`
-```
-
-
-
-
-
-
-๐ Outcome
-
-```
-`passed`
-```
-
-
-
-
-
-### ๐ง Teardown Phase
-
-
-
-๐ Duration
-
-```
-`0.00013860990293323994`
-```
-
-
-
-
-
-
-๐ Outcome
-
-```
-`passed`
-```
-
-
-
-
-
-
-
-
-
-
-โ
#15 parameters: [3-4-7]
-
-- **Status:** โ
`passed`
-- **Duration:** `0.000129` s
-- **Parameters:** `3-4-7`
-
-### ๐ง Setup Phase
-
-
-
-๐ Duration
-
-```
-`0.0002625610213726759`
-```
-
-
-
-
-
-
-๐ Outcome
-
-```
-`passed`
-```
-
-
-
-
-
-### ๐ง Call Phase
-
-
-
-๐ Duration
-
-```
-`0.00012864591553807259`
-```
-
-
-
-
-
-
-๐ Outcome
-
-```
-`passed`
-```
-
-
-
-
-
-### ๐ง Teardown Phase
-
-
-
-๐ Duration
-
-```
-`0.0001323759788647294`
-```
-
-
-
-
-
-
-๐ Outcome
-
-```
-`passed`
-```
-
-
-
-
-
-
-
-
-
-
-โ
#16 parameters: [3-5-8]
-
-- **Status:** โ
`passed`
-- **Duration:** `0.000131` s
-- **Parameters:** `3-5-8`
-
-### ๐ง Setup Phase
-
-
-
-๐ Duration
-
-```
-`0.0002624019980430603`
-```
-
-
-
-
-
-
-๐ Outcome
-
-```
-`passed`
-```
-
-
-
-
-
-### ๐ง Call Phase
-
-
-
-๐ Duration
-
-```
-`0.00013136595953255892`
-```
-
-
-
-
-
-
-๐ Outcome
-
-```
-`passed`
-```
-
-
-
-
-
-### ๐ง Teardown Phase
-
-
-
-๐ Duration
-
-```
-`0.0001352030085399747`
-```
-
-
-
-
-
-
-๐ Outcome
-
-```
-`passed`
-```
-
-
-
-
-
-
-
-
-
-
-โ
#17 parameters: [3-6-9]
-
-- **Status:** โ
`passed`
-- **Duration:** `0.000139` s
-- **Parameters:** `3-6-9`
-
-### ๐ง Setup Phase
-
-
-
-๐ Duration
-
-```
-`0.00024789199233055115`
-```
-
-
-
-
-
-
-๐ Outcome
-
-```
-`passed`
-```
-
-
-
-
-
-### ๐ง Call Phase
-
-
-
-๐ Duration
-
-```
-`0.00013904401566833258`
-```
-
-
-
-
-
-
-๐ Outcome
-
-```
-`passed`
-```
-
-
-
-
-
-### ๐ง Teardown Phase
-
-
-
-๐ Duration
-
-```
-`0.0001403969945386052`
-```
-
-
-
-
-
-
-๐ Outcome
-
-```
-`passed`
-```
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-๐ง Function: `test_addition_pass_id`
-
-
-
-โ
#18 parameters: [a=2,b=2,expected=4]
-
-- **Status:** โ
`passed`
-- **Duration:** `0.000128` s
-- **Parameters:** `a=2,b=2,expected=4`
-
-### ๐ง Setup Phase
-
-
-
-๐ Duration
-
-```
-`0.0002581619191914797`
-```
-
-
-
-
-
-
-๐ Outcome
-
-```
-`passed`
-```
-
-
-
-
-
-### ๐ง Call Phase
-
-
-
-๐ Duration
-
-```
-`0.00012848398182541132`
-```
-
-
-
-
-
-
-๐ Outcome
-
-```
-`passed`
-```
-
-
-
-
-
-### ๐ง Teardown Phase
-
-
-
-๐ Duration
-
-```
-`0.00013925100211054087`
-```
-
-
-
-
-
-
-๐ Outcome
-
-```
-`passed`
-```
-
-
-
-
-
-
-
-
-
-
-โ
#19 parameters: [a=1,b=5,expected=6]
-
-- **Status:** โ
`passed`
-- **Duration:** `0.000134` s
-- **Parameters:** `a=1,b=5,expected=6`
-
-### ๐ง Setup Phase
-
-
-
-๐ Duration
-
-```
-`0.00025459693279117346`
-```
-
-
-
-
-
-
-๐ Outcome
-
-```
-`passed`
-```
-
-
-
-
-
-### ๐ง Call Phase
-
-
-
-๐ Duration
-
-```
-`0.00013373792171478271`
-```
-
-
-
-
-
-
-๐ Outcome
-
-```
-`passed`
-```
-
-
-
-
-
-### ๐ง Teardown Phase
-
-
-
-๐ Duration
-
-```
-`0.00014246301725506783`
-```
-
-
-
-
-
-
-๐ Outcome
-
-```
-`passed`
-```
-
-
-
-
-
-
-
-
-
-
-โ
#20 parameters: [a=3,b=4,expected=7]
-
-- **Status:** โ
`passed`
-- **Duration:** `0.000125` s
-- **Parameters:** `a=3,b=4,expected=7`
-
-### ๐ง Setup Phase
-
-
-
-๐ Duration
-
-```
-`0.00024441699497401714`
-```
-
-
-
-
-
-
-๐ Outcome
-
-```
-`passed`
-```
-
-
-
-
-
-### ๐ง Call Phase
-
-
-
-๐ Duration
-
-```
-`0.00012544903438538313`
-```
-
-
-
-
-
-
-๐ Outcome
-
-```
-`passed`
-```
-
-
-
-
-
-### ๐ง Teardown Phase
-
-
-
-๐ Duration
-
-```
-`0.00013036199379712343`
-```
-
-
-
-
-
-
-๐ Outcome
-
-```
-`passed`
-```
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-๐ test_string_utils.py
-
-
-
-๐ง Function: `test_uppercase_normal`
-
-
-
-โ
#41
-
-- **Status:** โ
`passed`
-- **Duration:** `0.000156` s
-
-### ๐ง Setup Phase
-
-
-
-๐ Duration
-
-```
-`0.00013214501086622477`
-```
-
-
-
-
-
-
-๐ Outcome
-
-```
-`passed`
-```
-
-
-
-
-
-### ๐ง Call Phase
-
-
-
-๐ Duration
-
-```
-`0.00015621003694832325`
-```
-
-
-
-
-
-
-๐ Outcome
-
-```
-`passed`
-```
-
-
-
-
-
-### ๐ง Teardown Phase
-
-
-
-๐ Duration
-
-```
-`0.00010547705460339785`
-```
-
-
-
-
-
-
-๐ Outcome
-
-```
-`passed`
-```
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-๐ง Function: `test_reverse_string`
-
-
-
-โ
#43
-
-- **Status:** โ
`passed`
-- **Duration:** `0.000140` s
-
-### ๐ง Setup Phase
-
-
-
-๐ Duration
-
-```
-`0.00012347206939011812`
-```
-
-
-
-
-
-
-๐ Outcome
-
-```
-`passed`
-```
-
-
-
-
-
-### ๐ง Call Phase
-
-
-
-๐ Duration
-
-```
-`0.00014037801884114742`
-```
-
-
-
-
-
-
-๐ Outcome
-
-```
-`passed`
-```
-
-
-
-
-
-### ๐ง Teardown Phase
-
-
-
-๐ Duration
-
-```
-`0.00010290194768458605`
-```
-
-
-
-
-
-
-๐ Outcome
-
-```
-`passed`
-```
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-๐ง Function: `test_warning_emit`
-
-
-
-โ
#44
-
-- **Status:** โ
`passed`
-- **Duration:** `0.000142` s
-
-### ๐ง Setup Phase
-
-
-
-๐ Duration
-
-```
-`0.00010593398474156857`
-```
-
-
-
-
-
-
-๐ Outcome
-
-```
-`passed`
-```
-
-
-
-
-
-### ๐ง Call Phase
-
-
-
-๐ Duration
-
-```
-`0.00014155101962387562`
-```
-
-
-
-
-
-
-๐ Outcome
-
-```
-`passed`
-```
-
-
-
-
-
-### ๐ง Teardown Phase
-
-
-
-๐ Duration
-
-```
-`0.000105067971162498`
-```
-
-
-
-
-
-
-๐ Outcome
-
-```
-`passed`
-```
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-๐ง Function: `test_import_warning`
-
-
-
-โ
#47
-
-- **Status:** โ
`passed`
-- **Duration:** `0.000139` s
-
-### ๐ง Setup Phase
-
-
-
-๐ Duration
-
-```
-`0.00012649898417294025`
-```
-
-
-
-
-
-
-๐ Outcome
-
-```
-`passed`
-```
-
-
-
-
-
-### ๐ง Call Phase
-
-
-
-๐ Duration
-
-```
-`0.00013916403986513615`
-```
-
-
-
-
-
-
-๐ Outcome
-
-```
-`passed`
-```
-
-
-
-
-
-### ๐ง Teardown Phase
-
-
-
-๐ Duration
-
-```
-`0.00010100600775331259`
-```
-
-
-
-
-
-
-๐ Outcome
-
-```
-`passed`
-```
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-๐ง Function: `test_keyboard_interrupt_direct`
-
-
-
-โ
#49
-
-- **Status:** โ
`passed`
-- **Duration**: `None`
-
-### ๐ง Setup Phase
-
-
-
-๐ Duration
-
-```
-`0.00012043304741382599`
-```
-
-
-
-
-
-
-๐ Outcome
-
-```
-`passed`
-```
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-โ Failed (31)
-
-
-
-๐ test_io_utils.py
-
-
-
-๐ง Function: `test_cause_io_error`
-
-
-
-โ #3
-
-- **Status:** โ `failed`
-- **Duration:** `0.000162` s
-
-### ๐ง Setup Phase
-
-
-
-๐ Duration
-
-```
-`0.00011585000902414322`
-```
-
-
-
-
-
-
-๐ Outcome
-
-```
-`passed`
-```
-
-
-
-
-
-### ๐ง Call Phase
-
-
-
-๐ Duration
-
-```
-`0.0001624280121177435`
-```
-
-
-
-
-
-
-๐ Outcome
-
-```
-`failed`
-```
-
-
-
-
-
-
-๐ Crash
-
-```
-`path: `/workspace/tligui_y/slic/functions/io_utils.py``, `lineno: `10``, `message: `OSError: Forced IO Error for testing``
-```
-
-
-
-
-
-
-๐ Traceback
-
-```
-`path: `tests/test_io_utils.py``, `lineno: `25``, `message: `None``, `path: `functions/io_utils.py``, `lineno: `10``, `message: `OSError``
-```
-
-
-
-
-
-
-๐ Longrepr
-
-```
-`def test_cause_io_error():
- # Raises manual IOError to simulate IO failure
-> cause_io_error()
-
-tests/test_io_utils.py:25:
-_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
-
- def cause_io_error():
-> raise IOError("Forced IO Error for testing")
-E OSError: Forced IO Error for testing
-
-functions/io_utils.py:10: OSError`
-```
-
-
-
-
-
-### ๐ง Teardown Phase
-
-
-
-๐ Duration
-
-```
-`0.00015452702064067125`
-```
-
-
-
-
-
-
-๐ Outcome
-
-```
-`passed`
-```
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-๐ง Function: `test_file_not_found`
-
-
-
-โ #4
-
-- **Status:** โ `failed`
-- **Duration:** `0.000183` s
-
-### ๐ง Setup Phase
-
-
-
-๐ Duration
-
-```
-`0.00011873093899339437`
-```
-
-
-
-
-
-
-๐ Outcome
-
-```
-`passed`
-```
-
-
-
-
-
-### ๐ง Call Phase
-
-
-
-๐ Duration
-
-```
-`0.00018346600700169802`
-```
-
-
-
-
-
-
-๐ Outcome
-
-```
-`failed`
-```
-
-
-
-
-
-
-๐ Crash
-
-```
-`path: `/workspace/tligui_y/slic/functions/io_utils.py``, `lineno: `2``, `message: `FileNotFoundError: [Errno 2] No such file or directory: 'nonexistent.file'``
-```
-
-
-
-
-
-
-๐ Traceback
-
-```
-`path: `tests/test_io_utils.py``, `lineno: `29``, `message: `None``, `path: `functions/io_utils.py``, `lineno: `2``, `message: `FileNotFoundError``
-```
-
-
-
-
-
-
-๐ Longrepr
-
-```
-`def test_file_not_found():
- # Reading non-existing file raises FileNotFoundError
-> read_file("nonexistent.file")
-
-tests/test_io_utils.py:29:
-_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
-
-path = 'nonexistent.file'
-
- def read_file(path):
-> with open(path, "r", encoding="utf-8") as f:
-E FileNotFoundError: [Errno 2] No such file or directory: 'nonexistent.file'
-
-functions/io_utils.py:2: FileNotFoundError`
-```
-
-
-
-
-
-### ๐ง Teardown Phase
-
-
-
-๐ Duration
-
-```
-`0.00013900292105972767`
-```
-
-
-
-
-
-
-๐ Outcome
-
-```
-`passed`
-```
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-๐ง Function: `test_permission_error`
-
-
-
-โ #5
-
-- **Status:** โ `failed`
-- **Duration:** `0.000183` s
-
-### ๐ง Setup Phase
-
-
-
-๐ Duration
-
-```
-`0.0002115229144692421`
-```
-
-
-
-
-
-
-๐ Outcome
-
-```
-`passed`
-```
-
-
-
-
-
-### ๐ง Call Phase
-
-
-
-๐ Duration
-
-```
-`0.0001825540093705058`
-```
-
-
-
-
-
-
-๐ Outcome
-
-```
-`failed`
-```
-
-
-
-
-
-
-๐ Crash
-
-```
-`path: `/workspace/tligui_y/slic/tests/test_io_utils.py``, `lineno: `34``, `message: `PermissionError: Permission denied``
-```
-
-
-
-
-
-
-๐ Traceback
-
-```
-`path: `tests/test_io_utils.py``, `lineno: `36``, `message: `None``, `path: `functions/io_utils.py``, `lineno: `2``, `message: `in read_file``, `path: `tests/test_io_utils.py``, `lineno: `34``, `message: `PermissionError``
-```
-
-
-
-
-
-
-๐ Longrepr
-
-```
-`monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fca802a9f10>
-
- def test_permission_error(monkeypatch):
- # Patch open to raise PermissionError simulating access denial
- def raise_perm_error(*args, **kwargs):
- raise PermissionError("Permission denied")
- monkeypatch.setattr("builtins.open", raise_perm_error)
-> read_file("anyfile.txt")
-
-tests/test_io_utils.py:36:
-_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
-functions/io_utils.py:2: in read_file
- with open(path, "r", encoding="utf-8") as f:
-_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
-
-args = ('anyfile.txt', 'r'), kwargs = {'encoding': 'utf-8'}
-
- def raise_perm_error(*args, **kwargs):
-> raise PermissionError("Permission denied")
-E PermissionError: Permission denied
-
-tests/test_io_utils.py:34: PermissionError`
-```
-
-
-
-
-
-### ๐ง Teardown Phase
-
-
-
-๐ Duration
-
-```
-`0.00016726902686059475`
-```
-
-
-
-
-
-
-๐ Outcome
-
-```
-`passed`
-```
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-๐ง Function: `test_mock_open_error`
-
-
-
-โ #6
-
-- **Status:** โ `failed`
-- **Duration:** `0.003254` s
-
-### ๐ง Setup Phase
-
-
-
-๐ Duration
-
-```
-`0.00020821299403905869`
-```
-
-
-
-
-
-
-๐ Outcome
-
-```
-`passed`
-```
-
-
-
-
-
-### ๐ง Call Phase
-
-
-
-๐ Duration
-
-```
-`0.0032537200022488832`
-```
-
-
-
-
-
-
-๐ Outcome
-
-```
-`failed`
-```
-
-
-
-
-
-
-๐ Crash
-
-```
-`path: `/workspace/tligui_y/slic/.pixi/envs/default/lib/python3.8/unittest/mock.py``, `lineno: `1140``, `message: `OSError: Mocked IOError``
-```
-
-
-
-
-
-
-๐ Traceback
-
-```
-`path: `tests/test_io_utils.py``, `lineno: `43``, `message: `None``, `path: `.pixi/envs/default/lib/python3.8/unittest/mock.py``, `lineno: `1081``, `message: `in __call__``, `path: `.pixi/envs/default/lib/python3.8/unittest/mock.py``, `lineno: `1085``, `message: `in _mock_call``, `path: `.pixi/envs/default/lib/python3.8/unittest/mock.py``, `lineno: `1140``, `message: `OSError``
-```
-
-
-
-
-
-
-๐ Longrepr
-
-```
-`monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fca80336160>
-
- def test_mock_open_error(monkeypatch):
- # Mock open() to raise IOError simulating read error
- mocked_open = mock.mock_open()
- mocked_open.side_effect = IOError("Mocked IOError")
- monkeypatch.setattr("builtins.open", mocked_open)
-> with open("file.txt", "r") as f:
-
-tests/test_io_utils.py:43:
-_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
-.pixi/envs/default/lib/python3.8/unittest/mock.py:1081: in __call__
- return self._mock_call(*args, **kwargs)
-.pixi/envs/default/lib/python3.8/unittest/mock.py:1085: in _mock_call
- return self._execute_mock_call(*args, **kwargs)
-_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
-
-self =
-args = ('file.txt', 'r'), kwargs = {}, effect = OSError('Mocked IOError')
-
- def _execute_mock_call(self, /, *args, **kwargs):
- # separate from _increment_mock_call so that awaited functions are
- # executed separately from their call, also AsyncMock overrides this method
-
- effect = self.side_effect
- if effect is not None:
- if _is_exception(effect):
-> raise effect
-E OSError: Mocked IOError
-
-.pixi/envs/default/lib/python3.8/unittest/mock.py:1140: OSError`
-```
-
-
-
-
-
-### ๐ง Teardown Phase
-
-
-
-๐ Duration
-
-```
-`0.0003365569282323122`
-```
-
-
-
-
-
-
-๐ Outcome
-
-```
-`passed`
-```
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-๐ง Function: `test_file_handle_closed_error`
-
-
-
-โ #7
-
-- **Status:** โ `failed`
-- **Duration:** `0.000200` s
-
-### ๐ง Setup Phase
-
-
-
-๐ Duration
-
-```
-`0.00015492108650505543`
-```
-
-
-
-
-
-
-๐ Outcome
-
-```
-`passed`
-```
-
-
-
-
-
-### ๐ง Call Phase
-
-
-
-๐ Duration
-
-```
-`0.0002002849942073226`
-```
-
-
-
-
-
-
-๐ Outcome
-
-```
-`failed`
-```
-
-
-
-
-
-
-๐ Crash
-
-```
-`path: `/workspace/tligui_y/slic/tests/test_io_utils.py``, `lineno: `50``, `message: `ValueError: I/O operation on closed file``
-```
-
-
-
-
-
-
-๐ Traceback
-
-```
-`path: `tests/test_io_utils.py``, `lineno: `50``, `message: `ValueError``
-```
-
-
-
-
-
-
-๐ Longrepr
-
-```
-`def test_file_handle_closed_error():
- # Accessing closed file raises ValueError
- f = io.StringIO("content")
- f.close()
-> f.read()
-E ValueError: I/O operation on closed file
-
-tests/test_io_utils.py:50: ValueError`
-```
-
-
-
-
-
-### ๐ง Teardown Phase
-
-
-
-๐ Duration
-
-```
-`0.00018326402641832829`
-```
-
-
-
-
-
-
-๐ Outcome
-
-```
-`passed`
-```
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-๐ง Function: `test_os_error`
-
-
-
-โ #8
-
-- **Status:** โ `failed`
-- **Duration:** `0.000192` s
-
-### ๐ง Setup Phase
-
-
-
-๐ Duration
-
-```
-`0.0002485569566488266`
-```
-
-
-
-
-
-
-๐ Outcome
-
-```
-`passed`
-```
-
-
-
-
-
-### ๐ง Call Phase
-
-
-
-๐ Duration
-
-```
-`0.00019227794837206602`
-```
-
-
-
-
-
-
-๐ Outcome
-
-```
-`failed`
-```
-
-
-
-
-
-
-๐ Crash
-
-```
-`path: `/workspace/tligui_y/slic/tests/test_io_utils.py``, `lineno: `55``, `message: `OSError: Simulated OSError``
-```
-
-
-
-
-
-
-๐ Traceback
-
-```
-`path: `tests/test_io_utils.py``, `lineno: `57``, `message: `None``, `path: `tests/test_io_utils.py``, `lineno: `55``, `message: `OSError``
-```
-
-
-
-
-
-
-๐ Longrepr
-
-```
-`monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fca802a9f10>
-
- def test_os_error(monkeypatch):
- # Patch os.remove to raise OSError simulating filesystem error
- def raise_os_error(path):
- raise OSError("Simulated OSError")
- monkeypatch.setattr("os.remove", raise_os_error)
-> os.remove("file.txt")
-
-tests/test_io_utils.py:57:
-_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
-
-path = 'file.txt'
-
- def raise_os_error(path):
-> raise OSError("Simulated OSError")
-E OSError: Simulated OSError
-
-tests/test_io_utils.py:55: OSError`
-```
-
-
-
-
-
-### ๐ง Teardown Phase
-
-
-
-๐ Duration
-
-```
-`0.00018819898832589388`
-```
-
-
-
-
-
-
-๐ Outcome
-
-```
-`passed`
-```
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-๐ง Function: `test_file_not_found_error`
-
-
-
-โ #10
-
-- **Status:** โ `failed`
-- **Duration:** `0.000169` s
-
-### ๐ง Setup Phase
-
-
-
-๐ Duration
-
-```
-`0.00011646398343145847`
-```
-
-
-
-
-
-
-๐ Outcome
-
-```
-`passed`
-```
-
-
-
-
-
-### ๐ง Call Phase
-
-
-
-๐ Duration
-
-```
-`0.0001691100187599659`
-```
-
-
-
-
-
-
-๐ Outcome
-
-```
-`failed`
-```
-
-
-
-
-
-
-๐ Crash
-
-```
-`path: `/workspace/tligui_y/slic/tests/test_io_utils.py``, `lineno: `69``, `message: `FileNotFoundError: [Errno 2] No such file or directory: 'no_such_file.txt'``
-```
-
-
-
-
-
-
-๐ Traceback
-
-```
-`path: `tests/test_io_utils.py``, `lineno: `69``, `message: `FileNotFoundError``
-```
-
-
-
-
-
-
-๐ Longrepr
-
-```
-`def test_file_not_found_error():
- # Raises FileNotFoundError when opening a non-existent file
-> open("no_such_file.txt", "r")
-E FileNotFoundError: [Errno 2] No such file or directory: 'no_such_file.txt'
-
-tests/test_io_utils.py:69: FileNotFoundError`
-```
-
-
-
-
-
-### ๐ง Teardown Phase
-
-
-
-๐ Duration
-
-```
-`0.00014163204468786716`
-```
-
-
-
-
-
-
-๐ Outcome
-
-```
-`passed`
-```
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-๐ test_math_utils.py
-
-
-
-๐ง Function: `test_broken`
-
-
-
-โ #11
-
-- **Status:** โ `failed`
-- **Duration:** `0.000162` s
-
-### ๐ง Setup Phase
-
-
-
-๐ Duration
-
-```
-`0.0001335109118372202`
-```
-
-
-
-
-
-
-๐ Outcome
-
-```
-`passed`
-```
-
-
-
-
-
-### ๐ง Call Phase
-
-
-
-๐ Duration
-
-```
-`0.00016223802231252193`
-```
-
-
-
-
-
-
-๐ Outcome
-
-```
-`failed`
-```
-
-
-
-
-
-
-๐ Crash
-
-```
-`path: `/workspace/tligui_y/slic/tests/test_math_utils.py``, `lineno: `16``, `message: `NameError: name 'want_the_test_to_fail' is not defined``
-```
-
-
-
-
-
-
-๐ Traceback
-
-```
-`path: `tests/test_math_utils.py``, `lineno: `16``, `message: `NameError``
-```
-
-
-
-
-
-
-๐ Longrepr
-
-```
-`def test_broken():
- # simulating a broken or faulty test implementation that will cause the test to error
-> want_the_test_to_fail
-E NameError: name 'want_the_test_to_fail' is not defined
-
-tests/test_math_utils.py:16: NameError`
-```
-
-
-
-
-
-### ๐ง Teardown Phase
-
-
-
-๐ Duration
-
-```
-`0.00014082901179790497`
-```
-
-
-
-
-
-
-๐ Outcome
-
-```
-`passed`
-```
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-๐ง Function: `test_call_missing_function`
-
-
-
-โ #12
-
-- **Status:** โ `failed`
-- **Duration:** `0.000165` s
-
-### ๐ง Setup Phase
-
-
-
-๐ Duration
-
-```
-`0.00012609397526830435`
-```
-
-
-
-
-
-
-๐ Outcome
-
-```
-`passed`
-```
-
-
-
-
-
-### ๐ง Call Phase
-
-
-
-๐ Duration
-
-```
-`0.00016478798352181911`
-```
-
-
-
-
-
-
-๐ Outcome
-
-```
-`failed`
-```
-
-
-
-
-
-
-๐ Crash
-
-```
-`path: `/workspace/tligui_y/slic/tests/test_math_utils.py``, `lineno: `20``, `message: `AttributeError: module 'functions.math_utils' has no attribute 'non_existent_function'``
-```
-
-
-
-
-
-
-๐ Traceback
-
-```
-`path: `tests/test_math_utils.py``, `lineno: `20``, `message: `AttributeError``
-```
-
-
-
-
-
-
-๐ Longrepr
-
-```
-`def test_call_missing_function():
- # Accessing a missing function attribute raises AttributeError
-> getattr(math_utils, "non_existent_function")()
-E AttributeError: module 'functions.math_utils' has no attribute 'non_existent_function'
-
-tests/test_math_utils.py:20: AttributeError`
-```
-
-
-
-
-
-### ๐ง Teardown Phase
-
-
-
-๐ Duration
-
-```
-`0.00013732793740928173`
-```
-
-
-
-
-
-
-๐ Outcome
-
-```
-`passed`
-```
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-๐ง Function: `test_addition_fail`
-
-
-
-โ #21
-
-- **Status:** โ `failed`
-- **Duration:** `0.000462` s
-
-### ๐ง Setup Phase
-
-
-
-๐ Duration
-
-```
-`0.00010830000974237919`
-```
-
-
-
-
-
-
-๐ Outcome
-
-```
-`passed`
-```
-
-
-
-
-
-### ๐ง Call Phase
-
-
-
-๐ Duration
-
-```
-`0.00046193203888833523`
-```
-
-
-
-
-
-
-๐ Outcome
-
-```
-`failed`
-```
-
-
-
-
-
-
-๐ Crash
-
-```
-`path: `/workspace/tligui_y/slic/tests/test_math_utils.py``, `lineno: `51``, `message: `assert 4 == 5
- + where 4 = addition(2, 2)``
-```
-
-
-
-
-
-
-๐ Traceback
-
-```
-`path: `tests/test_math_utils.py``, `lineno: `51``, `message: `AssertionError``
-```
-
-
-
-
-
-
-๐ Longrepr
-
-```
-`def test_addition_fail():
- # Assertion failure: expected incorrect result
-> assert addition(2, 2) == 5
-E assert 4 == 5
-E + where 4 = addition(2, 2)
-
-tests/test_math_utils.py:51: AssertionError`
-```
-
-
-
-
-
-### ๐ง Teardown Phase
-
-
-
-๐ Duration
-
-```
-`0.00013660406693816185`
-```
-
-
-
-
-
-
-๐ Outcome
-
-```
-`passed`
-```
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-๐ง Function: `test_division_zero`
-
-
-
-โ #22
-
-- **Status:** โ `failed`
-- **Duration:** `0.000157` s
-
-### ๐ง Setup Phase
-
-
-
-๐ Duration
-
-```
-`0.00012057996354997158`
-```
-
-
-
-
-
-
-๐ Outcome
-
-```
-`passed`
-```
-
-
-
-
-
-### ๐ง Call Phase
-
-
-
-๐ Duration
-
-```
-`0.00015724997501820326`
-```
-
-
-
-
-
-
-๐ Outcome
-
-```
-`failed`
-```
-
-
-
-
-
-
-๐ Crash
-
-```
-`path: `/workspace/tligui_y/slic/functions/math_utils.py``, `lineno: `5``, `message: `ZeroDivisionError: division by zero``
-```
-
-
-
-
-
-
-๐ Traceback
-
-```
-`path: `tests/test_math_utils.py``, `lineno: `55``, `message: `None``, `path: `functions/math_utils.py``, `lineno: `5``, `message: `ZeroDivisionError``
-```
-
-
-
-
-
-
-๐ Longrepr
-
-```
-`def test_division_zero():
- # Will raise ZeroDivisionError if not handled in division
-> division(1, 0)
-
-tests/test_math_utils.py:55:
-_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
-
-a = 1, b = 0
-
- def division(a, b):
-> return a / b
-E ZeroDivisionError: division by zero
-
-functions/math_utils.py:5: ZeroDivisionError`
-```
-
-
-
-
-
-### ๐ง Teardown Phase
-
-
-
-๐ Duration
-
-```
-`0.00014126196037977934`
-```
-
-
-
-
-
-
-๐ Outcome
-
-```
-`passed`
-```
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-๐ง Function: `test_runtime_error`
-
-
-
-โ #24
-
-- **Status:** โ `failed`
-- **Duration:** `0.000156` s
-
-### ๐ง Setup Phase
-
-
-
-๐ Duration
-
-```
-`0.00011560996063053608`
-```
-
-
-
-
-
-
-๐ Outcome
-
-```
-`passed`
-```
-
-
-
-
-
-### ๐ง Call Phase
-
-
-
-๐ Duration
-
-```
-`0.0001555519411340356`
-```
-
-
-
-
-
-
-๐ Outcome
-
-```
-`failed`
-```
-
-
-
-
-
-
-๐ Crash
-
-```
-`path: `/workspace/tligui_y/slic/tests/test_math_utils.py``, `lineno: `64``, `message: `RuntimeError: Forced runtime error``
-```
-
-
-
-
-
-
-๐ Traceback
-
-```
-`path: `tests/test_math_utils.py``, `lineno: `64``, `message: `RuntimeError``
-```
-
-
-
-
-
-
-๐ Longrepr
-
-```
-`def test_runtime_error():
- # Test raises an uncaught RuntimeError
-> raise RuntimeError("Forced runtime error")
-E RuntimeError: Forced runtime error
-
-tests/test_math_utils.py:64: RuntimeError`
-```
-
-
-
-
-
-### ๐ง Teardown Phase
-
-
-
-๐ Duration
-
-```
-`0.000137986964546144`
-```
-
-
-
-
-
-
-๐ Outcome
-
-```
-`passed`
-```
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-๐ง Function: `test_memory_error`
-
-
-
-โ #25
-
-- **Status:** โ `failed`
-- **Duration:** `0.000147` s
-
-### ๐ง Setup Phase
-
-
-
-๐ Duration
-
-```
-`0.00011925806757062674`
-```
-
-
-
-
-
-
-๐ Outcome
-
-```
-`passed`
-```
-
-
-
-
-
-### ๐ง Call Phase
-
-
-
-๐ Duration
-
-```
-`0.00014711299445480108`
-```
-
-
-
-
-
-
-๐ Outcome
-
-```
-`failed`
-```
-
-
-
-
-
-
-๐ Crash
-
-```
-`path: `/workspace/tligui_y/slic/tests/test_math_utils.py``, `lineno: `68``, `message: `MemoryError: Simulated memory error``
-```
-
-
-
-
-
-
-๐ Traceback
-
-```
-`path: `tests/test_math_utils.py``, `lineno: `68``, `message: `MemoryError``
-```
-
-
-
-
-
-
-๐ Longrepr
-
-```
-`def test_memory_error():
- # Manually raise MemoryError to simulate out-of-memory condition
-> raise MemoryError("Simulated memory error")
-E MemoryError: Simulated memory error
-
-tests/test_math_utils.py:68: MemoryError`
-```
-
-
-
-
-
-### ๐ง Teardown Phase
-
-
-
-๐ Duration
-
-```
-`0.00014676700811833143`
-```
-
-
-
-
-
-
-๐ Outcome
-
-```
-`passed`
-```
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-๐ง Function: `test_timeout_error`
-
-
-
-โ #26
-
-- **Status:** โ `failed`
-- **Duration:** `0.000156` s
-
-### ๐ง Setup Phase
-
-
-
-๐ Duration
-
-```
-`0.00011719600297510624`
-```
-
-
-
-
-
-
-๐ Outcome
-
-```
-`passed`
-```
-
-
-
-
-
-### ๐ง Call Phase
-
-
-
-๐ Duration
-
-```
-`0.00015604798682034016`
-```
-
-
-
-
-
-
-๐ Outcome
-
-```
-`failed`
-```
-
-
-
-
-
-
-๐ Crash
-
-```
-`path: `/workspace/tligui_y/slic/tests/test_math_utils.py``, `lineno: `72``, `message: `TimeoutError: Simulated timeout error``
-```
-
-
-
-
-
-
-๐ Traceback
-
-```
-`path: `tests/test_math_utils.py``, `lineno: `72``, `message: `TimeoutError``
-```
-
-
-
-
-
-
-๐ Longrepr
-
-```
-`def test_timeout_error():
- # Manually raise TimeoutError simulating timeout conditions
-> raise TimeoutError("Simulated timeout error")
-E TimeoutError: Simulated timeout error
-
-tests/test_math_utils.py:72: TimeoutError`
-```
-
-
-
-
-
-### ๐ง Teardown Phase
-
-
-
-๐ Duration
-
-```
-`0.0001434370642527938`
-```
-
-
-
-
-
-
-๐ Outcome
-
-```
-`passed`
-```
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-๐ง Function: `test_recursion_error`
-
-
-
-โ #27
-
-- **Status:** โ `failed`
-- **Duration:** `0.000764` s
-
-### ๐ง Setup Phase
-
-
-
-๐ Duration
-
-```
-`0.00012157601304352283`
-```
-
-
-
-
-
-
-๐ Outcome
-
-```
-`passed`
-```
-
-
-
-
-
-### ๐ง Call Phase
-
-
-
-๐ Duration
-
-```
-`0.0007640880066901445`
-```
-
-
-
-
-
-
-๐ Outcome
-
-```
-`failed`
-```
-
-
-
-
-
-
-๐ Crash
-
-```
-`path: `/workspace/tligui_y/slic/tests/test_math_utils.py``, `lineno: `77``, `message: `RecursionError: maximum recursion depth exceeded``
-```
-
-
-
-
-
-
-๐ Traceback
-
-```
-`path: `tests/test_math_utils.py``, `lineno: `78``, `message: `None``, `path: `tests/test_math_utils.py``, `lineno: `77``, `message: `in recursive``, `path: `tests/test_math_utils.py``, `lineno: `77``, `message: `in recursive``
-```
-
-
-
-
-
-
-๐ Longrepr
-
-```
-`def test_recursion_error():
- # Infinite recursion triggers RecursionError
- def recursive():
- return recursive()
-> recursive()
-
-tests/test_math_utils.py:78:
-_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
-tests/test_math_utils.py:77: in recursive
- return recursive()
-tests/test_math_utils.py:77: in recursive
- return recursive()
-E RecursionError: maximum recursion depth exceeded
-!!! Recursion detected (same locals & position)`
-```
-
-
-
-
-
-### ๐ง Teardown Phase
-
-
-
-๐ Duration
-
-```
-`0.00015297392383217812`
-```
-
-
-
-
-
-
-๐ Outcome
-
-```
-`passed`
-```
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-๐ง Function: `test_floating_point_error`
-
-
-
-โ #28
-
-- **Status:** โ `failed`
-- **Duration:** `0.000159` s
-
-### ๐ง Setup Phase
-
-
-
-๐ Duration
-
-```
-`0.00012920994777232409`
-```
-
-
-
-
-
-
-๐ Outcome
-
-```
-`passed`
-```
-
-
-
-
-
-### ๐ง Call Phase
-
-
-
-๐ Duration
-
-```
-`0.00015900295693427324`
-```
-
-
-
-
-
-
-๐ Outcome
-
-```
-`failed`
-```
-
-
-
-
-
-
-๐ Crash
-
-```
-`path: `/workspace/tligui_y/slic/tests/test_math_utils.py``, `lineno: `82``, `message: `FloatingPointError: Simulated floating point error``
-```
-
-
-
-
-
-
-๐ Traceback
-
-```
-`path: `tests/test_math_utils.py``, `lineno: `82``, `message: `FloatingPointError``
-```
-
-
-
-
-
-
-๐ Longrepr
-
-```
-`def test_floating_point_error():
- # Manually raise FloatingPointError
-> raise FloatingPointError("Simulated floating point error")
-E FloatingPointError: Simulated floating point error
-
-tests/test_math_utils.py:82: FloatingPointError`
-```
-
-
-
-
-
-### ๐ง Teardown Phase
-
-
-
-๐ Duration
-
-```
-`0.00014309899415820837`
-```
-
-
-
-
-
-
-๐ Outcome
-
-```
-`passed`
-```
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-๐ง Function: `test_floating_point_overflow`
-
-
-
-โ #29
-
-- **Status:** โ `failed`
-- **Duration:** `0.000177` s
-
-### ๐ง Setup Phase
-
-
-
-๐ Duration
-
-```
-`0.00012554600834846497`
-```
-
-
-
-
-
-
-๐ Outcome
-
-```
-`passed`
-```
-
-
-
-
-
-### ๐ง Call Phase
-
-
-
-๐ Duration
-
-```
-`0.00017693405970931053`
-```
-
-
-
-
-
-
-๐ Outcome
-
-```
-`failed`
-```
-
-
-
-
-
-
-๐ Crash
-
-```
-`path: `/workspace/tligui_y/slic/tests/test_math_utils.py``, `lineno: `86``, `message: `OverflowError: math range error``
-```
-
-
-
-
-
-
-๐ Traceback
-
-```
-`path: `tests/test_math_utils.py``, `lineno: `86``, `message: `OverflowError``
-```
-
-
-
-
-
-
-๐ Longrepr
-
-```
-`def test_floating_point_overflow():
- # Exponential overflow triggers OverflowError
-> math.exp(1000)
-E OverflowError: math range error
-
-tests/test_math_utils.py:86: OverflowError`
-```
-
-
-
-
-
-### ๐ง Teardown Phase
-
-
-
-๐ Duration
-
-```
-`0.00013890897389501333`
-```
-
-
-
-
-
-
-๐ Outcome
-
-```
-`passed`
-```
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-๐ง Function: `test_value_error`
-
-
-
-โ #30
-
-- **Status:** โ `failed`
-- **Duration:** `0.000155` s
-
-### ๐ง Setup Phase
-
-
-
-๐ Duration
-
-```
-`0.00013219495303928852`
-```
-
-
-
-
-
-
-๐ Outcome
-
-```
-`passed`
-```
-
-
-
-
-
-### ๐ง Call Phase
-
-
-
-๐ Duration
-
-```
-`0.0001548790605738759`
-```
-
-
-
-
-
-
-๐ Outcome
-
-```
-`failed`
-```
-
-
-
-
-
-
-๐ Crash
-
-```
-`path: `/workspace/tligui_y/slic/tests/test_math_utils.py``, `lineno: `90``, `message: `ValueError: invalid literal for int() with base 10: 'invalid'``
-```
-
-
-
-
-
-
-๐ Traceback
-
-```
-`path: `tests/test_math_utils.py``, `lineno: `90``, `message: `ValueError``
-```
-
-
-
-
-
-
-๐ Longrepr
-
-```
-`def test_value_error():
- # ValueError on invalid integer conversion
-> int("invalid")
-E ValueError: invalid literal for int() with base 10: 'invalid'
-
-tests/test_math_utils.py:90: ValueError`
-```
-
-
-
-
-
-### ๐ง Teardown Phase
-
-
-
-๐ Duration
-
-```
-`0.00013572792522609234`
-```
-
-
-
-
-
-
-๐ Outcome
-
-```
-`passed`
-```
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-๐ง Function: `test_wrong_argument_error`
-
-
-
-โ #31
-
-- **Status:** โ `failed`
-- **Duration:** `0.000155` s
-
-### ๐ง Setup Phase
-
-
-
-๐ Duration
-
-```
-`0.0001179729588329792`
-```
-
-
-
-
-
-
-๐ Outcome
-
-```
-`passed`
-```
-
-
-
-
-
-### ๐ง Call Phase
-
-
-
-๐ Duration
-
-```
-`0.00015486590564250946`
-```
-
-
-
-
-
-
-๐ Outcome
-
-```
-`failed`
-```
-
-
-
-
-
-
-๐ Crash
-
-```
-`path: `/workspace/tligui_y/slic/tests/test_math_utils.py``, `lineno: `94``, `message: `TypeError: 'int' object is not iterable``
-```
-
-
-
-
-
-
-๐ Traceback
-
-```
-`path: `tests/test_math_utils.py``, `lineno: `94``, `message: `TypeError``
-```
-
-
-
-
-
-
-๐ Longrepr
-
-```
-`def test_wrong_argument_error():
- # TypeError when passing wrong argument type to sum
-> sum(5)
-E TypeError: 'int' object is not iterable
-
-tests/test_math_utils.py:94: TypeError`
-```
-
-
-
-
-
-### ๐ง Teardown Phase
-
-
-
-๐ Duration
-
-```
-`0.0001332459505647421`
-```
-
-
-
-
-
-
-๐ Outcome
-
-```
-`passed`
-```
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-๐ง Function: `test_unhandled_exception`
-
-
-
-โ #32
-
-- **Status:** โ `failed`
-- **Duration:** `0.000166` s
-
-### ๐ง Setup Phase
-
-
-
-๐ Duration
-
-```
-`0.0001329620135948062`
-```
-
-
-
-
-
-
-๐ Outcome
-
-```
-`passed`
-```
-
-
-
-
-
-### ๐ง Call Phase
-
-
-
-๐ Duration
-
-```
-`0.0001655810046941042`
-```
-
-
-
-
-
-
-๐ Outcome
-
-```
-`failed`
-```
-
-
-
-
-
-
-๐ Crash
-
-```
-`path: `/workspace/tligui_y/slic/tests/test_math_utils.py``, `lineno: `98``, `message: `Exception: Generic unhandled exception``
-```
-
-
-
-
-
-
-๐ Traceback
-
-```
-`path: `tests/test_math_utils.py``, `lineno: `98``, `message: `Exception``
-```
-
-
-
-
-
-
-๐ Longrepr
-
-```
-`def test_unhandled_exception():
- # Raises generic unhandled Exception
-> raise Exception("Generic unhandled exception")
-E Exception: Generic unhandled exception
-
-tests/test_math_utils.py:98: Exception`
-```
-
-
-
-
-
-### ๐ง Teardown Phase
-
-
-
-๐ Duration
-
-```
-`0.00013618299271911383`
-```
-
-
-
-
-
-
-๐ Outcome
-
-```
-`passed`
-```
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-๐ง Function: `test_custom_error`
-
-
-
-โ #33
-
-- **Status:** โ `failed`
-- **Duration:** `0.000159` s
-
-### ๐ง Setup Phase
-
-
-
-๐ Duration
-
-```
-`0.00011864700354635715`
-```
-
-
-
-
-
-
-๐ Outcome
-
-```
-`passed`
-```
-
-
-
-
-
-### ๐ง Call Phase
-
-
-
-๐ Duration
-
-```
-`0.00015874207019805908`
-```
-
-
-
-
-
-
-๐ Outcome
-
-```
-`failed`
-```
-
-
-
-
-
-
-๐ Crash
-
-```
-`path: `/workspace/tligui_y/slic/tests/test_math_utils.py``, `lineno: `102``, `message: `test_math_utils.CustomError: Custom error simulation``
-```
-
-
-
-
-
-
-๐ Traceback
-
-```
-`path: `tests/test_math_utils.py``, `lineno: `102``, `message: `CustomError``
-```
-
-
-
-
-
-
-๐ Longrepr
-
-```
-`def test_custom_error():
- # Raises user-defined CustomError exception
-> raise CustomError("Custom error simulation")
-E test_math_utils.CustomError: Custom error simulation
-
-tests/test_math_utils.py:102: CustomError`
-```
-
-
-
-
-
-### ๐ง Teardown Phase
-
-
-
-๐ Duration
-
-```
-`0.00014582101721316576`
-```
-
-
-
-
-
-
-๐ Outcome
-
-```
-`passed`
-```
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-๐ง Function: `test_stop_iteration_direct`
-
-
-
-โ #34
-
-- **Status:** โ `failed`
-- **Duration:** `0.000157` s
-
-### ๐ง Setup Phase
-
-
-
-๐ Duration
-
-```
-`0.00012644799426198006`
-```
-
-
-
-
-
-
-๐ Outcome
-
-```
-`passed`
-```
-
-
-
-
-
-### ๐ง Call Phase
-
-
-
-๐ Duration
-
-```
-`0.00015734496992081404`
-```
-
-
-
-
-
-
-๐ Outcome
-
-```
-`failed`
-```
-
-
-
-
-
-
-๐ Crash
-
-```
-`path: `/workspace/tligui_y/slic/.pixi/envs/default/lib/python3.8/site-packages/_pytest/capture.py``, `lineno: `880``, `message: `RuntimeError: generator raised StopIteration``
-```
-
-
-
-
-
-
-๐ Traceback
-
-```
-`path: `.pixi/envs/default/lib/python3.8/site-packages/_pytest/runner.py``, `lineno: `341``, `message: `None``, `path: `.pixi/envs/default/lib/python3.8/site-packages/_pytest/runner.py``, `lineno: `242``, `message: `in ``, `path: `.pixi/envs/default/lib/python3.8/site-packages/pluggy/_hooks.py``, `lineno: `513``, `message: `in __call__``, `path: `.pixi/envs/default/lib/python3.8/site-packages/pluggy/_manager.py``, `lineno: `120``, `message: `in _hookexec``, `path: `.pixi/envs/default/lib/python3.8/site-packages/_pytest/threadexception.py``, `lineno: `92``, `message: `in pytest_runtest_call``, `path: `.pixi/envs/default/lib/python3.8/site-packages/_pytest/threadexception.py``, `lineno: `68``, `message: `in thread_exception_runtest_hook``, `path: `.pixi/envs/default/lib/python3.8/site-packages/_pytest/unraisableexception.py``, `lineno: `95``, `message: `in pytest_runtest_call``, `path: `.pixi/envs/default/lib/python3.8/site-packages/_pytest/unraisableexception.py``, `lineno: `70``, `message: `in unraisable_exception_runtest_hook``, `path: `.pixi/envs/default/lib/python3.8/site-packages/_pytest/logging.py``, `lineno: `846``, `message: `in pytest_runtest_call``, `path: `.pixi/envs/default/lib/python3.8/site-packages/_pytest/logging.py``, `lineno: `829``, `message: `in _runtest_for``, `path: `.pixi/envs/default/lib/python3.8/site-packages/_pytest/capture.py``, `lineno: `880``, `message: `RuntimeError``
-```
-
-
-
-
-
-
-๐ Longrepr
-
-```
-`def test_stop_iteration_direct():
- # Directly raise StopIteration exception
-> raise StopIteration()
-E StopIteration
-
-tests/test_math_utils.py:106: StopIteration
-
-The above exception was the direct cause of the following exception:
-
-cls =
-func = . at 0x7fca807fe9d0>
-when = 'call'
-reraise = (, )
-
- @classmethod
- def from_call(
- cls,
- func: Callable[[], TResult],
- when: Literal["collect", "setup", "call", "teardown"],
- reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None,
- ) -> CallInfo[TResult]:
- """Call func, wrapping the result in a CallInfo.
-
- :param func:
- The function to call. Called without arguments.
- :type func: Callable[[], _pytest.runner.TResult]
- :param when:
- The phase in which the function is called.
- :param reraise:
- Exception or exceptions that shall propagate if raised by the
- function, instead of being wrapped in the CallInfo.
- """
- excinfo = None
- start = timing.time()
- precise_start = timing.perf_counter()
- try:
-> result: TResult | None = func()
-
-.pixi/envs/default/lib/python3.8/site-packages/_pytest/runner.py:341:
-_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
-.pixi/envs/default/lib/python3.8/site-packages/_pytest/runner.py:242: in
- lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise
-.pixi/envs/default/lib/python3.8/site-packages/pluggy/_hooks.py:513: in __call__
- return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
-.pixi/envs/default/lib/python3.8/site-packages/pluggy/_manager.py:120: in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
-.pixi/envs/default/lib/python3.8/site-packages/_pytest/threadexception.py:92: in pytest_runtest_call
- yield from thread_exception_runtest_hook()
-.pixi/envs/default/lib/python3.8/site-packages/_pytest/threadexception.py:68: in thread_exception_runtest_hook
- yield
-.pixi/envs/default/lib/python3.8/site-packages/_pytest/unraisableexception.py:95: in pytest_runtest_call
- yield from unraisable_exception_runtest_hook()
-.pixi/envs/default/lib/python3.8/site-packages/_pytest/unraisableexception.py:70: in unraisable_exception_runtest_hook
- yield
-.pixi/envs/default/lib/python3.8/site-packages/_pytest/logging.py:846: in pytest_runtest_call
- yield from self._runtest_for(item, "call")
-.pixi/envs/default/lib/python3.8/site-packages/_pytest/logging.py:829: in _runtest_for
- yield
-_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
-
-self = _capture_fixture=None>
-item =
-
- @hookimpl(wrapper=True)
- def pytest_runtest_call(self, item: Item) -> Generator[None]:
- with self.item_capture("call", item):
-> return (yield)
-E RuntimeError: generator raised StopIteration
-
-.pixi/envs/default/lib/python3.8/site-packages/_pytest/capture.py:880: RuntimeError`
-```
-
-
-
-
-
-### ๐ง Teardown Phase
-
-
-
-๐ Duration
-
-```
-`0.0002563969464972615`
-```
-
-
-
-
-
-
-๐ Outcome
-
-```
-`passed`
-```
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-๐ง Function: `test_generator_exit_direct`
-
-
-
-โ #35
-
-- **Status:** โ `failed`
-- **Duration:** `0.000179` s
-
-### ๐ง Setup Phase
-
-
-
-๐ Duration
-
-```
-`0.00014788098633289337`
-```
-
-
-
-
-
-
-๐ Outcome
-
-```
-`passed`
-```
-
-
-
-
-
-### ๐ง Call Phase
-
-
-
-๐ Duration
-
-```
-`0.0001789960078895092`
-```
-
-
-
-
-
-
-๐ Outcome
-
-```
-`failed`
-```
-
-
-
-
-
-
-๐ Crash
-
-```
-`path: `/workspace/tligui_y/slic/tests/test_math_utils.py``, `lineno: `110``, `message: `GeneratorExit``
-```
-
-
-
-
-
-
-๐ Traceback
-
-```
-`path: `tests/test_math_utils.py``, `lineno: `110``, `message: `GeneratorExit``
-```
-
-
-
-
-
-
-๐ Longrepr
-
-```
-`def test_generator_exit_direct():
- # Directly raise GeneratorExit exception
-> raise GeneratorExit()
-E GeneratorExit
-
-tests/test_math_utils.py:110: GeneratorExit`
-```
-
-
-
-
-
-### ๐ง Teardown Phase
-
-
-
-๐ Duration
-
-```
-`0.00016625795979052782`
-```
-
-
-
-
-
-
-๐ Outcome
-
-```
-`passed`
-```
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-๐ง Function: `test_malformed_code`
-
-
-
-โ #36
-
-- **Status:** โ `failed`
-- **Duration:** `0.000174` s
-
-### ๐ง Setup Phase
-
-
-
-๐ Duration
-
-```
-`0.00012155401054769754`
-```
-
-
-
-
-
-
-๐ Outcome
-
-```
-`passed`
-```
-
-
-
-
-
-### ๐ง Call Phase
-
-
-
-๐ Duration
-
-```
-`0.00017426698468625546`
-```
-
-
-
-
-
-
-๐ Outcome
-
-```
-`failed`
-```
-
-
-
-
-
-
-๐ Crash
-
-```
-`path: `/workspace/tligui_y/slic/tests/test_math_utils.py``, `lineno: `114``, `message: ` File "", line 1
- def bad(:
- ^
-SyntaxError: invalid syntax``
-```
-
-
-
-
-
-
-๐ Traceback
-
-```
-`path: `tests/test_math_utils.py``, `lineno: `114``, `message: `SyntaxError``
-```
-
-
-
-
-
-
-๐ Longrepr
-
-```
-`def test_malformed_code():
- # SyntaxError when executing malformed Python code
-> exec("def bad(:\n pass")
-E File "", line 1
-E def bad(:
-E ^
-E SyntaxError: invalid syntax
-
-tests/test_math_utils.py:114: SyntaxError`
-```
-
-
-
-
-
-### ๐ง Teardown Phase
-
-
-
-๐ Duration
-
-```
-`0.0001384679926559329`
-```
-
-
-
-
-
-
-๐ Outcome
-
-```
-`passed`
-```
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-๐ง Function: `test_sys_exit`
-
-
-
-โ #37
-
-- **Status:** โ `failed`
-- **Duration:** `0.000146` s
-
-### ๐ง Setup Phase
-
-
-
-๐ Duration
-
-```
-`0.00011598202399909496`
-```
-
-
-
-
-
-
-๐ Outcome
-
-```
-`passed`
-```
-
-
-
-
-
-### ๐ง Call Phase
-
-
-
-๐ Duration
-
-```
-`0.00014594208914786577`
-```
-
-
-
-
-
-
-๐ Outcome
-
-```
-`failed`
-```
-
-
-
-
-
-
-๐ Crash
-
-```
-`path: `/workspace/tligui_y/slic/tests/test_math_utils.py``, `lineno: `118``, `message: `SystemExit: 1``
-```
-
-
-
-
-
-
-๐ Traceback
-
-```
-`path: `tests/test_math_utils.py``, `lineno: `118``, `message: `SystemExit``
-```
-
-
-
-
-
-
-๐ Longrepr
-
-```
-`def test_sys_exit():
- # Simulate SystemExit via sys.exit
-> sys.exit(1)
-E SystemExit: 1
-
-tests/test_math_utils.py:118: SystemExit`
-```
-
-
-
-
-
-### ๐ง Teardown Phase
-
-
-
-๐ Duration
-
-```
-`0.0001350479433313012`
-```
-
-
-
-
-
-
-๐ Outcome
-
-```
-`passed`
-```
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-๐ง Function: `test_broken_function`
-
-
-
-โ #38
-
-- **Status:** โ `failed`
-- **Duration:** `0.000151` s
-
-### ๐ง Setup Phase
-
-
-
-๐ Duration
-
-```
-`0.0001187729649245739`
-```
-
-
-
-
-
-
-๐ Outcome
-
-```
-`passed`
-```
-
-
-
-
-
-### ๐ง Call Phase
-
-
-
-๐ Duration
-
-```
-`0.00015059893485158682`
-```
-
-
-
-
-
-
-๐ Outcome
-
-```
-`failed`
-```
-
-
-
-
-
-
-๐ Crash
-
-```
-`path: `/workspace/tligui_y/slic/tests/test_math_utils.py``, `lineno: `123``, `message: `TypeError: Broken function``
-```
-
-
-
-
-
-
-๐ Traceback
-
-```
-`path: `tests/test_math_utils.py``, `lineno: `124``, `message: `None``, `path: `tests/test_math_utils.py``, `lineno: `123``, `message: `TypeError``
-```
-
-
-
-
-
-
-๐ Longrepr
-
-```
-`def test_broken_function():
- # Simulate broken function raising TypeError
- def broken_func(*args, **kwargs):
- raise TypeError("Broken function")
-> broken_func()
-
-tests/test_math_utils.py:124:
-_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
-
-args = (), kwargs = {}
-
- def broken_func(*args, **kwargs):
-> raise TypeError("Broken function")
-E TypeError: Broken function
-
-tests/test_math_utils.py:123: TypeError`
-```
-
-
-
-
-
-### ๐ง Teardown Phase
-
-
-
-๐ Duration
-
-```
-`0.00014546606689691544`
-```
-
-
-
-
-
-
-๐ Outcome
-
-```
-`passed`
-```
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-๐ง Function: `test_import_error`
-
-
-
-โ #39
-
-- **Status:** โ `failed`
-- **Duration:** `0.000150` s
-
-### ๐ง Setup Phase
-
-
-
-๐ Duration
-
-```
-`0.00012724800035357475`
-```
-
-
-
-
-
-
-๐ Outcome
-
-```
-`passed`
-```
-
-
-
-
-
-### ๐ง Call Phase
-
-
-
-๐ Duration
-
-```
-`0.00015033700037747622`
-```
-
-
-
-
-
-
-๐ Outcome
-
-```
-`failed`
-```
-
-
-
-
-
-
-๐ Crash
-
-```
-`path: `/workspace/tligui_y/slic/tests/test_math_utils.py``, `lineno: `127``, `message: `ImportError: Simulated ImportError``
-```
-
-
-
-
-
-
-๐ Traceback
-
-```
-`path: `tests/test_math_utils.py``, `lineno: `127``, `message: `ImportError``
-```
-
-
-
-
-
-
-๐ Longrepr
-
-```
-`def test_import_error():
-> raise ImportError("Simulated ImportError")
-E ImportError: Simulated ImportError
-
-tests/test_math_utils.py:127: ImportError`
-```
-
-
-
-
-
-### ๐ง Teardown Phase
-
-
-
-๐ Duration
-
-```
-`0.00014597305562347174`
-```
-
-
-
-
-
-
-๐ Outcome
-
-```
-`passed`
-```
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-๐ง Function: `test_module_not_found_error`
-
-
-
-โ #40
-
-- **Status:** โ `failed`
-- **Duration:** `0.000464` s
-
-### ๐ง Setup Phase
-
-
-
-๐ Duration
-
-```
-`0.00011592404916882515`
-```
-
-
-
-
-
-
-๐ Outcome
-
-```
-`passed`
-```
-
-
-
-
-
-### ๐ง Call Phase
-
-
-
-๐ Duration
-
-```
-`0.0004635860677808523`
-```
-
-
-
-
-
-
-๐ Outcome
-
-```
-`failed`
-```
-
-
-
-
-
-
-๐ Crash
-
-```
-`path: ```, `lineno: `973``, `message: `ModuleNotFoundError: No module named 'non_existent_module_xyz'``
-```
-
-
-
-
-
-
-๐ Traceback
-
-```
-`path: `tests/test_math_utils.py``, `lineno: `131``, `message: `None``, `path: `.pixi/envs/default/lib/python3.8/importlib/__init__.py``, `lineno: `127``, `message: `in import_module``, `path: ```, `lineno: `1014``, `message: `in _gcd_import``, `path: ```, `lineno: `991``, `message: `in _find_and_load``, `path: ```, `lineno: `973``, `message: `ModuleNotFoundError``
-```
-
-
-
-
-
-
-๐ Longrepr
-
-```
-`def test_module_not_found_error():
- # Raises ModuleNotFoundError (subclass of ImportError) for missing module
-> importlib.import_module("non_existent_module_xyz")
-
-tests/test_math_utils.py:131:
-_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
-.pixi/envs/default/lib/python3.8/importlib/__init__.py:127: in import_module
- return _bootstrap._gcd_import(name[level:], package, level)
-:1014: in _gcd_import
- ???
-:991: in _find_and_load
- ???
-_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
-
-name = 'non_existent_module_xyz'
-import_ =
-
-> ???
-E ModuleNotFoundError: No module named 'non_existent_module_xyz'
-
-:973: ModuleNotFoundError`
-```
-
-
-
-
-
-### ๐ง Teardown Phase
-
-
-
-๐ Duration
-
-```
-`0.00014267093501985073`
-```
-
-
-
-
-
-
-๐ Outcome
-
-```
-`passed`
-```
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-๐ test_string_utils.py
-
-
-
-๐ง Function: `test_uppercase_type_error`
-
-
-
-โ #42
-
-- **Status:** โ `failed`
-- **Duration:** `0.000144` s
-
-### ๐ง Setup Phase
-
-
-
-๐ Duration
-
-```
-`0.00010519602801650763`
-```
-
-
-
-
-
-
-๐ Outcome
-
-```
-`passed`
-```
-
-
-
-
-
-### ๐ง Call Phase
-
-
-
-๐ Duration
-
-```
-`0.000143897021189332`
-```
-
-
-
-
-
-
-๐ Outcome
-
-```
-`failed`
-```
-
-
-
-
-
-
-๐ Crash
-
-```
-`path: `/workspace/tligui_y/slic/functions/string_utils.py``, `lineno: `3``, `message: `TypeError: Input cannot be None``
-```
-
-
-
-
-
-
-๐ Traceback
-
-```
-`path: `tests/test_string_utils.py``, `lineno: `14``, `message: `None``, `path: `functions/string_utils.py``, `lineno: `3``, `message: `TypeError``
-```
-
-
-
-
-
-
-๐ Longrepr
-
-```
-`def test_uppercase_type_error():
- # TypeError when input is None (invalid input)
-> uppercase(None)
-
-tests/test_string_utils.py:14:
-_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
-
-s = None
-
- def uppercase(s):
- if s is None:
-> raise TypeError("Input cannot be None")
-E TypeError: Input cannot be None
-
-functions/string_utils.py:3: TypeError`
-```
-
-
-
-
-
-### ๐ง Teardown Phase
-
-
-
-๐ Duration
-
-```
-`0.00013579102233052254`
-```
-
-
-
-
-
-
-๐ Outcome
-
-```
-`passed`
-```
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-๐ง Function: `test_unicode_decode_error`
-
-
-
-โ #45
-
-- **Status:** โ `failed`
-- **Duration:** `0.000141` s
-
-### ๐ง Setup Phase
-
-
-
-๐ Duration
-
-```
-`0.00010159204248338938`
-```
-
-
-
-
-
-
-๐ Outcome
-
-```
-`passed`
-```
-
-
-
-
-
-### ๐ง Call Phase
-
-
-
-๐ Duration
-
-```
-`0.0001410660333931446`
-```
-
-
-
-
-
-
-๐ Outcome
-
-```
-`failed`
-```
-
-
-
-
-
-
-๐ Crash
-
-```
-`path: `/workspace/tligui_y/slic/tests/test_string_utils.py``, `lineno: `26``, `message: `UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 0: invalid start byte``
-```
-
-
-
-
-
-
-๐ Traceback
-
-```
-`path: `tests/test_string_utils.py``, `lineno: `26``, `message: `UnicodeDecodeError``
-```
-
-
-
-
-
-
-๐ Longrepr
-
-```
-`def test_unicode_decode_error():
- # UnicodeDecodeError when decoding invalid byte sequence
-> b'\xff'.decode('utf-8')
-E UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 0: invalid start byte
-
-tests/test_string_utils.py:26: UnicodeDecodeError`
-```
-
-
-
-
-
-### ๐ง Teardown Phase
-
-
-
-๐ Duration
-
-```
-`0.0001343809999525547`
-```
-
-
-
-
-
-
-๐ Outcome
-
-```
-`passed`
-```
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-๐ง Function: `test_unicode_decode_surrogateescape`
-
-
-
-โ #46
-
-- **Status:** โ `failed`
-- **Duration:** `0.000152` s
-
-### ๐ง Setup Phase
-
-
-
-๐ Duration
-
-```
-`0.00013013789430260658`
-```
-
-
-
-
-
-
-๐ Outcome
-
-```
-`passed`
-```
-
-
-
-
-
-### ๐ง Call Phase
-
-
-
-๐ Duration
-
-```
-`0.00015160406474024057`
-```
-
-
-
-
-
-
-๐ Outcome
-
-```
-`failed`
-```
-
-
-
-
-
-
-๐ Crash
-
-```
-`path: `/workspace/tligui_y/slic/tests/test_string_utils.py``, `lineno: `30``, `message: `UnicodeDecodeError: 'utf-8' codec can't decode byte 0x80 in position 0: invalid start byte``
-```
-
-
-
-
-
-
-๐ Traceback
-
-```
-`path: `tests/test_string_utils.py``, `lineno: `30``, `message: `UnicodeDecodeError``
-```
-
-
-
-
-
-
-๐ Longrepr
-
-```
-`def test_unicode_decode_surrogateescape():
- # UnicodeDecodeError with strict error handler on invalid byte
-> b"\x80".decode("utf-8", errors="strict")
-E UnicodeDecodeError: 'utf-8' codec can't decode byte 0x80 in position 0: invalid start byte
-
-tests/test_string_utils.py:30: UnicodeDecodeError`
-```
-
-
-
-
-
-### ๐ง Teardown Phase
-
-
-
-๐ Duration
-
-```
-`0.00013520894572138786`
-```
-
-
-
-
-
-
-๐ Outcome
-
-```
-`passed`
-```
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-โ Xfailed (2)
-
-
-
-๐ test_math_utils.py
-
-
-
-๐ง Function: `test_multiply_xfail`
-
-
-
-โ #23
-
-- **Status:** โ `xfailed`
-- **Duration:** `0.000266` s
-
-### ๐ง Setup Phase
-
-
-
-๐ Duration
-
-```
-`0.00014679704327136278`
-```
-
-
-
-
-
-
-๐ Outcome
-
-```
-`passed`
-```
-
-
-
-
-
-### ๐ง Call Phase
-
-
-
-๐ Duration
-
-```
-`0.000266409944742918`
-```
-
-
-
-
-
-
-๐ Outcome
-
-```
-`skipped`
-```
-
-
-
-
-
-
-๐ Crash
-
-```
-`path: `/workspace/tligui_y/slic/tests/test_math_utils.py``, `lineno: `60``, `message: `assert 4 == 5
- + where 4 = multiply(2, 2)``
-```
-
-
-
-
-
-
-๐ Traceback
-
-```
-`path: `tests/test_math_utils.py``, `lineno: `60``, `message: `AssertionError``
-```
-
-
-
-
-
-
-๐ Longrepr
-
-```
-`@pytest.mark.xfail(reason="Expected failure")
- def test_multiply_xfail():
- # Expected fail test (xfail): incorrect expected multiply result
-> assert multiply(2, 2) == 5
-E assert 4 == 5
-E + where 4 = multiply(2, 2)
-
-tests/test_math_utils.py:60: AssertionError`
-```
-
-
-
-
-
-### ๐ง Teardown Phase
-
-
-
-๐ Duration
-
-```
-`0.0001401999033987522`
-```
-
-
-
-
-
-
-๐ Outcome
-
-```
-`passed`
-```
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-๐ test_string_utils.py
-
-
-
-๐ง Function: `test_xfail_uppercase_digits`
-
-
-
-โ #48
-
-- **Status:** โ `xfailed`
-- **Duration:** `0.000591` s
-
-### ๐ง Setup Phase
-
-
-
-๐ Duration
-
-```
-`0.00011566991452127695`
-```
-
-
-
-
-
-
-๐ Outcome
-
-```
-`passed`
-```
-
-
-
-
-
-### ๐ง Call Phase
-
-
-
-๐ Duration
-
-```
-`0.000590565032325685`
-```
-
-
-
-
-
-
-๐ Outcome
-
-```
-`skipped`
-```
-
-
-
-
-
-
-๐ Crash
-
-```
-`path: `/workspace/tligui_y/slic/tests/test_string_utils.py``, `lineno: `39``, `message: `AssertionError: assert 'ABC123' == 'ABC1234'
-
- - ABC1234
- ? -
- + ABC123``
-```
-
-
-
-
-
-
-๐ Traceback
-
-```
-`path: `tests/test_string_utils.py``, `lineno: `39``, `message: `AssertionError``
-```
-
-
-
-
-
-
-๐ Longrepr
-
-```
-`@pytest.mark.xfail(reason="Expected failure: uppercase does not handle digits")
- def test_xfail_uppercase_digits():
- # Expected fail test because uppercase won't change digits
-> assert uppercase("abc123") == "ABC1234"
-E AssertionError: assert 'ABC123' == 'ABC1234'
-E
-E - ABC1234
-E ? -
-E + ABC123
-
-tests/test_string_utils.py:39: AssertionError`
-```
-
-
-
-
-
-### ๐ง Teardown Phase
-
-
-
-๐ Duration
-
-```
-`0.00013522198423743248`
-```
-
-
-
-
-
-
-๐ Outcome
-
-```
-`passed`
-```
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
## ๐ Collected files
+
+
+โ
(1 entries)
+
-โ
(1 tests)
+Collector #1
-โ
+nodeid
+
+```
+`None`
+```
+
+
+
+
+
+outcome
+
+```
+`passed`
+```
+
+
+
+
+
+result
-- **Outcome:** `passed`
-- **Details:**
```
-result:
`nodeid: `.``, `type: `Dir``
+```
+
+
+
+
+
+
+
+
+
+
+
+
+
+โ
ci-reports (12 entries)
+
+
+
+Collector #1
+
+
+
+nodeid
+
+```
+`ci-reports/allure/data`
+```
+
+
+
+
+
+outcome
+
+```
+`passed`
+```
+
+
+
+
+
+result
```
+```
@@ -6646,185 +105,225 @@ result:
-โ
ci-reports (12 tests)
+Collector #2
-โ
ci-reports
-
-- **Outcome:** `passed`
-- **Details:**
-```
-result:
-`nodeid: `ci-reports/allure``, `type: `Dir``, `nodeid: `ci-reports/coverage``, `type: `Dir``, `nodeid: `ci-reports/markdown``, `type: `Dir``
+nodeid
```
-
+`ci-reports/allure/export`
+```
-โ
ci-reports/allure
-
-- **Outcome:** `passed`
-- **Details:**
-```
-result:
-`nodeid: `ci-reports/allure/data``, `type: `Dir``, `nodeid: `ci-reports/allure/export``, `type: `Dir``, `nodeid: `ci-reports/allure/history``, `type: `Dir``, `nodeid: `ci-reports/allure/plugin``, `type: `Dir``, `nodeid: `ci-reports/allure/widgets``, `type: `Dir``
+outcome
```
-
+`passed`
+```
-โ
ci-reports/allure/data
-
-- **Outcome:** `passed`
-- **Details:**
-```
-result:
-
+result
```
+```
+
+
+
+
+
+
+
+
+
+Collector #3
+
+
+
+nodeid
+
+```
+`ci-reports/allure/history`
+```
-โ
ci-reports/allure/export
-
-- **Outcome:** `passed`
-- **Details:**
-```
-result:
-
+outcome
```
-
+`passed`
+```
-โ
ci-reports/allure/history
-
-- **Outcome:** `passed`
-- **Details:**
-```
-result:
-
+result
```
+```
+
+
+
+
+
+
+
+
+
+Collector #4
+
+
+
+nodeid
+
+```
+`ci-reports/allure/plugin/behaviors`
+```
-โ
ci-reports/allure/plugin
+outcome
+
+```
+`passed`
+```
+
+
+
+
+
+result
+
+```
+
+```
+
+
+
+
+
+
+
+
+
+Collector #5
+
+
+
+nodeid
+
+```
+`ci-reports/allure/plugin/packages`
+```
+
+
+
+
+
+outcome
+
+```
+`passed`
+```
+
+
+
+
+
+result
+
+```
+
+```
+
+
+
+
+
+
+
+
+
+Collector #6
+
+
+
+nodeid
+
+```
+`ci-reports/allure/plugin/screen-diff`
+```
+
+
+
+
+
+outcome
+
+```
+`passed`
+```
+
+
+
+
+
+result
+
+```
+
+```
+
+
+
+
+
+
+
+
+
+Collector #7
+
+
+
+nodeid
+
+```
+`ci-reports/allure/plugin`
+```
+
+
+
+
+
+outcome
+
+```
+`passed`
+```
+
+
+
+
+
+result
-- **Outcome:** `passed`
-- **Details:**
```
-result:
`nodeid: `ci-reports/allure/plugin/behaviors``, `type: `Dir``, `nodeid: `ci-reports/allure/plugin/packages``, `type: `Dir``, `nodeid: `ci-reports/allure/plugin/screen-diff``, `type: `Dir``
-
```
-
-
-
-
-
-
-โ
ci-reports/allure/plugin/behaviors
-
-- **Outcome:** `passed`
-- **Details:**
-```
-result:
-
-
-```
-
-
-
-
-
-
-โ
ci-reports/allure/plugin/packages
-
-- **Outcome:** `passed`
-- **Details:**
-```
-result:
-
-
-```
-
-
-
-
-
-
-โ
ci-reports/allure/plugin/screen-diff
-
-- **Outcome:** `passed`
-- **Details:**
-```
-result:
-
-
-```
-
-
-
-
-
-
-โ
ci-reports/allure/widgets
-
-- **Outcome:** `passed`
-- **Details:**
-```
-result:
-
-
-```
-
-
-
-
-
-
-โ
ci-reports/coverage
-
-- **Outcome:** `passed`
-- **Details:**
-```
-result:
-
-
-```
-
-
-
-
-
-
-โ
ci-reports/markdown
-
-- **Outcome:** `passed`
-- **Details:**
-```
-result:
-
-
-```
-
@@ -6834,20 +333,35 @@ result:
-โ
functions (1 tests)
+Collector #8
-โ
functions
+nodeid
-- **Outcome:** `passed`
-- **Details:**
```
-result:
+`ci-reports/allure/widgets`
+```
+
+
+
+
+outcome
+
+```
+`passed`
+```
+
+
+
+
+
+result
```
+```
@@ -6857,34 +371,249 @@ result:
-โ tests (6 tests)
+Collector #9
-โ
tests
-
-- **Outcome:** `passed`
-- **Details:**
-```
-result:
-`nodeid: `tests/test_broken_fct.py``, `type: `Module``, `nodeid: `tests/test_collector_error.py``, `type: `Module``, `nodeid: `tests/test_io_utils.py``, `type: `Module``, `nodeid: `tests/test_math_utils.py``, `type: `Module``, `nodeid: `tests/test_string_utils.py``, `type: `Module``
+nodeid
```
-
+`ci-reports/allure`
+```
-โ tests/test_broken_fct.py
+outcome
-- **Outcome:** `failed`
-- **Details:**
```
-result:
+`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``
+```
+
+
-longrepr:
+
+
+
+
+
+Collector #10
+
+
+
+nodeid
+
+```
+`ci-reports/coverage`
+```
+
+
+
+
+
+outcome
+
+```
+`passed`
+```
+
+
+
+
+
+result
+
+```
+
+```
+
+
+
+
+
+
+
+
+
+Collector #11
+
+
+
+nodeid
+
+```
+`ci-reports/markdown`
+```
+
+
+
+
+
+outcome
+
+```
+`passed`
+```
+
+
+
+
+
+result
+
+```
+
+```
+
+
+
+
+
+
+
+
+
+Collector #12
+
+
+
+nodeid
+
+```
+`ci-reports`
+```
+
+
+
+
+
+outcome
+
+```
+`passed`
+```
+
+
+
+
+
+result
+
+```
+`nodeid: `ci-reports/allure``, `type: `Dir``, `nodeid: `ci-reports/coverage``, `type: `Dir``, `nodeid: `ci-reports/markdown``, `type: `Dir``
+```
+
+
+
+
+
+
+
+
+
+
+
+
+
+โ
functions (1 entries)
+
+
+
+Collector #1
+
+
+
+nodeid
+
+```
+`functions`
+```
+
+
+
+
+
+outcome
+
+```
+`passed`
+```
+
+
+
+
+
+result
+
+```
+
+```
+
+
+
+
+
+
+
+
+
+
+
+
+
+โ tests (6 entries)
+
+
+
+Collector #1
+
+
+
+nodeid
+
+```
+`tests/test_broken_fct.py`
+```
+
+
+
+
+
+outcome
+
+```
+`failed`
+```
+
+
+
+
+
+result
+
+```
+
+```
+
+
+
+
+
+longrepr
+
+```
`.pixi/envs/default/lib/python3.8/site-packages/_pytest/python.py:493: in importtestmodule
mod = import_path(
.pixi/envs/default/lib/python3.8/site-packages/_pytest/pathlib.py:587: in import_path
@@ -6909,23 +638,53 @@ E File "/workspace/tligui_y/slic/tests/test_broken_fct.py", line 8
E def test_valid_2():
E ^
E SyntaxError: invalid syntax`
+```
+
+
+
+
+
+
+
+
+
+Collector #2
+
+
+
+nodeid
```
-
+`tests/test_collector_error.py`
+```
-โ tests/test_collector_error.py
+outcome
-- **Outcome:** `failed`
-- **Details:**
```
-result:
+`failed`
+```
+
+
+
+
+result
-longrepr:
+```
+
+```
+
+
+
+
+
+longrepr
+
+```
`ImportError while importing test module '/workspace/tligui_y/slic/tests/test_collector_error.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
@@ -6934,54 +693,121 @@ Traceback:
tests/test_collector_error.py:1: in
from no_existing_module.math_utils import *
E ModuleNotFoundError: No module named 'no_existing_module'`
+```
+
+
+
+
+
+
+
+
+
+Collector #3
+
+
+
+nodeid
```
-
+`tests/test_io_utils.py`
+```
-โ
tests/test_io_utils.py
+outcome
+
+```
+`passed`
+```
+
+
+
+
+
+result
-- **Outcome:** `passed`
-- **Details:**
```
-result:
`nodeid: `tests/test_io_utils.py::test_read_file``, `type: `Function``, `lineno: `9``, `nodeid: `tests/test_io_utils.py::test_write_file``, `type: `Function``, `lineno: `16``, `nodeid: `tests/test_io_utils.py::test_cause_io_error``, `type: `Function``, `lineno: `22``, `nodeid: `tests/test_io_utils.py::test_file_not_found``, `type: `Function``, `lineno: `26``, `nodeid: `tests/test_io_utils.py::test_permission_error``, `type: `Function``, `lineno: `30``, `nodeid: `tests/test_io_utils.py::test_mock_open_error``, `type: `Function``, `lineno: `37``, `nodeid: `tests/test_io_utils.py::test_file_handle_closed_error``, `type: `Function``, `lineno: `45``, `nodeid: `tests/test_io_utils.py::test_os_error``, `type: `Function``, `lineno: `51``, `nodeid: `tests/test_io_utils.py::test_write_file_readonly``, `type: `Function``, `lineno: `58``, `nodeid: `tests/test_io_utils.py::test_file_not_found_error``, `type: `Function``, `lineno: `66``
+```
+
+
+
+
+
+
+
+
+
+Collector #4
+
+
+
+nodeid
```
-
+`tests/test_math_utils.py`
+```
-โ
tests/test_math_utils.py
+outcome
+
+```
+`passed`
+```
+
+
+
+
+
+result
-- **Outcome:** `passed`
-- **Details:**
```
-result:
`nodeid: `tests/test_math_utils.py::test_broken``, `type: `Function``, `lineno: `13``, `nodeid: `tests/test_math_utils.py::test_call_missing_function``, `type: `Function``, `lineno: `17``, `nodeid: `tests/test_math_utils.py::test_addition_pass[2-2-4]``, `type: `Function``, `lineno: `22``, `nodeid: `tests/test_math_utils.py::test_addition_pass[1-5-6]``, `type: `Function``, `lineno: `22``, `nodeid: `tests/test_math_utils.py::test_addition_pass[3-4-7]``, `type: `Function``, `lineno: `22``, `nodeid: `tests/test_math_utils.py::test_addition_pass[3-5-8]``, `type: `Function``, `lineno: `22``, `nodeid: `tests/test_math_utils.py::test_addition_pass[3-6-9]``, `type: `Function``, `lineno: `22``, `nodeid: `tests/test_math_utils.py::test_addition_pass_id[a=2,b=2,expected=4]``, `type: `Function``, `lineno: `36``, `nodeid: `tests/test_math_utils.py::test_addition_pass_id[a=1,b=5,expected=6]``, `type: `Function``, `lineno: `36``, `nodeid: `tests/test_math_utils.py::test_addition_pass_id[a=3,b=4,expected=7]``, `type: `Function``, `lineno: `36``, `nodeid: `tests/test_math_utils.py::test_addition_fail``, `type: `Function``, `lineno: `48``, `nodeid: `tests/test_math_utils.py::test_division_zero``, `type: `Function``, `lineno: `52``, `nodeid: `tests/test_math_utils.py::test_multiply_xfail``, `type: `Function``, `lineno: `56``, `nodeid: `tests/test_math_utils.py::test_runtime_error``, `type: `Function``, `lineno: `61``, `nodeid: `tests/test_math_utils.py::test_memory_error``, `type: `Function``, `lineno: `65``, `nodeid: `tests/test_math_utils.py::test_timeout_error``, `type: `Function``, `lineno: `69``, `nodeid: `tests/test_math_utils.py::test_recursion_error``, `type: `Function``, `lineno: `73``, `nodeid: `tests/test_math_utils.py::test_floating_point_error``, `type: `Function``, `lineno: `79``, `nodeid: `tests/test_math_utils.py::test_floating_point_overflow``, `type: `Function``, `lineno: `83``, `nodeid: `tests/test_math_utils.py::test_value_error``, `type: `Function``, `lineno: `87``, `nodeid: `tests/test_math_utils.py::test_wrong_argument_error``, `type: `Function``, `lineno: `91``, `nodeid: `tests/test_math_utils.py::test_unhandled_exception``, `type: `Function``, `lineno: `95``, `nodeid: `tests/test_math_utils.py::test_custom_error``, `type: `Function``, `lineno: `99``, `nodeid: `tests/test_math_utils.py::test_stop_iteration_direct``, `type: `Function``, `lineno: `103``, `nodeid: `tests/test_math_utils.py::test_generator_exit_direct``, `type: `Function``, `lineno: `107``, `nodeid: `tests/test_math_utils.py::test_malformed_code``, `type: `Function``, `lineno: `111``, `nodeid: `tests/test_math_utils.py::test_sys_exit``, `type: `Function``, `lineno: `115``, `nodeid: `tests/test_math_utils.py::test_broken_function``, `type: `Function``, `lineno: `119``, `nodeid: `tests/test_math_utils.py::test_import_error``, `type: `Function``, `lineno: `125``, `nodeid: `tests/test_math_utils.py::test_module_not_found_error``, `type: `Function``, `lineno: `128``
+```
+
+
+
+
+
+
+
+
+
+Collector #5
+
+
+
+nodeid
```
-
+`tests/test_string_utils.py`
+```
-โ
tests/test_string_utils.py
+outcome
+
+```
+`passed`
+```
+
+
+
+
+
+result
-- **Outcome:** `passed`
-- **Details:**
```
-result:
`nodeid: `tests/test_string_utils.py::test_uppercase_normal``, `type: `Function``, `lineno: `7``, `nodeid: `tests/test_string_utils.py::test_uppercase_type_error``, `type: `Function``, `lineno: `11``, `nodeid: `tests/test_string_utils.py::test_reverse_string``, `type: `Function``, `lineno: `15``, `nodeid: `tests/test_string_utils.py::test_warning_emit``, `type: `Function``, `lineno: `19``, `nodeid: `tests/test_string_utils.py::test_unicode_decode_error``, `type: `Function``, `lineno: `23``, `nodeid: `tests/test_string_utils.py::test_unicode_decode_surrogateescape``, `type: `Function``, `lineno: `27``, `nodeid: `tests/test_string_utils.py::test_import_warning``, `type: `Function``, `lineno: `31``, `nodeid: `tests/test_string_utils.py::test_xfail_uppercase_digits``, `type: `Function``, `lineno: `35``, `nodeid: `tests/test_string_utils.py::test_keyboard_interrupt_direct``, `type: `Function``, `lineno: `40``
-
```
-
@@ -6991,19 +817,38 @@ result:
-โ
. (1 tests)
+Collector #6
-โ
.
-
-- **Outcome:** `passed`
-- **Details:**
-```
-result:
-`nodeid: `ci-reports``, `type: `Dir``, `nodeid: `functions``, `type: `Package``, `nodeid: `tests``, `type: `Dir``
+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``
+```
+
+
+
@@ -7012,20 +857,50 @@ result:
-## โ ๏ธ Warnings
+
+
+โ
. (1 entries)
-Warning #1
+Collector #1
+
+
+
+nodeid
```
-message: Test warning
-category: UserWarning
-when: runtest
-filename: /workspace/tligui_y/slic/tests/test_string_utils.py
-lineno: 22
+`.`
```
+
+
+
+
+
+outcome
+
+```
+`passed`
+```
+
+
+
+
+
+result
+
+```
+`nodeid: `ci-reports``, `type: `Dir``, `nodeid: `functions``, `type: `Package``, `nodeid: `tests``, `type: `Dir``
+```
+
+
+
+
+
+
+
+## ๐ Tests
diff --git a/ci-reports/markdown/md-report.log b/ci-reports/markdown/md-report.log
index 2f9cfcd9..1444c530 100644
--- a/ci-reports/markdown/md-report.log
+++ b/ci-reports/markdown/md-report.log
@@ -1,2 +1,12 @@
-โ
Banner and log summary added to markdown report.
-โ
Report generated at ci-reports/markdown/TEST-REPORT.md
+Traceback (most recent call last):
+ File "/workspace/tligui_y/slic/json_to_md.py", line 211, in
+ main()
+ File "/workspace/tligui_y/slic/json_to_md.py", line 205, in main
+ json_to_md_nested(args.input, args.output)
+ File "/workspace/tligui_y/slic/json_to_md.py", line 109, in json_to_md_nested
+ body_func += make_test_block(test, status, emoji, level=3)
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+ File "/workspace/tligui_y/slic/json_to_md.py", line 47, in make_test_block
+ for field, value in test[section].items():
+ ^^^^^^^^^^^^^^^^^^^
+AttributeError: 'str' object has no attribute 'items'
diff --git a/ci-reports/markdown/pytest-report.json b/ci-reports/markdown/pytest-report.json
index 1fd6c801..63590f57 100644
--- a/ci-reports/markdown/pytest-report.json
+++ b/ci-reports/markdown/pytest-report.json
@@ -1 +1 @@
-{"created": 1752588512.1314535, "duration": 0.7160482406616211, "exitcode": 2, "root": "/workspace/tligui_y/slic", "environment": {}, "summary": {"passed": 16, "failed": 31, "xfailed": 2, "total": 49, "collected": 49}, "collectors": [{"nodeid": "", "outcome": "passed", "result": [{"nodeid": ".", "type": "Dir"}]}, {"nodeid": "ci-reports/allure/data", "outcome": "passed", "result": []}, {"nodeid": "ci-reports/allure/export", "outcome": "passed", "result": []}, {"nodeid": "ci-reports/allure/history", "outcome": "passed", "result": []}, {"nodeid": "ci-reports/allure/plugin/behaviors", "outcome": "passed", "result": []}, {"nodeid": "ci-reports/allure/plugin/packages", "outcome": "passed", "result": []}, {"nodeid": "ci-reports/allure/plugin/screen-diff", "outcome": "passed", "result": []}, {"nodeid": "ci-reports/allure/plugin", "outcome": "passed", "result": [{"nodeid": "ci-reports/allure/plugin/behaviors", "type": "Dir"}, {"nodeid": "ci-reports/allure/plugin/packages", "type": "Dir"}, {"nodeid": "ci-reports/allure/plugin/screen-diff", "type": "Dir"}]}, {"nodeid": "ci-reports/allure/widgets", "outcome": "passed", "result": []}, {"nodeid": "ci-reports/allure", "outcome": "passed", "result": [{"nodeid": "ci-reports/allure/data", "type": "Dir"}, {"nodeid": "ci-reports/allure/export", "type": "Dir"}, {"nodeid": "ci-reports/allure/history", "type": "Dir"}, {"nodeid": "ci-reports/allure/plugin", "type": "Dir"}, {"nodeid": "ci-reports/allure/widgets", "type": "Dir"}]}, {"nodeid": "ci-reports/coverage", "outcome": "passed", "result": []}, {"nodeid": "ci-reports/markdown", "outcome": "passed", "result": []}, {"nodeid": "ci-reports", "outcome": "passed", "result": [{"nodeid": "ci-reports/allure", "type": "Dir"}, {"nodeid": "ci-reports/coverage", "type": "Dir"}, {"nodeid": "ci-reports/markdown", "type": "Dir"}]}, {"nodeid": "functions", "outcome": "passed", "result": []}, {"nodeid": "tests/test_broken_fct.py", "outcome": "failed", "result": [], "longrepr": ".pixi/envs/default/lib/python3.8/site-packages/_pytest/python.py:493: in importtestmodule\n mod = import_path(\n.pixi/envs/default/lib/python3.8/site-packages/_pytest/pathlib.py:587: in import_path\n importlib.import_module(module_name)\n.pixi/envs/default/lib/python3.8/importlib/__init__.py:127: in import_module\n return _bootstrap._gcd_import(name[level:], package, level)\n:1014: in _gcd_import\n ???\n:991: in _find_and_load\n ???\n:975: in _find_and_load_unlocked\n ???\n:671: in _load_unlocked\n ???\n.pixi/envs/default/lib/python3.8/site-packages/_pytest/assertion/rewrite.py:175: in exec_module\n source_stat, co = _rewrite_test(fn, self.config)\n.pixi/envs/default/lib/python3.8/site-packages/_pytest/assertion/rewrite.py:355: in _rewrite_test\n tree = ast.parse(source, filename=strfn)\n.pixi/envs/default/lib/python3.8/ast.py:47: in parse\n return compile(source, filename, mode, flags,\nE File \"/workspace/tligui_y/slic/tests/test_broken_fct.py\", line 8\nE def test_valid_2():\nE ^\nE SyntaxError: invalid syntax"}, {"nodeid": "tests/test_collector_error.py", "outcome": "failed", "result": [], "longrepr": "ImportError while importing test module '/workspace/tligui_y/slic/tests/test_collector_error.py'.\nHint: make sure your test modules/packages have valid Python names.\nTraceback:\n.pixi/envs/default/lib/python3.8/importlib/__init__.py:127: in import_module\n return _bootstrap._gcd_import(name[level:], package, level)\ntests/test_collector_error.py:1: in \n from no_existing_module.math_utils import *\nE ModuleNotFoundError: No module named 'no_existing_module'"}, {"nodeid": "tests/test_io_utils.py", "outcome": "passed", "result": [{"nodeid": "tests/test_io_utils.py::test_read_file", "type": "Function", "lineno": 9}, {"nodeid": "tests/test_io_utils.py::test_write_file", "type": "Function", "lineno": 16}, {"nodeid": "tests/test_io_utils.py::test_cause_io_error", "type": "Function", "lineno": 22}, {"nodeid": "tests/test_io_utils.py::test_file_not_found", "type": "Function", "lineno": 26}, {"nodeid": "tests/test_io_utils.py::test_permission_error", "type": "Function", "lineno": 30}, {"nodeid": "tests/test_io_utils.py::test_mock_open_error", "type": "Function", "lineno": 37}, {"nodeid": "tests/test_io_utils.py::test_file_handle_closed_error", "type": "Function", "lineno": 45}, {"nodeid": "tests/test_io_utils.py::test_os_error", "type": "Function", "lineno": 51}, {"nodeid": "tests/test_io_utils.py::test_write_file_readonly", "type": "Function", "lineno": 58}, {"nodeid": "tests/test_io_utils.py::test_file_not_found_error", "type": "Function", "lineno": 66}]}, {"nodeid": "tests/test_math_utils.py", "outcome": "passed", "result": [{"nodeid": "tests/test_math_utils.py::test_broken", "type": "Function", "lineno": 13}, {"nodeid": "tests/test_math_utils.py::test_call_missing_function", "type": "Function", "lineno": 17}, {"nodeid": "tests/test_math_utils.py::test_addition_pass[2-2-4]", "type": "Function", "lineno": 22}, {"nodeid": "tests/test_math_utils.py::test_addition_pass[1-5-6]", "type": "Function", "lineno": 22}, {"nodeid": "tests/test_math_utils.py::test_addition_pass[3-4-7]", "type": "Function", "lineno": 22}, {"nodeid": "tests/test_math_utils.py::test_addition_pass[3-5-8]", "type": "Function", "lineno": 22}, {"nodeid": "tests/test_math_utils.py::test_addition_pass[3-6-9]", "type": "Function", "lineno": 22}, {"nodeid": "tests/test_math_utils.py::test_addition_pass_id[a=2,b=2,expected=4]", "type": "Function", "lineno": 36}, {"nodeid": "tests/test_math_utils.py::test_addition_pass_id[a=1,b=5,expected=6]", "type": "Function", "lineno": 36}, {"nodeid": "tests/test_math_utils.py::test_addition_pass_id[a=3,b=4,expected=7]", "type": "Function", "lineno": 36}, {"nodeid": "tests/test_math_utils.py::test_addition_fail", "type": "Function", "lineno": 48}, {"nodeid": "tests/test_math_utils.py::test_division_zero", "type": "Function", "lineno": 52}, {"nodeid": "tests/test_math_utils.py::test_multiply_xfail", "type": "Function", "lineno": 56}, {"nodeid": "tests/test_math_utils.py::test_runtime_error", "type": "Function", "lineno": 61}, {"nodeid": "tests/test_math_utils.py::test_memory_error", "type": "Function", "lineno": 65}, {"nodeid": "tests/test_math_utils.py::test_timeout_error", "type": "Function", "lineno": 69}, {"nodeid": "tests/test_math_utils.py::test_recursion_error", "type": "Function", "lineno": 73}, {"nodeid": "tests/test_math_utils.py::test_floating_point_error", "type": "Function", "lineno": 79}, {"nodeid": "tests/test_math_utils.py::test_floating_point_overflow", "type": "Function", "lineno": 83}, {"nodeid": "tests/test_math_utils.py::test_value_error", "type": "Function", "lineno": 87}, {"nodeid": "tests/test_math_utils.py::test_wrong_argument_error", "type": "Function", "lineno": 91}, {"nodeid": "tests/test_math_utils.py::test_unhandled_exception", "type": "Function", "lineno": 95}, {"nodeid": "tests/test_math_utils.py::test_custom_error", "type": "Function", "lineno": 99}, {"nodeid": "tests/test_math_utils.py::test_stop_iteration_direct", "type": "Function", "lineno": 103}, {"nodeid": "tests/test_math_utils.py::test_generator_exit_direct", "type": "Function", "lineno": 107}, {"nodeid": "tests/test_math_utils.py::test_malformed_code", "type": "Function", "lineno": 111}, {"nodeid": "tests/test_math_utils.py::test_sys_exit", "type": "Function", "lineno": 115}, {"nodeid": "tests/test_math_utils.py::test_broken_function", "type": "Function", "lineno": 119}, {"nodeid": "tests/test_math_utils.py::test_import_error", "type": "Function", "lineno": 125}, {"nodeid": "tests/test_math_utils.py::test_module_not_found_error", "type": "Function", "lineno": 128}]}, {"nodeid": "tests/test_string_utils.py", "outcome": "passed", "result": [{"nodeid": "tests/test_string_utils.py::test_uppercase_normal", "type": "Function", "lineno": 7}, {"nodeid": "tests/test_string_utils.py::test_uppercase_type_error", "type": "Function", "lineno": 11}, {"nodeid": "tests/test_string_utils.py::test_reverse_string", "type": "Function", "lineno": 15}, {"nodeid": "tests/test_string_utils.py::test_warning_emit", "type": "Function", "lineno": 19}, {"nodeid": "tests/test_string_utils.py::test_unicode_decode_error", "type": "Function", "lineno": 23}, {"nodeid": "tests/test_string_utils.py::test_unicode_decode_surrogateescape", "type": "Function", "lineno": 27}, {"nodeid": "tests/test_string_utils.py::test_import_warning", "type": "Function", "lineno": 31}, {"nodeid": "tests/test_string_utils.py::test_xfail_uppercase_digits", "type": "Function", "lineno": 35}, {"nodeid": "tests/test_string_utils.py::test_keyboard_interrupt_direct", "type": "Function", "lineno": 40}]}, {"nodeid": "tests", "outcome": "passed", "result": [{"nodeid": "tests/test_broken_fct.py", "type": "Module"}, {"nodeid": "tests/test_collector_error.py", "type": "Module"}, {"nodeid": "tests/test_io_utils.py", "type": "Module"}, {"nodeid": "tests/test_math_utils.py", "type": "Module"}, {"nodeid": "tests/test_string_utils.py", "type": "Module"}]}, {"nodeid": ".", "outcome": "passed", "result": [{"nodeid": "ci-reports", "type": "Dir"}, {"nodeid": "functions", "type": "Package"}, {"nodeid": "tests", "type": "Dir"}]}], "tests": [{"nodeid": "tests/test_io_utils.py::test_read_file", "lineno": 9, "outcome": "passed", "keywords": ["test_read_file", "test_io_utils.py", "tests", "slic", ""], "setup": {"duration": 0.0033172060502693057, "outcome": "passed"}, "call": {"duration": 0.0004157009534537792, "outcome": "passed"}, "teardown": {"duration": 0.00025737204123288393, "outcome": "passed"}}, {"nodeid": "tests/test_io_utils.py::test_write_file", "lineno": 16, "outcome": "passed", "keywords": ["test_write_file", "test_io_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00045859592501074076, "outcome": "passed"}, "call": {"duration": 0.00030468800105154514, "outcome": "passed"}, "teardown": {"duration": 0.00014054705388844013, "outcome": "passed"}}, {"nodeid": "tests/test_io_utils.py::test_cause_io_error", "lineno": 22, "outcome": "failed", "keywords": ["test_cause_io_error", "test_io_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00011585000902414322, "outcome": "passed"}, "call": {"duration": 0.0001624280121177435, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/functions/io_utils.py", "lineno": 10, "message": "OSError: Forced IO Error for testing"}, "traceback": [{"path": "tests/test_io_utils.py", "lineno": 25, "message": ""}, {"path": "functions/io_utils.py", "lineno": 10, "message": "OSError"}], "longrepr": "def test_cause_io_error():\n # Raises manual IOError to simulate IO failure\n> cause_io_error()\n\ntests/test_io_utils.py:25: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\n def cause_io_error():\n> raise IOError(\"Forced IO Error for testing\")\nE OSError: Forced IO Error for testing\n\nfunctions/io_utils.py:10: OSError"}, "teardown": {"duration": 0.00015452702064067125, "outcome": "passed"}}, {"nodeid": "tests/test_io_utils.py::test_file_not_found", "lineno": 26, "outcome": "failed", "keywords": ["test_file_not_found", "test_io_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00011873093899339437, "outcome": "passed"}, "call": {"duration": 0.00018346600700169802, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/functions/io_utils.py", "lineno": 2, "message": "FileNotFoundError: [Errno 2] No such file or directory: 'nonexistent.file'"}, "traceback": [{"path": "tests/test_io_utils.py", "lineno": 29, "message": ""}, {"path": "functions/io_utils.py", "lineno": 2, "message": "FileNotFoundError"}], "longrepr": "def test_file_not_found():\n # Reading non-existing file raises FileNotFoundError\n> read_file(\"nonexistent.file\")\n\ntests/test_io_utils.py:29: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\npath = 'nonexistent.file'\n\n def read_file(path):\n> with open(path, \"r\", encoding=\"utf-8\") as f:\nE FileNotFoundError: [Errno 2] No such file or directory: 'nonexistent.file'\n\nfunctions/io_utils.py:2: FileNotFoundError"}, "teardown": {"duration": 0.00013900292105972767, "outcome": "passed"}}, {"nodeid": "tests/test_io_utils.py::test_permission_error", "lineno": 30, "outcome": "failed", "keywords": ["test_permission_error", "test_io_utils.py", "tests", "slic", ""], "setup": {"duration": 0.0002115229144692421, "outcome": "passed"}, "call": {"duration": 0.0001825540093705058, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_io_utils.py", "lineno": 34, "message": "PermissionError: Permission denied"}, "traceback": [{"path": "tests/test_io_utils.py", "lineno": 36, "message": ""}, {"path": "functions/io_utils.py", "lineno": 2, "message": "in read_file"}, {"path": "tests/test_io_utils.py", "lineno": 34, "message": "PermissionError"}], "longrepr": "monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fca802a9f10>\n\n def test_permission_error(monkeypatch):\n # Patch open to raise PermissionError simulating access denial\n def raise_perm_error(*args, **kwargs):\n raise PermissionError(\"Permission denied\")\n monkeypatch.setattr(\"builtins.open\", raise_perm_error)\n> read_file(\"anyfile.txt\")\n\ntests/test_io_utils.py:36: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \nfunctions/io_utils.py:2: in read_file\n with open(path, \"r\", encoding=\"utf-8\") as f:\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nargs = ('anyfile.txt', 'r'), kwargs = {'encoding': 'utf-8'}\n\n def raise_perm_error(*args, **kwargs):\n> raise PermissionError(\"Permission denied\")\nE PermissionError: Permission denied\n\ntests/test_io_utils.py:34: PermissionError"}, "teardown": {"duration": 0.00016726902686059475, "outcome": "passed"}}, {"nodeid": "tests/test_io_utils.py::test_mock_open_error", "lineno": 37, "outcome": "failed", "keywords": ["test_mock_open_error", "test_io_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00020821299403905869, "outcome": "passed"}, "call": {"duration": 0.0032537200022488832, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/.pixi/envs/default/lib/python3.8/unittest/mock.py", "lineno": 1140, "message": "OSError: Mocked IOError"}, "traceback": [{"path": "tests/test_io_utils.py", "lineno": 43, "message": ""}, {"path": ".pixi/envs/default/lib/python3.8/unittest/mock.py", "lineno": 1081, "message": "in __call__"}, {"path": ".pixi/envs/default/lib/python3.8/unittest/mock.py", "lineno": 1085, "message": "in _mock_call"}, {"path": ".pixi/envs/default/lib/python3.8/unittest/mock.py", "lineno": 1140, "message": "OSError"}], "longrepr": "monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fca80336160>\n\n def test_mock_open_error(monkeypatch):\n # Mock open() to raise IOError simulating read error\n mocked_open = mock.mock_open()\n mocked_open.side_effect = IOError(\"Mocked IOError\")\n monkeypatch.setattr(\"builtins.open\", mocked_open)\n> with open(\"file.txt\", \"r\") as f:\n\ntests/test_io_utils.py:43: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n.pixi/envs/default/lib/python3.8/unittest/mock.py:1081: in __call__\n return self._mock_call(*args, **kwargs)\n.pixi/envs/default/lib/python3.8/unittest/mock.py:1085: in _mock_call\n return self._execute_mock_call(*args, **kwargs)\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \nargs = ('file.txt', 'r'), kwargs = {}, effect = OSError('Mocked IOError')\n\n def _execute_mock_call(self, /, *args, **kwargs):\n # separate from _increment_mock_call so that awaited functions are\n # executed separately from their call, also AsyncMock overrides this method\n \n effect = self.side_effect\n if effect is not None:\n if _is_exception(effect):\n> raise effect\nE OSError: Mocked IOError\n\n.pixi/envs/default/lib/python3.8/unittest/mock.py:1140: OSError"}, "teardown": {"duration": 0.0003365569282323122, "outcome": "passed"}}, {"nodeid": "tests/test_io_utils.py::test_file_handle_closed_error", "lineno": 45, "outcome": "failed", "keywords": ["test_file_handle_closed_error", "test_io_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00015492108650505543, "outcome": "passed"}, "call": {"duration": 0.0002002849942073226, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_io_utils.py", "lineno": 50, "message": "ValueError: I/O operation on closed file"}, "traceback": [{"path": "tests/test_io_utils.py", "lineno": 50, "message": "ValueError"}], "longrepr": "def test_file_handle_closed_error():\n # Accessing closed file raises ValueError\n f = io.StringIO(\"content\")\n f.close()\n> f.read()\nE ValueError: I/O operation on closed file\n\ntests/test_io_utils.py:50: ValueError"}, "teardown": {"duration": 0.00018326402641832829, "outcome": "passed"}}, {"nodeid": "tests/test_io_utils.py::test_os_error", "lineno": 51, "outcome": "failed", "keywords": ["test_os_error", "test_io_utils.py", "tests", "slic", ""], "setup": {"duration": 0.0002485569566488266, "outcome": "passed"}, "call": {"duration": 0.00019227794837206602, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_io_utils.py", "lineno": 55, "message": "OSError: Simulated OSError"}, "traceback": [{"path": "tests/test_io_utils.py", "lineno": 57, "message": ""}, {"path": "tests/test_io_utils.py", "lineno": 55, "message": "OSError"}], "longrepr": "monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fca802a9f10>\n\n def test_os_error(monkeypatch):\n # Patch os.remove to raise OSError simulating filesystem error\n def raise_os_error(path):\n raise OSError(\"Simulated OSError\")\n monkeypatch.setattr(\"os.remove\", raise_os_error)\n> os.remove(\"file.txt\")\n\ntests/test_io_utils.py:57: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\npath = 'file.txt'\n\n def raise_os_error(path):\n> raise OSError(\"Simulated OSError\")\nE OSError: Simulated OSError\n\ntests/test_io_utils.py:55: OSError"}, "teardown": {"duration": 0.00018819898832589388, "outcome": "passed"}}, {"nodeid": "tests/test_io_utils.py::test_write_file_readonly", "lineno": 58, "outcome": "passed", "keywords": ["test_write_file_readonly", "test_io_utils.py", "tests", "slic", ""], "setup": {"duration": 0.0006988380337134004, "outcome": "passed"}, "call": {"duration": 0.0011005420237779617, "outcome": "passed"}, "teardown": {"duration": 0.00015400699339807034, "outcome": "passed"}}, {"nodeid": "tests/test_io_utils.py::test_file_not_found_error", "lineno": 66, "outcome": "failed", "keywords": ["test_file_not_found_error", "test_io_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00011646398343145847, "outcome": "passed"}, "call": {"duration": 0.0001691100187599659, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_io_utils.py", "lineno": 69, "message": "FileNotFoundError: [Errno 2] No such file or directory: 'no_such_file.txt'"}, "traceback": [{"path": "tests/test_io_utils.py", "lineno": 69, "message": "FileNotFoundError"}], "longrepr": "def test_file_not_found_error():\n # Raises FileNotFoundError when opening a non-existent file\n> open(\"no_such_file.txt\", \"r\")\nE FileNotFoundError: [Errno 2] No such file or directory: 'no_such_file.txt'\n\ntests/test_io_utils.py:69: FileNotFoundError"}, "teardown": {"duration": 0.00014163204468786716, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_broken", "lineno": 13, "outcome": "failed", "keywords": ["test_broken", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.0001335109118372202, "outcome": "passed"}, "call": {"duration": 0.00016223802231252193, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 16, "message": "NameError: name 'want_the_test_to_fail' is not defined"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 16, "message": "NameError"}], "longrepr": "def test_broken():\n # simulating a broken or faulty test implementation that will cause the test to error\n> want_the_test_to_fail\nE NameError: name 'want_the_test_to_fail' is not defined\n\ntests/test_math_utils.py:16: NameError"}, "teardown": {"duration": 0.00014082901179790497, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_call_missing_function", "lineno": 17, "outcome": "failed", "keywords": ["test_call_missing_function", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00012609397526830435, "outcome": "passed"}, "call": {"duration": 0.00016478798352181911, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 20, "message": "AttributeError: module 'functions.math_utils' has no attribute 'non_existent_function'"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 20, "message": "AttributeError"}], "longrepr": "def test_call_missing_function():\n # Accessing a missing function attribute raises AttributeError\n> getattr(math_utils, \"non_existent_function\")()\nE AttributeError: module 'functions.math_utils' has no attribute 'non_existent_function'\n\ntests/test_math_utils.py:20: AttributeError"}, "teardown": {"duration": 0.00013732793740928173, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_addition_pass[2-2-4]", "lineno": 22, "outcome": "passed", "keywords": ["test_addition_pass[2-2-4]", "parametrize", "pytestmark", "2-2-4", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.0003210400464013219, "outcome": "passed"}, "call": {"duration": 0.00015713798347860575, "outcome": "passed"}, "teardown": {"duration": 0.00014523696154356003, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_addition_pass[1-5-6]", "lineno": 22, "outcome": "passed", "keywords": ["test_addition_pass[1-5-6]", "parametrize", "pytestmark", "1-5-6", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00026101304683834314, "outcome": "passed"}, "call": {"duration": 0.00013629300519824028, "outcome": "passed"}, "teardown": {"duration": 0.00013860990293323994, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_addition_pass[3-4-7]", "lineno": 22, "outcome": "passed", "keywords": ["test_addition_pass[3-4-7]", "parametrize", "pytestmark", "3-4-7", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.0002625610213726759, "outcome": "passed"}, "call": {"duration": 0.00012864591553807259, "outcome": "passed"}, "teardown": {"duration": 0.0001323759788647294, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_addition_pass[3-5-8]", "lineno": 22, "outcome": "passed", "keywords": ["test_addition_pass[3-5-8]", "parametrize", "pytestmark", "3-5-8", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.0002624019980430603, "outcome": "passed"}, "call": {"duration": 0.00013136595953255892, "outcome": "passed"}, "teardown": {"duration": 0.0001352030085399747, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_addition_pass[3-6-9]", "lineno": 22, "outcome": "passed", "keywords": ["test_addition_pass[3-6-9]", "parametrize", "pytestmark", "3-6-9", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00024789199233055115, "outcome": "passed"}, "call": {"duration": 0.00013904401566833258, "outcome": "passed"}, "teardown": {"duration": 0.0001403969945386052, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_addition_pass_id[a=2,b=2,expected=4]", "lineno": 36, "outcome": "passed", "keywords": ["test_addition_pass_id[a=2,b=2,expected=4]", "parametrize", "pytestmark", "a=2,b=2,expected=4", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.0002581619191914797, "outcome": "passed"}, "call": {"duration": 0.00012848398182541132, "outcome": "passed"}, "teardown": {"duration": 0.00013925100211054087, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_addition_pass_id[a=1,b=5,expected=6]", "lineno": 36, "outcome": "passed", "keywords": ["test_addition_pass_id[a=1,b=5,expected=6]", "parametrize", "pytestmark", "a=1,b=5,expected=6", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00025459693279117346, "outcome": "passed"}, "call": {"duration": 0.00013373792171478271, "outcome": "passed"}, "teardown": {"duration": 0.00014246301725506783, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_addition_pass_id[a=3,b=4,expected=7]", "lineno": 36, "outcome": "passed", "keywords": ["test_addition_pass_id[a=3,b=4,expected=7]", "parametrize", "pytestmark", "a=3,b=4,expected=7", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00024441699497401714, "outcome": "passed"}, "call": {"duration": 0.00012544903438538313, "outcome": "passed"}, "teardown": {"duration": 0.00013036199379712343, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_addition_fail", "lineno": 48, "outcome": "failed", "keywords": ["test_addition_fail", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00010830000974237919, "outcome": "passed"}, "call": {"duration": 0.00046193203888833523, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 51, "message": "assert 4 == 5\n + where 4 = addition(2, 2)"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 51, "message": "AssertionError"}], "longrepr": "def test_addition_fail():\n # Assertion failure: expected incorrect result\n> assert addition(2, 2) == 5\nE assert 4 == 5\nE + where 4 = addition(2, 2)\n\ntests/test_math_utils.py:51: AssertionError"}, "teardown": {"duration": 0.00013660406693816185, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_division_zero", "lineno": 52, "outcome": "failed", "keywords": ["test_division_zero", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00012057996354997158, "outcome": "passed"}, "call": {"duration": 0.00015724997501820326, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/functions/math_utils.py", "lineno": 5, "message": "ZeroDivisionError: division by zero"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 55, "message": ""}, {"path": "functions/math_utils.py", "lineno": 5, "message": "ZeroDivisionError"}], "longrepr": "def test_division_zero():\n # Will raise ZeroDivisionError if not handled in division\n> division(1, 0)\n\ntests/test_math_utils.py:55: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\na = 1, b = 0\n\n def division(a, b):\n> return a / b\nE ZeroDivisionError: division by zero\n\nfunctions/math_utils.py:5: ZeroDivisionError"}, "teardown": {"duration": 0.00014126196037977934, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_multiply_xfail", "lineno": 56, "outcome": "xfailed", "keywords": ["test_multiply_xfail", "xfail", "pytestmark", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00014679704327136278, "outcome": "passed"}, "call": {"duration": 0.000266409944742918, "outcome": "skipped", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 60, "message": "assert 4 == 5\n + where 4 = multiply(2, 2)"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 60, "message": "AssertionError"}], "longrepr": "@pytest.mark.xfail(reason=\"Expected failure\")\n def test_multiply_xfail():\n # Expected fail test (xfail): incorrect expected multiply result\n> assert multiply(2, 2) == 5\nE assert 4 == 5\nE + where 4 = multiply(2, 2)\n\ntests/test_math_utils.py:60: AssertionError"}, "teardown": {"duration": 0.0001401999033987522, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_runtime_error", "lineno": 61, "outcome": "failed", "keywords": ["test_runtime_error", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00011560996063053608, "outcome": "passed"}, "call": {"duration": 0.0001555519411340356, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 64, "message": "RuntimeError: Forced runtime error"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 64, "message": "RuntimeError"}], "longrepr": "def test_runtime_error():\n # Test raises an uncaught RuntimeError\n> raise RuntimeError(\"Forced runtime error\")\nE RuntimeError: Forced runtime error\n\ntests/test_math_utils.py:64: RuntimeError"}, "teardown": {"duration": 0.000137986964546144, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_memory_error", "lineno": 65, "outcome": "failed", "keywords": ["test_memory_error", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00011925806757062674, "outcome": "passed"}, "call": {"duration": 0.00014711299445480108, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 68, "message": "MemoryError: Simulated memory error"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 68, "message": "MemoryError"}], "longrepr": "def test_memory_error():\n # Manually raise MemoryError to simulate out-of-memory condition\n> raise MemoryError(\"Simulated memory error\")\nE MemoryError: Simulated memory error\n\ntests/test_math_utils.py:68: MemoryError"}, "teardown": {"duration": 0.00014676700811833143, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_timeout_error", "lineno": 69, "outcome": "failed", "keywords": ["test_timeout_error", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00011719600297510624, "outcome": "passed"}, "call": {"duration": 0.00015604798682034016, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 72, "message": "TimeoutError: Simulated timeout error"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 72, "message": "TimeoutError"}], "longrepr": "def test_timeout_error():\n # Manually raise TimeoutError simulating timeout conditions\n> raise TimeoutError(\"Simulated timeout error\")\nE TimeoutError: Simulated timeout error\n\ntests/test_math_utils.py:72: TimeoutError"}, "teardown": {"duration": 0.0001434370642527938, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_recursion_error", "lineno": 73, "outcome": "failed", "keywords": ["test_recursion_error", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00012157601304352283, "outcome": "passed"}, "call": {"duration": 0.0007640880066901445, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 77, "message": "RecursionError: maximum recursion depth exceeded"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 78, "message": ""}, {"path": "tests/test_math_utils.py", "lineno": 77, "message": "in recursive"}, {"path": "tests/test_math_utils.py", "lineno": 77, "message": "in recursive"}], "longrepr": "def test_recursion_error():\n # Infinite recursion triggers RecursionError\n def recursive():\n return recursive()\n> recursive()\n\ntests/test_math_utils.py:78: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_math_utils.py:77: in recursive\n return recursive()\ntests/test_math_utils.py:77: in recursive\n return recursive()\nE RecursionError: maximum recursion depth exceeded\n!!! Recursion detected (same locals & position)"}, "teardown": {"duration": 0.00015297392383217812, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_floating_point_error", "lineno": 79, "outcome": "failed", "keywords": ["test_floating_point_error", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00012920994777232409, "outcome": "passed"}, "call": {"duration": 0.00015900295693427324, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 82, "message": "FloatingPointError: Simulated floating point error"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 82, "message": "FloatingPointError"}], "longrepr": "def test_floating_point_error():\n # Manually raise FloatingPointError\n> raise FloatingPointError(\"Simulated floating point error\")\nE FloatingPointError: Simulated floating point error\n\ntests/test_math_utils.py:82: FloatingPointError"}, "teardown": {"duration": 0.00014309899415820837, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_floating_point_overflow", "lineno": 83, "outcome": "failed", "keywords": ["test_floating_point_overflow", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00012554600834846497, "outcome": "passed"}, "call": {"duration": 0.00017693405970931053, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 86, "message": "OverflowError: math range error"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 86, "message": "OverflowError"}], "longrepr": "def test_floating_point_overflow():\n # Exponential overflow triggers OverflowError\n> math.exp(1000)\nE OverflowError: math range error\n\ntests/test_math_utils.py:86: OverflowError"}, "teardown": {"duration": 0.00013890897389501333, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_value_error", "lineno": 87, "outcome": "failed", "keywords": ["test_value_error", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00013219495303928852, "outcome": "passed"}, "call": {"duration": 0.0001548790605738759, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 90, "message": "ValueError: invalid literal for int() with base 10: 'invalid'"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 90, "message": "ValueError"}], "longrepr": "def test_value_error():\n # ValueError on invalid integer conversion\n> int(\"invalid\")\nE ValueError: invalid literal for int() with base 10: 'invalid'\n\ntests/test_math_utils.py:90: ValueError"}, "teardown": {"duration": 0.00013572792522609234, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_wrong_argument_error", "lineno": 91, "outcome": "failed", "keywords": ["test_wrong_argument_error", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.0001179729588329792, "outcome": "passed"}, "call": {"duration": 0.00015486590564250946, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 94, "message": "TypeError: 'int' object is not iterable"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 94, "message": "TypeError"}], "longrepr": "def test_wrong_argument_error():\n # TypeError when passing wrong argument type to sum\n> sum(5)\nE TypeError: 'int' object is not iterable\n\ntests/test_math_utils.py:94: TypeError"}, "teardown": {"duration": 0.0001332459505647421, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_unhandled_exception", "lineno": 95, "outcome": "failed", "keywords": ["test_unhandled_exception", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.0001329620135948062, "outcome": "passed"}, "call": {"duration": 0.0001655810046941042, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 98, "message": "Exception: Generic unhandled exception"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 98, "message": "Exception"}], "longrepr": "def test_unhandled_exception():\n # Raises generic unhandled Exception\n> raise Exception(\"Generic unhandled exception\")\nE Exception: Generic unhandled exception\n\ntests/test_math_utils.py:98: Exception"}, "teardown": {"duration": 0.00013618299271911383, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_custom_error", "lineno": 99, "outcome": "failed", "keywords": ["test_custom_error", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00011864700354635715, "outcome": "passed"}, "call": {"duration": 0.00015874207019805908, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 102, "message": "test_math_utils.CustomError: Custom error simulation"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 102, "message": "CustomError"}], "longrepr": "def test_custom_error():\n # Raises user-defined CustomError exception\n> raise CustomError(\"Custom error simulation\")\nE test_math_utils.CustomError: Custom error simulation\n\ntests/test_math_utils.py:102: CustomError"}, "teardown": {"duration": 0.00014582101721316576, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_stop_iteration_direct", "lineno": 103, "outcome": "failed", "keywords": ["test_stop_iteration_direct", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00012644799426198006, "outcome": "passed"}, "call": {"duration": 0.00015734496992081404, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/.pixi/envs/default/lib/python3.8/site-packages/_pytest/capture.py", "lineno": 880, "message": "RuntimeError: generator raised StopIteration"}, "traceback": [{"path": ".pixi/envs/default/lib/python3.8/site-packages/_pytest/runner.py", "lineno": 341, "message": ""}, {"path": ".pixi/envs/default/lib/python3.8/site-packages/_pytest/runner.py", "lineno": 242, "message": "in "}, {"path": ".pixi/envs/default/lib/python3.8/site-packages/pluggy/_hooks.py", "lineno": 513, "message": "in __call__"}, {"path": ".pixi/envs/default/lib/python3.8/site-packages/pluggy/_manager.py", "lineno": 120, "message": "in _hookexec"}, {"path": ".pixi/envs/default/lib/python3.8/site-packages/_pytest/threadexception.py", "lineno": 92, "message": "in pytest_runtest_call"}, {"path": ".pixi/envs/default/lib/python3.8/site-packages/_pytest/threadexception.py", "lineno": 68, "message": "in thread_exception_runtest_hook"}, {"path": ".pixi/envs/default/lib/python3.8/site-packages/_pytest/unraisableexception.py", "lineno": 95, "message": "in pytest_runtest_call"}, {"path": ".pixi/envs/default/lib/python3.8/site-packages/_pytest/unraisableexception.py", "lineno": 70, "message": "in unraisable_exception_runtest_hook"}, {"path": ".pixi/envs/default/lib/python3.8/site-packages/_pytest/logging.py", "lineno": 846, "message": "in pytest_runtest_call"}, {"path": ".pixi/envs/default/lib/python3.8/site-packages/_pytest/logging.py", "lineno": 829, "message": "in _runtest_for"}, {"path": ".pixi/envs/default/lib/python3.8/site-packages/_pytest/capture.py", "lineno": 880, "message": "RuntimeError"}], "longrepr": "def test_stop_iteration_direct():\n # Directly raise StopIteration exception\n> raise StopIteration()\nE StopIteration\n\ntests/test_math_utils.py:106: StopIteration\n\nThe above exception was the direct cause of the following exception:\n\ncls = \nfunc = . at 0x7fca807fe9d0>\nwhen = 'call'\nreraise = (, )\n\n @classmethod\n def from_call(\n cls,\n func: Callable[[], TResult],\n when: Literal[\"collect\", \"setup\", \"call\", \"teardown\"],\n reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None,\n ) -> CallInfo[TResult]:\n \"\"\"Call func, wrapping the result in a CallInfo.\n \n :param func:\n The function to call. Called without arguments.\n :type func: Callable[[], _pytest.runner.TResult]\n :param when:\n The phase in which the function is called.\n :param reraise:\n Exception or exceptions that shall propagate if raised by the\n function, instead of being wrapped in the CallInfo.\n \"\"\"\n excinfo = None\n start = timing.time()\n precise_start = timing.perf_counter()\n try:\n> result: TResult | None = func()\n\n.pixi/envs/default/lib/python3.8/site-packages/_pytest/runner.py:341: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n.pixi/envs/default/lib/python3.8/site-packages/_pytest/runner.py:242: in \n lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise\n.pixi/envs/default/lib/python3.8/site-packages/pluggy/_hooks.py:513: in __call__\n return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)\n.pixi/envs/default/lib/python3.8/site-packages/pluggy/_manager.py:120: in _hookexec\n return self._inner_hookexec(hook_name, methods, kwargs, firstresult)\n.pixi/envs/default/lib/python3.8/site-packages/_pytest/threadexception.py:92: in pytest_runtest_call\n yield from thread_exception_runtest_hook()\n.pixi/envs/default/lib/python3.8/site-packages/_pytest/threadexception.py:68: in thread_exception_runtest_hook\n yield\n.pixi/envs/default/lib/python3.8/site-packages/_pytest/unraisableexception.py:95: in pytest_runtest_call\n yield from unraisable_exception_runtest_hook()\n.pixi/envs/default/lib/python3.8/site-packages/_pytest/unraisableexception.py:70: in unraisable_exception_runtest_hook\n yield\n.pixi/envs/default/lib/python3.8/site-packages/_pytest/logging.py:846: in pytest_runtest_call\n yield from self._runtest_for(item, \"call\")\n.pixi/envs/default/lib/python3.8/site-packages/_pytest/logging.py:829: in _runtest_for\n yield\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = _capture_fixture=None>\nitem = \n\n @hookimpl(wrapper=True)\n def pytest_runtest_call(self, item: Item) -> Generator[None]:\n with self.item_capture(\"call\", item):\n> return (yield)\nE RuntimeError: generator raised StopIteration\n\n.pixi/envs/default/lib/python3.8/site-packages/_pytest/capture.py:880: RuntimeError"}, "teardown": {"duration": 0.0002563969464972615, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_generator_exit_direct", "lineno": 107, "outcome": "failed", "keywords": ["test_generator_exit_direct", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00014788098633289337, "outcome": "passed"}, "call": {"duration": 0.0001789960078895092, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 110, "message": "GeneratorExit"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 110, "message": "GeneratorExit"}], "longrepr": "def test_generator_exit_direct():\n # Directly raise GeneratorExit exception\n> raise GeneratorExit()\nE GeneratorExit\n\ntests/test_math_utils.py:110: GeneratorExit"}, "teardown": {"duration": 0.00016625795979052782, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_malformed_code", "lineno": 111, "outcome": "failed", "keywords": ["test_malformed_code", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00012155401054769754, "outcome": "passed"}, "call": {"duration": 0.00017426698468625546, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 114, "message": " File \"\", line 1\n def bad(:\n ^\nSyntaxError: invalid syntax"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 114, "message": "SyntaxError"}], "longrepr": "def test_malformed_code():\n # SyntaxError when executing malformed Python code\n> exec(\"def bad(:\\n pass\")\nE File \"\", line 1\nE def bad(:\nE ^\nE SyntaxError: invalid syntax\n\ntests/test_math_utils.py:114: SyntaxError"}, "teardown": {"duration": 0.0001384679926559329, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_sys_exit", "lineno": 115, "outcome": "failed", "keywords": ["test_sys_exit", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00011598202399909496, "outcome": "passed"}, "call": {"duration": 0.00014594208914786577, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 118, "message": "SystemExit: 1"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 118, "message": "SystemExit"}], "longrepr": "def test_sys_exit():\n # Simulate SystemExit via sys.exit\n> sys.exit(1)\nE SystemExit: 1\n\ntests/test_math_utils.py:118: SystemExit"}, "teardown": {"duration": 0.0001350479433313012, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_broken_function", "lineno": 119, "outcome": "failed", "keywords": ["test_broken_function", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.0001187729649245739, "outcome": "passed"}, "call": {"duration": 0.00015059893485158682, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 123, "message": "TypeError: Broken function"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 124, "message": ""}, {"path": "tests/test_math_utils.py", "lineno": 123, "message": "TypeError"}], "longrepr": "def test_broken_function():\n # Simulate broken function raising TypeError\n def broken_func(*args, **kwargs):\n raise TypeError(\"Broken function\")\n> broken_func()\n\ntests/test_math_utils.py:124: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nargs = (), kwargs = {}\n\n def broken_func(*args, **kwargs):\n> raise TypeError(\"Broken function\")\nE TypeError: Broken function\n\ntests/test_math_utils.py:123: TypeError"}, "teardown": {"duration": 0.00014546606689691544, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_import_error", "lineno": 125, "outcome": "failed", "keywords": ["test_import_error", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00012724800035357475, "outcome": "passed"}, "call": {"duration": 0.00015033700037747622, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 127, "message": "ImportError: Simulated ImportError"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 127, "message": "ImportError"}], "longrepr": "def test_import_error():\n> raise ImportError(\"Simulated ImportError\")\nE ImportError: Simulated ImportError\n\ntests/test_math_utils.py:127: ImportError"}, "teardown": {"duration": 0.00014597305562347174, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_module_not_found_error", "lineno": 128, "outcome": "failed", "keywords": ["test_module_not_found_error", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00011592404916882515, "outcome": "passed"}, "call": {"duration": 0.0004635860677808523, "outcome": "failed", "crash": {"path": "", "lineno": 973, "message": "ModuleNotFoundError: No module named 'non_existent_module_xyz'"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 131, "message": ""}, {"path": ".pixi/envs/default/lib/python3.8/importlib/__init__.py", "lineno": 127, "message": "in import_module"}, {"path": "", "lineno": 1014, "message": "in _gcd_import"}, {"path": "", "lineno": 991, "message": "in _find_and_load"}, {"path": "", "lineno": 973, "message": "ModuleNotFoundError"}], "longrepr": "def test_module_not_found_error():\n # Raises ModuleNotFoundError (subclass of ImportError) for missing module\n> importlib.import_module(\"non_existent_module_xyz\")\n\ntests/test_math_utils.py:131: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n.pixi/envs/default/lib/python3.8/importlib/__init__.py:127: in import_module\n return _bootstrap._gcd_import(name[level:], package, level)\n:1014: in _gcd_import\n ???\n:991: in _find_and_load\n ???\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nname = 'non_existent_module_xyz'\nimport_ = \n\n> ???\nE ModuleNotFoundError: No module named 'non_existent_module_xyz'\n\n:973: ModuleNotFoundError"}, "teardown": {"duration": 0.00014267093501985073, "outcome": "passed"}}, {"nodeid": "tests/test_string_utils.py::test_uppercase_normal", "lineno": 7, "outcome": "passed", "keywords": ["test_uppercase_normal", "test_string_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00013214501086622477, "outcome": "passed"}, "call": {"duration": 0.00015621003694832325, "outcome": "passed"}, "teardown": {"duration": 0.00010547705460339785, "outcome": "passed"}}, {"nodeid": "tests/test_string_utils.py::test_uppercase_type_error", "lineno": 11, "outcome": "failed", "keywords": ["test_uppercase_type_error", "test_string_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00010519602801650763, "outcome": "passed"}, "call": {"duration": 0.000143897021189332, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/functions/string_utils.py", "lineno": 3, "message": "TypeError: Input cannot be None"}, "traceback": [{"path": "tests/test_string_utils.py", "lineno": 14, "message": ""}, {"path": "functions/string_utils.py", "lineno": 3, "message": "TypeError"}], "longrepr": "def test_uppercase_type_error():\n # TypeError when input is None (invalid input)\n> uppercase(None)\n\ntests/test_string_utils.py:14: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\ns = None\n\n def uppercase(s):\n if s is None:\n> raise TypeError(\"Input cannot be None\")\nE TypeError: Input cannot be None\n\nfunctions/string_utils.py:3: TypeError"}, "teardown": {"duration": 0.00013579102233052254, "outcome": "passed"}}, {"nodeid": "tests/test_string_utils.py::test_reverse_string", "lineno": 15, "outcome": "passed", "keywords": ["test_reverse_string", "test_string_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00012347206939011812, "outcome": "passed"}, "call": {"duration": 0.00014037801884114742, "outcome": "passed"}, "teardown": {"duration": 0.00010290194768458605, "outcome": "passed"}}, {"nodeid": "tests/test_string_utils.py::test_warning_emit", "lineno": 19, "outcome": "passed", "keywords": ["test_warning_emit", "test_string_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00010593398474156857, "outcome": "passed"}, "call": {"duration": 0.00014155101962387562, "outcome": "passed"}, "teardown": {"duration": 0.000105067971162498, "outcome": "passed"}}, {"nodeid": "tests/test_string_utils.py::test_unicode_decode_error", "lineno": 23, "outcome": "failed", "keywords": ["test_unicode_decode_error", "test_string_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00010159204248338938, "outcome": "passed"}, "call": {"duration": 0.0001410660333931446, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_string_utils.py", "lineno": 26, "message": "UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 0: invalid start byte"}, "traceback": [{"path": "tests/test_string_utils.py", "lineno": 26, "message": "UnicodeDecodeError"}], "longrepr": "def test_unicode_decode_error():\n # UnicodeDecodeError when decoding invalid byte sequence\n> b'\\xff'.decode('utf-8')\nE UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 0: invalid start byte\n\ntests/test_string_utils.py:26: UnicodeDecodeError"}, "teardown": {"duration": 0.0001343809999525547, "outcome": "passed"}}, {"nodeid": "tests/test_string_utils.py::test_unicode_decode_surrogateescape", "lineno": 27, "outcome": "failed", "keywords": ["test_unicode_decode_surrogateescape", "test_string_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00013013789430260658, "outcome": "passed"}, "call": {"duration": 0.00015160406474024057, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_string_utils.py", "lineno": 30, "message": "UnicodeDecodeError: 'utf-8' codec can't decode byte 0x80 in position 0: invalid start byte"}, "traceback": [{"path": "tests/test_string_utils.py", "lineno": 30, "message": "UnicodeDecodeError"}], "longrepr": "def test_unicode_decode_surrogateescape():\n # UnicodeDecodeError with strict error handler on invalid byte\n> b\"\\x80\".decode(\"utf-8\", errors=\"strict\")\nE UnicodeDecodeError: 'utf-8' codec can't decode byte 0x80 in position 0: invalid start byte\n\ntests/test_string_utils.py:30: UnicodeDecodeError"}, "teardown": {"duration": 0.00013520894572138786, "outcome": "passed"}}, {"nodeid": "tests/test_string_utils.py::test_import_warning", "lineno": 31, "outcome": "passed", "keywords": ["test_import_warning", "test_string_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00012649898417294025, "outcome": "passed"}, "call": {"duration": 0.00013916403986513615, "outcome": "passed"}, "teardown": {"duration": 0.00010100600775331259, "outcome": "passed"}}, {"nodeid": "tests/test_string_utils.py::test_xfail_uppercase_digits", "lineno": 35, "outcome": "xfailed", "keywords": ["test_xfail_uppercase_digits", "xfail", "pytestmark", "test_string_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00011566991452127695, "outcome": "passed"}, "call": {"duration": 0.000590565032325685, "outcome": "skipped", "crash": {"path": "/workspace/tligui_y/slic/tests/test_string_utils.py", "lineno": 39, "message": "AssertionError: assert 'ABC123' == 'ABC1234'\n \n - ABC1234\n ? -\n + ABC123"}, "traceback": [{"path": "tests/test_string_utils.py", "lineno": 39, "message": "AssertionError"}], "longrepr": "@pytest.mark.xfail(reason=\"Expected failure: uppercase does not handle digits\")\n def test_xfail_uppercase_digits():\n # Expected fail test because uppercase won't change digits\n> assert uppercase(\"abc123\") == \"ABC1234\"\nE AssertionError: assert 'ABC123' == 'ABC1234'\nE \nE - ABC1234\nE ? -\nE + ABC123\n\ntests/test_string_utils.py:39: AssertionError"}, "teardown": {"duration": 0.00013522198423743248, "outcome": "passed"}}, {"nodeid": "tests/test_string_utils.py::test_keyboard_interrupt_direct", "lineno": 40, "outcome": "passed", "keywords": ["test_keyboard_interrupt_direct", "test_string_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00012043304741382599, "outcome": "passed"}}], "warnings": [{"message": "Test warning", "category": "UserWarning", "when": "runtest", "filename": "/workspace/tligui_y/slic/tests/test_string_utils.py", "lineno": 22}]}
\ No newline at end of file
+{"created": 1752621756.9905546, "duration": 0.7634825706481934, "exitcode": 2, "root": "/workspace/tligui_y/slic", "environment": {}, "summary": {"passed": 16, "failed": 31, "xfailed": 2, "total": 49, "collected": 49}, "collectors": [{"nodeid": "", "outcome": "passed", "result": [{"nodeid": ".", "type": "Dir"}]}, {"nodeid": "ci-reports/allure/data", "outcome": "passed", "result": []}, {"nodeid": "ci-reports/allure/export", "outcome": "passed", "result": []}, {"nodeid": "ci-reports/allure/history", "outcome": "passed", "result": []}, {"nodeid": "ci-reports/allure/plugin/behaviors", "outcome": "passed", "result": []}, {"nodeid": "ci-reports/allure/plugin/packages", "outcome": "passed", "result": []}, {"nodeid": "ci-reports/allure/plugin/screen-diff", "outcome": "passed", "result": []}, {"nodeid": "ci-reports/allure/plugin", "outcome": "passed", "result": [{"nodeid": "ci-reports/allure/plugin/behaviors", "type": "Dir"}, {"nodeid": "ci-reports/allure/plugin/packages", "type": "Dir"}, {"nodeid": "ci-reports/allure/plugin/screen-diff", "type": "Dir"}]}, {"nodeid": "ci-reports/allure/widgets", "outcome": "passed", "result": []}, {"nodeid": "ci-reports/allure", "outcome": "passed", "result": [{"nodeid": "ci-reports/allure/data", "type": "Dir"}, {"nodeid": "ci-reports/allure/export", "type": "Dir"}, {"nodeid": "ci-reports/allure/history", "type": "Dir"}, {"nodeid": "ci-reports/allure/plugin", "type": "Dir"}, {"nodeid": "ci-reports/allure/widgets", "type": "Dir"}]}, {"nodeid": "ci-reports/coverage", "outcome": "passed", "result": []}, {"nodeid": "ci-reports/markdown", "outcome": "passed", "result": []}, {"nodeid": "ci-reports", "outcome": "passed", "result": [{"nodeid": "ci-reports/allure", "type": "Dir"}, {"nodeid": "ci-reports/coverage", "type": "Dir"}, {"nodeid": "ci-reports/markdown", "type": "Dir"}]}, {"nodeid": "functions", "outcome": "passed", "result": []}, {"nodeid": "tests/test_broken_fct.py", "outcome": "failed", "result": [], "longrepr": ".pixi/envs/default/lib/python3.8/site-packages/_pytest/python.py:493: in importtestmodule\n mod = import_path(\n.pixi/envs/default/lib/python3.8/site-packages/_pytest/pathlib.py:587: in import_path\n importlib.import_module(module_name)\n.pixi/envs/default/lib/python3.8/importlib/__init__.py:127: in import_module\n return _bootstrap._gcd_import(name[level:], package, level)\n:1014: in _gcd_import\n ???\n:991: in _find_and_load\n ???\n:975: in _find_and_load_unlocked\n ???\n:671: in _load_unlocked\n ???\n.pixi/envs/default/lib/python3.8/site-packages/_pytest/assertion/rewrite.py:175: in exec_module\n source_stat, co = _rewrite_test(fn, self.config)\n.pixi/envs/default/lib/python3.8/site-packages/_pytest/assertion/rewrite.py:355: in _rewrite_test\n tree = ast.parse(source, filename=strfn)\n.pixi/envs/default/lib/python3.8/ast.py:47: in parse\n return compile(source, filename, mode, flags,\nE File \"/workspace/tligui_y/slic/tests/test_broken_fct.py\", line 8\nE def test_valid_2():\nE ^\nE SyntaxError: invalid syntax"}, {"nodeid": "tests/test_collector_error.py", "outcome": "failed", "result": [], "longrepr": "ImportError while importing test module '/workspace/tligui_y/slic/tests/test_collector_error.py'.\nHint: make sure your test modules/packages have valid Python names.\nTraceback:\n.pixi/envs/default/lib/python3.8/importlib/__init__.py:127: in import_module\n return _bootstrap._gcd_import(name[level:], package, level)\ntests/test_collector_error.py:1: in \n from no_existing_module.math_utils import *\nE ModuleNotFoundError: No module named 'no_existing_module'"}, {"nodeid": "tests/test_io_utils.py", "outcome": "passed", "result": [{"nodeid": "tests/test_io_utils.py::test_read_file", "type": "Function", "lineno": 9}, {"nodeid": "tests/test_io_utils.py::test_write_file", "type": "Function", "lineno": 16}, {"nodeid": "tests/test_io_utils.py::test_cause_io_error", "type": "Function", "lineno": 22}, {"nodeid": "tests/test_io_utils.py::test_file_not_found", "type": "Function", "lineno": 26}, {"nodeid": "tests/test_io_utils.py::test_permission_error", "type": "Function", "lineno": 30}, {"nodeid": "tests/test_io_utils.py::test_mock_open_error", "type": "Function", "lineno": 37}, {"nodeid": "tests/test_io_utils.py::test_file_handle_closed_error", "type": "Function", "lineno": 45}, {"nodeid": "tests/test_io_utils.py::test_os_error", "type": "Function", "lineno": 51}, {"nodeid": "tests/test_io_utils.py::test_write_file_readonly", "type": "Function", "lineno": 58}, {"nodeid": "tests/test_io_utils.py::test_file_not_found_error", "type": "Function", "lineno": 66}]}, {"nodeid": "tests/test_math_utils.py", "outcome": "passed", "result": [{"nodeid": "tests/test_math_utils.py::test_broken", "type": "Function", "lineno": 13}, {"nodeid": "tests/test_math_utils.py::test_call_missing_function", "type": "Function", "lineno": 17}, {"nodeid": "tests/test_math_utils.py::test_addition_pass[2-2-4]", "type": "Function", "lineno": 22}, {"nodeid": "tests/test_math_utils.py::test_addition_pass[1-5-6]", "type": "Function", "lineno": 22}, {"nodeid": "tests/test_math_utils.py::test_addition_pass[3-4-7]", "type": "Function", "lineno": 22}, {"nodeid": "tests/test_math_utils.py::test_addition_pass[3-5-8]", "type": "Function", "lineno": 22}, {"nodeid": "tests/test_math_utils.py::test_addition_pass[3-6-9]", "type": "Function", "lineno": 22}, {"nodeid": "tests/test_math_utils.py::test_addition_pass_id[a=2,b=2,expected=4]", "type": "Function", "lineno": 36}, {"nodeid": "tests/test_math_utils.py::test_addition_pass_id[a=1,b=5,expected=6]", "type": "Function", "lineno": 36}, {"nodeid": "tests/test_math_utils.py::test_addition_pass_id[a=3,b=4,expected=7]", "type": "Function", "lineno": 36}, {"nodeid": "tests/test_math_utils.py::test_addition_fail", "type": "Function", "lineno": 48}, {"nodeid": "tests/test_math_utils.py::test_division_zero", "type": "Function", "lineno": 52}, {"nodeid": "tests/test_math_utils.py::test_multiply_xfail", "type": "Function", "lineno": 56}, {"nodeid": "tests/test_math_utils.py::test_runtime_error", "type": "Function", "lineno": 61}, {"nodeid": "tests/test_math_utils.py::test_memory_error", "type": "Function", "lineno": 65}, {"nodeid": "tests/test_math_utils.py::test_timeout_error", "type": "Function", "lineno": 69}, {"nodeid": "tests/test_math_utils.py::test_recursion_error", "type": "Function", "lineno": 73}, {"nodeid": "tests/test_math_utils.py::test_floating_point_error", "type": "Function", "lineno": 79}, {"nodeid": "tests/test_math_utils.py::test_floating_point_overflow", "type": "Function", "lineno": 83}, {"nodeid": "tests/test_math_utils.py::test_value_error", "type": "Function", "lineno": 87}, {"nodeid": "tests/test_math_utils.py::test_wrong_argument_error", "type": "Function", "lineno": 91}, {"nodeid": "tests/test_math_utils.py::test_unhandled_exception", "type": "Function", "lineno": 95}, {"nodeid": "tests/test_math_utils.py::test_custom_error", "type": "Function", "lineno": 99}, {"nodeid": "tests/test_math_utils.py::test_stop_iteration_direct", "type": "Function", "lineno": 103}, {"nodeid": "tests/test_math_utils.py::test_generator_exit_direct", "type": "Function", "lineno": 107}, {"nodeid": "tests/test_math_utils.py::test_malformed_code", "type": "Function", "lineno": 111}, {"nodeid": "tests/test_math_utils.py::test_sys_exit", "type": "Function", "lineno": 115}, {"nodeid": "tests/test_math_utils.py::test_broken_function", "type": "Function", "lineno": 119}, {"nodeid": "tests/test_math_utils.py::test_import_error", "type": "Function", "lineno": 125}, {"nodeid": "tests/test_math_utils.py::test_module_not_found_error", "type": "Function", "lineno": 128}]}, {"nodeid": "tests/test_string_utils.py", "outcome": "passed", "result": [{"nodeid": "tests/test_string_utils.py::test_uppercase_normal", "type": "Function", "lineno": 7}, {"nodeid": "tests/test_string_utils.py::test_uppercase_type_error", "type": "Function", "lineno": 11}, {"nodeid": "tests/test_string_utils.py::test_reverse_string", "type": "Function", "lineno": 15}, {"nodeid": "tests/test_string_utils.py::test_warning_emit", "type": "Function", "lineno": 19}, {"nodeid": "tests/test_string_utils.py::test_unicode_decode_error", "type": "Function", "lineno": 23}, {"nodeid": "tests/test_string_utils.py::test_unicode_decode_surrogateescape", "type": "Function", "lineno": 27}, {"nodeid": "tests/test_string_utils.py::test_import_warning", "type": "Function", "lineno": 31}, {"nodeid": "tests/test_string_utils.py::test_xfail_uppercase_digits", "type": "Function", "lineno": 35}, {"nodeid": "tests/test_string_utils.py::test_keyboard_interrupt_direct", "type": "Function", "lineno": 40}]}, {"nodeid": "tests", "outcome": "passed", "result": [{"nodeid": "tests/test_broken_fct.py", "type": "Module"}, {"nodeid": "tests/test_collector_error.py", "type": "Module"}, {"nodeid": "tests/test_io_utils.py", "type": "Module"}, {"nodeid": "tests/test_math_utils.py", "type": "Module"}, {"nodeid": "tests/test_string_utils.py", "type": "Module"}]}, {"nodeid": ".", "outcome": "passed", "result": [{"nodeid": "ci-reports", "type": "Dir"}, {"nodeid": "functions", "type": "Package"}, {"nodeid": "tests", "type": "Dir"}]}], "tests": [{"nodeid": "tests/test_io_utils.py::test_read_file", "lineno": 9, "outcome": "passed", "keywords": ["test_read_file", "test_io_utils.py", "tests", "slic", ""], "setup": {"duration": 0.003324082004837692, "outcome": "passed"}, "call": {"duration": 0.0004414800787344575, "outcome": "passed"}, "teardown": {"duration": 0.00027307996060699224, "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.0004820129834115505, "outcome": "passed"}, "call": {"duration": 0.00030255806632339954, "outcome": "passed"}, "teardown": {"duration": 0.0001410599797964096, "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.00011739099863916636, "outcome": "passed"}, "call": {"duration": 0.0001658619148656726, "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.0001403809292241931, "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.00012106704525649548, "outcome": "passed"}, "call": {"duration": 0.00017453893087804317, "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.00013915798626840115, "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.00020134099759161472, "outcome": "passed"}, "call": {"duration": 0.00017188792116940022, "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 0x7fbf67310cd0>\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.0001646659802645445, "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.00018395495135337114, "outcome": "passed"}, "call": {"duration": 0.0032613039948046207, "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 0x7fbf64ae2a00>\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.0003147769020870328, "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.0001501420047134161, "outcome": "passed"}, "call": {"duration": 0.0001889329869300127, "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.00019695796072483063, "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.0002652329858392477, "outcome": "passed"}, "call": {"duration": 0.00018960400484502316, "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 0x7fbf647fc5b0>\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.00020017195492982864, "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.0009298489894717932, "outcome": "passed"}, "call": {"duration": 0.04601577192079276, "outcome": "passed"}, "teardown": {"duration": 0.0002421719254925847, "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.00013643305283039808, "outcome": "passed"}, "call": {"duration": 0.00025610101874917746, "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.00017728295642882586, "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.00013297598343342543, "outcome": "passed"}, "call": {"duration": 0.0001552420435473323, "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.0001528909197077155, "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.0001243640435859561, "outcome": "passed"}, "call": {"duration": 0.00015880900900810957, "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.00013970897998660803, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_addition_pass[2-2-4]", "lineno": 22, "outcome": "passed", "keywords": ["test_addition_pass[2-2-4]", "parametrize", "pytestmark", "2-2-4", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.0003277519717812538, "outcome": "passed"}, "call": {"duration": 0.0001502509694546461, "outcome": "passed"}, "teardown": {"duration": 0.00014220899902284145, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_addition_pass[1-5-6]", "lineno": 22, "outcome": "passed", "keywords": ["test_addition_pass[1-5-6]", "parametrize", "pytestmark", "1-5-6", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.0002659599995240569, "outcome": "passed"}, "call": {"duration": 0.00013785704504698515, "outcome": "passed"}, "teardown": {"duration": 0.00013739801943302155, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_addition_pass[3-4-7]", "lineno": 22, "outcome": "passed", "keywords": ["test_addition_pass[3-4-7]", "parametrize", "pytestmark", "3-4-7", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00026273191906511784, "outcome": "passed"}, "call": {"duration": 0.00013688299804925919, "outcome": "passed"}, "teardown": {"duration": 0.0001391569385305047, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_addition_pass[3-5-8]", "lineno": 22, "outcome": "passed", "keywords": ["test_addition_pass[3-5-8]", "parametrize", "pytestmark", "3-5-8", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.0002433310728520155, "outcome": "passed"}, "call": {"duration": 0.00012729002628475428, "outcome": "passed"}, "teardown": {"duration": 0.0001356309512630105, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_addition_pass[3-6-9]", "lineno": 22, "outcome": "passed", "keywords": ["test_addition_pass[3-6-9]", "parametrize", "pytestmark", "3-6-9", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00024468800984323025, "outcome": "passed"}, "call": {"duration": 0.0001290380023419857, "outcome": "passed"}, "teardown": {"duration": 0.00012923404574394226, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_addition_pass_id[a=2,b=2,expected=4]", "lineno": 36, "outcome": "passed", "keywords": ["test_addition_pass_id[a=2,b=2,expected=4]", "parametrize", "pytestmark", "a=2,b=2,expected=4", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.0002460100222378969, "outcome": "passed"}, "call": {"duration": 0.00012512598186731339, "outcome": "passed"}, "teardown": {"duration": 0.00013603002298623323, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_addition_pass_id[a=1,b=5,expected=6]", "lineno": 36, "outcome": "passed", "keywords": ["test_addition_pass_id[a=1,b=5,expected=6]", "parametrize", "pytestmark", "a=1,b=5,expected=6", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00024307193234562874, "outcome": "passed"}, "call": {"duration": 0.0001405909424647689, "outcome": "passed"}, "teardown": {"duration": 0.00013211497571319342, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_addition_pass_id[a=3,b=4,expected=7]", "lineno": 36, "outcome": "passed", "keywords": ["test_addition_pass_id[a=3,b=4,expected=7]", "parametrize", "pytestmark", "a=3,b=4,expected=7", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00024360395036637783, "outcome": "passed"}, "call": {"duration": 0.00013313698582351208, "outcome": "passed"}, "teardown": {"duration": 0.0001337979920208454, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_addition_fail", "lineno": 48, "outcome": "failed", "keywords": ["test_addition_fail", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00011147197801619768, "outcome": "passed"}, "call": {"duration": 0.0004605129361152649, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 51, "message": "assert 4 == 5\n + where 4 = addition(2, 2)"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 51, "message": "AssertionError"}], "longrepr": "def test_addition_fail():\n # Assertion failure: expected incorrect result\n> assert addition(2, 2) == 5\nE assert 4 == 5\nE + where 4 = addition(2, 2)\n\ntests/test_math_utils.py:51: AssertionError"}, "teardown": {"duration": 0.00013536401093006134, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_division_zero", "lineno": 52, "outcome": "failed", "keywords": ["test_division_zero", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.0001277630217373371, "outcome": "passed"}, "call": {"duration": 0.00022356596309691668, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/functions/math_utils.py", "lineno": 5, "message": "ZeroDivisionError: division by zero"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 55, "message": ""}, {"path": "functions/math_utils.py", "lineno": 5, "message": "ZeroDivisionError"}], "longrepr": "def test_division_zero():\n # Will raise ZeroDivisionError if not handled in division\n> division(1, 0)\n\ntests/test_math_utils.py:55: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\na = 1, b = 0\n\n def division(a, b):\n> return a / b\nE ZeroDivisionError: division by zero\n\nfunctions/math_utils.py:5: ZeroDivisionError"}, "teardown": {"duration": 0.00013756402768194675, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_multiply_xfail", "lineno": 56, "outcome": "xfailed", "keywords": ["test_multiply_xfail", "xfail", "pytestmark", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00013368402142077684, "outcome": "passed"}, "call": {"duration": 0.00026837096083909273, "outcome": "skipped", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 60, "message": "assert 4 == 5\n + where 4 = multiply(2, 2)"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 60, "message": "AssertionError"}], "longrepr": "@pytest.mark.xfail(reason=\"Expected failure\")\n def test_multiply_xfail():\n # Expected fail test (xfail): incorrect expected multiply result\n> assert multiply(2, 2) == 5\nE assert 4 == 5\nE + where 4 = multiply(2, 2)\n\ntests/test_math_utils.py:60: AssertionError"}, "teardown": {"duration": 0.00013796298298984766, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_runtime_error", "lineno": 61, "outcome": "failed", "keywords": ["test_runtime_error", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00011888006702065468, "outcome": "passed"}, "call": {"duration": 0.00016043696086853743, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 64, "message": "RuntimeError: Forced runtime error"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 64, "message": "RuntimeError"}], "longrepr": "def test_runtime_error():\n # Test raises an uncaught RuntimeError\n> raise RuntimeError(\"Forced runtime error\")\nE RuntimeError: Forced runtime error\n\ntests/test_math_utils.py:64: RuntimeError"}, "teardown": {"duration": 0.00013823597691953182, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_memory_error", "lineno": 65, "outcome": "failed", "keywords": ["test_memory_error", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00011936097871512175, "outcome": "passed"}, "call": {"duration": 0.00014774000737816095, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 68, "message": "MemoryError: Simulated memory error"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 68, "message": "MemoryError"}], "longrepr": "def test_memory_error():\n # Manually raise MemoryError to simulate out-of-memory condition\n> raise MemoryError(\"Simulated memory error\")\nE MemoryError: Simulated memory error\n\ntests/test_math_utils.py:68: MemoryError"}, "teardown": {"duration": 0.00014640402514487505, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_timeout_error", "lineno": 69, "outcome": "failed", "keywords": ["test_timeout_error", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00012489291839301586, "outcome": "passed"}, "call": {"duration": 0.00014868192374706268, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 72, "message": "TimeoutError: Simulated timeout error"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 72, "message": "TimeoutError"}], "longrepr": "def test_timeout_error():\n # Manually raise TimeoutError simulating timeout conditions\n> raise TimeoutError(\"Simulated timeout error\")\nE TimeoutError: Simulated timeout error\n\ntests/test_math_utils.py:72: TimeoutError"}, "teardown": {"duration": 0.00013607204891741276, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_recursion_error", "lineno": 73, "outcome": "failed", "keywords": ["test_recursion_error", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00011700903996825218, "outcome": "passed"}, "call": {"duration": 0.0007801380706951022, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 77, "message": "RecursionError: maximum recursion depth exceeded"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 78, "message": ""}, {"path": "tests/test_math_utils.py", "lineno": 77, "message": "in recursive"}, {"path": "tests/test_math_utils.py", "lineno": 77, "message": "in recursive"}], "longrepr": "def test_recursion_error():\n # Infinite recursion triggers RecursionError\n def recursive():\n return recursive()\n> recursive()\n\ntests/test_math_utils.py:78: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_math_utils.py:77: in recursive\n return recursive()\ntests/test_math_utils.py:77: in recursive\n return recursive()\nE RecursionError: maximum recursion depth exceeded\n!!! Recursion detected (same locals & position)"}, "teardown": {"duration": 0.00013808405492454767, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_floating_point_error", "lineno": 79, "outcome": "failed", "keywords": ["test_floating_point_error", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.0001182750565931201, "outcome": "passed"}, "call": {"duration": 0.00014920998364686966, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 82, "message": "FloatingPointError: Simulated floating point error"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 82, "message": "FloatingPointError"}], "longrepr": "def test_floating_point_error():\n # Manually raise FloatingPointError\n> raise FloatingPointError(\"Simulated floating point error\")\nE FloatingPointError: Simulated floating point error\n\ntests/test_math_utils.py:82: FloatingPointError"}, "teardown": {"duration": 0.00013714097440242767, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_floating_point_overflow", "lineno": 83, "outcome": "failed", "keywords": ["test_floating_point_overflow", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00012561201583594084, "outcome": "passed"}, "call": {"duration": 0.00016975996550172567, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 86, "message": "OverflowError: math range error"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 86, "message": "OverflowError"}], "longrepr": "def test_floating_point_overflow():\n # Exponential overflow triggers OverflowError\n> math.exp(1000)\nE OverflowError: math range error\n\ntests/test_math_utils.py:86: OverflowError"}, "teardown": {"duration": 0.0001349450321868062, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_value_error", "lineno": 87, "outcome": "failed", "keywords": ["test_value_error", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00011962896678596735, "outcome": "passed"}, "call": {"duration": 0.000167137011885643, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 90, "message": "ValueError: invalid literal for int() with base 10: 'invalid'"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 90, "message": "ValueError"}], "longrepr": "def test_value_error():\n # ValueError on invalid integer conversion\n> int(\"invalid\")\nE ValueError: invalid literal for int() with base 10: 'invalid'\n\ntests/test_math_utils.py:90: ValueError"}, "teardown": {"duration": 0.00013544305693358183, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_wrong_argument_error", "lineno": 91, "outcome": "failed", "keywords": ["test_wrong_argument_error", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00012973695993423462, "outcome": "passed"}, "call": {"duration": 0.00014978600665926933, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 94, "message": "TypeError: 'int' object is not iterable"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 94, "message": "TypeError"}], "longrepr": "def test_wrong_argument_error():\n # TypeError when passing wrong argument type to sum\n> sum(5)\nE TypeError: 'int' object is not iterable\n\ntests/test_math_utils.py:94: TypeError"}, "teardown": {"duration": 0.00014057999942451715, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_unhandled_exception", "lineno": 95, "outcome": "failed", "keywords": ["test_unhandled_exception", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00011784990783780813, "outcome": "passed"}, "call": {"duration": 0.000150916981510818, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 98, "message": "Exception: Generic unhandled exception"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 98, "message": "Exception"}], "longrepr": "def test_unhandled_exception():\n # Raises generic unhandled Exception\n> raise Exception(\"Generic unhandled exception\")\nE Exception: Generic unhandled exception\n\ntests/test_math_utils.py:98: Exception"}, "teardown": {"duration": 0.00013816298451274633, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_custom_error", "lineno": 99, "outcome": "failed", "keywords": ["test_custom_error", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.0001263630110770464, "outcome": "passed"}, "call": {"duration": 0.000147454091347754, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 102, "message": "test_math_utils.CustomError: Custom error simulation"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 102, "message": "CustomError"}], "longrepr": "def test_custom_error():\n # Raises user-defined CustomError exception\n> raise CustomError(\"Custom error simulation\")\nE test_math_utils.CustomError: Custom error simulation\n\ntests/test_math_utils.py:102: CustomError"}, "teardown": {"duration": 0.0001478979829698801, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_stop_iteration_direct", "lineno": 103, "outcome": "failed", "keywords": ["test_stop_iteration_direct", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.0001165829598903656, "outcome": "passed"}, "call": {"duration": 0.00014698994345963, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/.pixi/envs/default/lib/python3.8/site-packages/_pytest/capture.py", "lineno": 880, "message": "RuntimeError: generator raised StopIteration"}, "traceback": [{"path": ".pixi/envs/default/lib/python3.8/site-packages/_pytest/runner.py", "lineno": 341, "message": ""}, {"path": ".pixi/envs/default/lib/python3.8/site-packages/_pytest/runner.py", "lineno": 242, "message": "in "}, {"path": ".pixi/envs/default/lib/python3.8/site-packages/pluggy/_hooks.py", "lineno": 513, "message": "in __call__"}, {"path": ".pixi/envs/default/lib/python3.8/site-packages/pluggy/_manager.py", "lineno": 120, "message": "in _hookexec"}, {"path": ".pixi/envs/default/lib/python3.8/site-packages/_pytest/threadexception.py", "lineno": 92, "message": "in pytest_runtest_call"}, {"path": ".pixi/envs/default/lib/python3.8/site-packages/_pytest/threadexception.py", "lineno": 68, "message": "in thread_exception_runtest_hook"}, {"path": ".pixi/envs/default/lib/python3.8/site-packages/_pytest/unraisableexception.py", "lineno": 95, "message": "in pytest_runtest_call"}, {"path": ".pixi/envs/default/lib/python3.8/site-packages/_pytest/unraisableexception.py", "lineno": 70, "message": "in unraisable_exception_runtest_hook"}, {"path": ".pixi/envs/default/lib/python3.8/site-packages/_pytest/logging.py", "lineno": 846, "message": "in pytest_runtest_call"}, {"path": ".pixi/envs/default/lib/python3.8/site-packages/_pytest/logging.py", "lineno": 829, "message": "in _runtest_for"}, {"path": ".pixi/envs/default/lib/python3.8/site-packages/_pytest/capture.py", "lineno": 880, "message": "RuntimeError"}], "longrepr": "def test_stop_iteration_direct():\n # Directly raise StopIteration exception\n> raise StopIteration()\nE StopIteration\n\ntests/test_math_utils.py:106: StopIteration\n\nThe above exception was the direct cause of the following exception:\n\ncls = \nfunc = . at 0x7fbf64ac09d0>\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.0002616889541968703, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_generator_exit_direct", "lineno": 107, "outcome": "failed", "keywords": ["test_generator_exit_direct", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00018389697652310133, "outcome": "passed"}, "call": {"duration": 0.00018249498680233955, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 110, "message": "GeneratorExit"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 110, "message": "GeneratorExit"}], "longrepr": "def test_generator_exit_direct():\n # Directly raise GeneratorExit exception\n> raise GeneratorExit()\nE GeneratorExit\n\ntests/test_math_utils.py:110: GeneratorExit"}, "teardown": {"duration": 0.00018590607214719057, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_malformed_code", "lineno": 111, "outcome": "failed", "keywords": ["test_malformed_code", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00012829399202018976, "outcome": "passed"}, "call": {"duration": 0.00017419899813830853, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 114, "message": " File \"\", line 1\n def bad(:\n ^\nSyntaxError: invalid syntax"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 114, "message": "SyntaxError"}], "longrepr": "def test_malformed_code():\n # SyntaxError when executing malformed Python code\n> exec(\"def bad(:\\n pass\")\nE File \"\", line 1\nE def bad(:\nE ^\nE SyntaxError: invalid syntax\n\ntests/test_math_utils.py:114: SyntaxError"}, "teardown": {"duration": 0.00015520397573709488, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_sys_exit", "lineno": 115, "outcome": "failed", "keywords": ["test_sys_exit", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00011958100367337465, "outcome": "passed"}, "call": {"duration": 0.00015132990665733814, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 118, "message": "SystemExit: 1"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 118, "message": "SystemExit"}], "longrepr": "def test_sys_exit():\n # Simulate SystemExit via sys.exit\n> sys.exit(1)\nE SystemExit: 1\n\ntests/test_math_utils.py:118: SystemExit"}, "teardown": {"duration": 0.0001387739321216941, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_broken_function", "lineno": 119, "outcome": "failed", "keywords": ["test_broken_function", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.0001191840274259448, "outcome": "passed"}, "call": {"duration": 0.00015292398165911436, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 123, "message": "TypeError: Broken function"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 124, "message": ""}, {"path": "tests/test_math_utils.py", "lineno": 123, "message": "TypeError"}], "longrepr": "def test_broken_function():\n # Simulate broken function raising TypeError\n def broken_func(*args, **kwargs):\n raise TypeError(\"Broken function\")\n> broken_func()\n\ntests/test_math_utils.py:124: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nargs = (), kwargs = {}\n\n def broken_func(*args, **kwargs):\n> raise TypeError(\"Broken function\")\nE TypeError: Broken function\n\ntests/test_math_utils.py:123: TypeError"}, "teardown": {"duration": 0.00015683600213378668, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_import_error", "lineno": 125, "outcome": "failed", "keywords": ["test_import_error", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.0001193879870697856, "outcome": "passed"}, "call": {"duration": 0.00015442201402038336, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 127, "message": "ImportError: Simulated ImportError"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 127, "message": "ImportError"}], "longrepr": "def test_import_error():\n> raise ImportError(\"Simulated ImportError\")\nE ImportError: Simulated ImportError\n\ntests/test_math_utils.py:127: ImportError"}, "teardown": {"duration": 0.00013977894559502602, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_module_not_found_error", "lineno": 128, "outcome": "failed", "keywords": ["test_module_not_found_error", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00011999905109405518, "outcome": "passed"}, "call": {"duration": 0.00047906290274113417, "outcome": "failed", "crash": {"path": "", "lineno": 973, "message": "ModuleNotFoundError: No module named 'non_existent_module_xyz'"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 131, "message": ""}, {"path": ".pixi/envs/default/lib/python3.8/importlib/__init__.py", "lineno": 127, "message": "in import_module"}, {"path": "", "lineno": 1014, "message": "in _gcd_import"}, {"path": "", "lineno": 991, "message": "in _find_and_load"}, {"path": "", "lineno": 973, "message": "ModuleNotFoundError"}], "longrepr": "def test_module_not_found_error():\n # Raises ModuleNotFoundError (subclass of ImportError) for missing module\n> importlib.import_module(\"non_existent_module_xyz\")\n\ntests/test_math_utils.py:131: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n.pixi/envs/default/lib/python3.8/importlib/__init__.py:127: in import_module\n return _bootstrap._gcd_import(name[level:], package, level)\n:1014: in _gcd_import\n ???\n:991: in _find_and_load\n ???\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nname = 'non_existent_module_xyz'\nimport_ = \n\n> ???\nE ModuleNotFoundError: No module named 'non_existent_module_xyz'\n\n:973: ModuleNotFoundError"}, "teardown": {"duration": 0.0001546118874102831, "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.0001389330718666315, "outcome": "passed"}, "call": {"duration": 0.0001482130028307438, "outcome": "passed"}, "teardown": {"duration": 0.00010155898053199053, "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.00010855903383344412, "outcome": "passed"}, "call": {"duration": 0.00014493707567453384, "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.0001550329616293311, "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.00011937390081584454, "outcome": "passed"}, "call": {"duration": 0.0001402050256729126, "outcome": "passed"}, "teardown": {"duration": 0.00010820000898092985, "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.00012702203821390867, "outcome": "passed"}, "call": {"duration": 0.00015007401816546917, "outcome": "passed"}, "teardown": {"duration": 0.0001140229869633913, "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.00011941301636397839, "outcome": "passed"}, "call": {"duration": 0.00015755998902022839, "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.00013325002510100603, "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.0001330169616267085, "outcome": "passed"}, "call": {"duration": 0.00015471596270799637, "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.0001356150023639202, "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.0001374350395053625, "outcome": "passed"}, "call": {"duration": 0.00013722898438572884, "outcome": "passed"}, "teardown": {"duration": 9.883195161819458e-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.0001387799857184291, "outcome": "passed"}, "call": {"duration": 0.000626905937679112, "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.00013707811012864113, "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.00011848099529743195, "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 85acd3c1..11602a25 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: cov-5.0.0, metadata-3.1.1, allure-pytest-2.13.5, html-4.1.1, json-report-1.5.0, md-report-0.6.2
+plugins: html-4.1.1, metadata-3.1.1, allure-pytest-2.13.5, cov-5.0.0, md-report-0.6.2, json-report-1.5.0
collected 49 items / 2 errors
tests/test_io_utils.py ..FFFFFF.F
@@ -76,7 +76,7 @@ E FileNotFoundError: [Errno 2] No such file or directory: 'nonexistent.fil
functions/io_utils.py:2: FileNotFoundError
____________________________ test_permission_error _____________________________
-monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fca802a9f10>
+monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fbf67310cd0>
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 0x7fca80336160>
+monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fbf64ae2a00>
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 0x7fca802a9f10>
+monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fbf647fc5b0>
def test_os_error(monkeypatch):
# Patch os.remove to raise OSError simulating filesystem error
@@ -311,7 +311,7 @@ tests/test_math_utils.py:106: StopIteration
The above exception was the direct cause of the following exception:
cls =
-func = . at 0x7fca807fe9d0>
+func = . at 0x7fbf64ac09d0>
when = 'call'
reraise = (, )
@@ -440,7 +440,7 @@ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
name = 'non_existent_module_xyz'
-import_ =
+import_ =
> ???
E ModuleNotFoundError: No module named 'non_existent_module_xyz'
@@ -533,4 +533,4 @@ ERROR tests/test_collector_error.py
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! KeyboardInterrupt !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
/workspace/tligui_y/slic/tests/test_string_utils.py:43: KeyboardInterrupt
(to show a full traceback on KeyboardInterrupt use --full-trace)
-======== 31 failed, 15 passed, 2 xfailed, 1 warning, 2 errors in 0.71s =========
+======== 31 failed, 15 passed, 2 xfailed, 1 warning, 2 errors in 0.76s =========