From 0cdfa75d95b5bdc35159647c36873b41fc9ea0ef Mon Sep 17 00:00:00 2001 From: tligui_y Date: Tue, 15 Jul 2025 14:28:55 +0200 Subject: [PATCH] Delete ci-reports/xml/pytest-report.xml --- ci-reports/xml/pytest-report.xml | 397 ------------------------------- 1 file changed, 397 deletions(-) delete mode 100644 ci-reports/xml/pytest-report.xml diff --git a/ci-reports/xml/pytest-report.xml b/ci-reports/xml/pytest-report.xml deleted file mode 100644 index 6da13a91d..000000000 --- a/ci-reports/xml/pytest-report.xml +++ /dev/null @@ -1,397 +0,0 @@ -.pixi/envs/default/lib/python3.8/site-packages/_pytest/python.py:493: in importtestmodule - mod = import_path( -.pixi/envs/default/lib/python3.8/site-packages/_pytest/pathlib.py:587: in import_path - importlib.import_module(module_name) -.pixi/envs/default/lib/python3.8/importlib/__init__.py:127: in import_module - return _bootstrap._gcd_import(name[level:], package, level) -<frozen importlib._bootstrap>:1014: in _gcd_import - ??? -<frozen importlib._bootstrap>:991: in _find_and_load - ??? -<frozen importlib._bootstrap>:975: in _find_and_load_unlocked - ??? -<frozen importlib._bootstrap>:671: in _load_unlocked - ??? -.pixi/envs/default/lib/python3.8/site-packages/_pytest/assertion/rewrite.py:175: in exec_module - source_stat, co = _rewrite_test(fn, self.config) -.pixi/envs/default/lib/python3.8/site-packages/_pytest/assertion/rewrite.py:355: in _rewrite_test - tree = ast.parse(source, filename=strfn) -.pixi/envs/default/lib/python3.8/ast.py:47: in parse - return compile(source, filename, mode, flags, -E File "/workspace/tligui_y/slic/tests/test_broken_fct.py", line 8 -E def test_valid_2(): -E ^ -E SyntaxError: invalid syntaxImportError while importing test module '/workspace/tligui_y/slic/tests/test_collector_error.py'. -Hint: make sure your test modules/packages have valid Python names. -Traceback: -.pixi/envs/default/lib/python3.8/importlib/__init__.py:127: in import_module - return _bootstrap._gcd_import(name[level:], package, level) -tests/test_collector_error.py:1: in <module> - from no_existing_module.math_utils import * -E ModuleNotFoundError: No module named 'no_existing_module'def test_cause_io_error(): - # Raises manual IOError to simulate IO failure -> cause_io_error() - -tests/test_io_utils.py:25: -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ - - def cause_io_error(): -> raise IOError("Forced IO Error for testing") -E OSError: Forced IO Error for testing - -functions/io_utils.py:10: OSErrordef test_file_not_found(): - # Reading non-existing file raises FileNotFoundError -> read_file("nonexistent.file") - -tests/test_io_utils.py:29: -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ - -path = 'nonexistent.file' - - def read_file(path): -> with open(path, "r", encoding="utf-8") as f: -E FileNotFoundError: [Errno 2] No such file or directory: 'nonexistent.file' - -functions/io_utils.py:2: FileNotFoundErrormonkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f65176f0b20> - - def test_permission_error(monkeypatch): - # Patch open to raise PermissionError simulating access denial - def raise_perm_error(*args, **kwargs): - raise PermissionError("Permission denied") - monkeypatch.setattr("builtins.open", raise_perm_error) -> read_file("anyfile.txt") - -tests/test_io_utils.py:36: -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -functions/io_utils.py:2: in read_file - with open(path, "r", encoding="utf-8") as f: -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ - -args = ('anyfile.txt', 'r'), kwargs = {'encoding': 'utf-8'} - - def raise_perm_error(*args, **kwargs): -> raise PermissionError("Permission denied") -E PermissionError: Permission denied - -tests/test_io_utils.py:34: PermissionErrormonkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f65176ec070> - - def test_mock_open_error(monkeypatch): - # Mock open() to raise IOError simulating read error - mocked_open = mock.mock_open() - mocked_open.side_effect = IOError("Mocked IOError") - monkeypatch.setattr("builtins.open", mocked_open) -> with open("file.txt", "r") as f: - -tests/test_io_utils.py:43: -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -.pixi/envs/default/lib/python3.8/unittest/mock.py:1081: in __call__ - return self._mock_call(*args, **kwargs) -.pixi/envs/default/lib/python3.8/unittest/mock.py:1085: in _mock_call - return self._execute_mock_call(*args, **kwargs) -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ - -self = <MagicMock name='open' spec='builtin_function_or_method' id='140072161559216'> -args = ('file.txt', 'r'), kwargs = {}, effect = OSError('Mocked IOError') - - def _execute_mock_call(self, /, *args, **kwargs): - # separate from _increment_mock_call so that awaited functions are - # executed separately from their call, also AsyncMock overrides this method - - effect = self.side_effect - if effect is not None: - if _is_exception(effect): -> raise effect -E OSError: Mocked IOError - -.pixi/envs/default/lib/python3.8/unittest/mock.py:1140: OSErrordef test_file_handle_closed_error(): - # Accessing closed file raises ValueError - f = io.StringIO("content") - f.close() -> f.read() -E ValueError: I/O operation on closed file - -tests/test_io_utils.py:50: ValueErrormonkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f65178be280> - - def test_os_error(monkeypatch): - # Patch os.remove to raise OSError simulating filesystem error - def raise_os_error(path): - raise OSError("Simulated OSError") - monkeypatch.setattr("os.remove", raise_os_error) -> os.remove("file.txt") - -tests/test_io_utils.py:57: -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ - -path = 'file.txt' - - def raise_os_error(path): -> raise OSError("Simulated OSError") -E OSError: Simulated OSError - -tests/test_io_utils.py:55: OSErrordef test_file_not_found_error(): - # Raises FileNotFoundError when opening a non-existent file -> open("no_such_file.txt", "r") -E FileNotFoundError: [Errno 2] No such file or directory: 'no_such_file.txt' - -tests/test_io_utils.py:69: FileNotFoundErrordef test_broken(): - # simulating a broken or faulty test implementation that will cause the test to error -> want_the_test_to_fail -E NameError: name 'want_the_test_to_fail' is not defined - -tests/test_math_utils.py:16: NameErrordef test_call_missing_function(): - # Accessing a missing function attribute raises AttributeError -> getattr(math_utils, "non_existent_function")() -E AttributeError: module 'functions.math_utils' has no attribute 'non_existent_function' - -tests/test_math_utils.py:20: AttributeErrordef test_addition_fail(): - # Assertion failure: expected incorrect result -> assert addition(2, 2) == 5 -E assert 4 == 5 -E + where 4 = addition(2, 2) - -tests/test_math_utils.py:48: AssertionErrordef test_division_zero(): - # Will raise ZeroDivisionError if not handled in division -> division(1, 0) - -tests/test_math_utils.py:52: -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ - -a = 1, b = 0 - - def division(a, b): -> return a / b -E ZeroDivisionError: division by zero - -functions/math_utils.py:5: ZeroDivisionErrordef test_runtime_error(): - # Test raises an uncaught RuntimeError -> raise RuntimeError("Forced runtime error") -E RuntimeError: Forced runtime error - -tests/test_math_utils.py:61: RuntimeErrordef test_memory_error(): - # Manually raise MemoryError to simulate out-of-memory condition -> raise MemoryError("Simulated memory error") -E MemoryError: Simulated memory error - -tests/test_math_utils.py:65: MemoryErrordef test_timeout_error(): - # Manually raise TimeoutError simulating timeout conditions -> raise TimeoutError("Simulated timeout error") -E TimeoutError: Simulated timeout error - -tests/test_math_utils.py:69: TimeoutErrordef test_recursion_error(): - # Infinite recursion triggers RecursionError - def recursive(): - return recursive() -> recursive() - -tests/test_math_utils.py:75: -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -tests/test_math_utils.py:74: in recursive - return recursive() -tests/test_math_utils.py:74: in recursive - return recursive() -E RecursionError: maximum recursion depth exceeded -!!! Recursion detected (same locals & position)def test_floating_point_error(): - # Manually raise FloatingPointError (rare in practice) -> raise FloatingPointError("Simulated floating point error") -E FloatingPointError: Simulated floating point error - -tests/test_math_utils.py:79: FloatingPointErrordef test_floating_point_overflow(): - # Exponential overflow triggers OverflowError -> math.exp(1000) -E OverflowError: math range error - -tests/test_math_utils.py:83: OverflowErrordef test_value_error(): - # ValueError on invalid integer conversion -> int("invalid") -E ValueError: invalid literal for int() with base 10: 'invalid' - -tests/test_math_utils.py:87: ValueErrordef test_type_error(): - # TypeError when passing wrong argument type to sum -> sum(5) -E TypeError: 'int' object is not iterable - -tests/test_math_utils.py:91: TypeErrordef test_unhandled_exception(): - # Raises generic unhandled Exception -> raise Exception("Generic unhandled exception") -E Exception: Generic unhandled exception - -tests/test_math_utils.py:95: Exceptiondef test_custom_error(): - # Raises user-defined CustomError exception -> raise CustomError("Custom error simulation") -E test_math_utils.CustomError: Custom error simulation - -tests/test_math_utils.py:99: CustomErrordef test_stop_iteration_direct(): - # Directly raise StopIteration exception -> raise StopIteration() -E StopIteration - -tests/test_math_utils.py:103: StopIteration - -The above exception was the direct cause of the following exception: - -cls = <class '_pytest.runner.CallInfo'> -func = <function call_and_report.<locals>.<lambda> at 0x7f651747b550> -when = 'call' -reraise = (<class '_pytest.outcomes.Exit'>, <class 'KeyboardInterrupt'>) - - @classmethod - def from_call( - cls, - func: Callable[[], TResult], - when: Literal["collect", "setup", "call", "teardown"], - reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, - ) -> CallInfo[TResult]: - """Call func, wrapping the result in a CallInfo. - - :param func: - The function to call. Called without arguments. - :type func: Callable[[], _pytest.runner.TResult] - :param when: - The phase in which the function is called. - :param reraise: - Exception or exceptions that shall propagate if raised by the - function, instead of being wrapped in the CallInfo. - """ - excinfo = None - start = timing.time() - precise_start = timing.perf_counter() - try: -> result: TResult | None = func() - -.pixi/envs/default/lib/python3.8/site-packages/_pytest/runner.py:341: -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -.pixi/envs/default/lib/python3.8/site-packages/_pytest/runner.py:242: in <lambda> - lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise -.pixi/envs/default/lib/python3.8/site-packages/pluggy/_hooks.py:513: in __call__ - return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) -.pixi/envs/default/lib/python3.8/site-packages/pluggy/_manager.py:120: in _hookexec - return self._inner_hookexec(hook_name, methods, kwargs, firstresult) -.pixi/envs/default/lib/python3.8/site-packages/_pytest/threadexception.py:92: in pytest_runtest_call - yield from thread_exception_runtest_hook() -.pixi/envs/default/lib/python3.8/site-packages/_pytest/threadexception.py:68: in thread_exception_runtest_hook - yield -.pixi/envs/default/lib/python3.8/site-packages/_pytest/unraisableexception.py:95: in pytest_runtest_call - yield from unraisable_exception_runtest_hook() -.pixi/envs/default/lib/python3.8/site-packages/_pytest/unraisableexception.py:70: in unraisable_exception_runtest_hook - yield -.pixi/envs/default/lib/python3.8/site-packages/_pytest/logging.py:846: in pytest_runtest_call - yield from self._runtest_for(item, "call") -.pixi/envs/default/lib/python3.8/site-packages/_pytest/logging.py:829: in _runtest_for - yield -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ - -self = <CaptureManager _method='no' _global_capturing=<MultiCapture out=None err=None in_=None _state='suspended' _in_suspended=False> _capture_fixture=None> -item = <Function test_stop_iteration_direct> - - @hookimpl(wrapper=True) - def pytest_runtest_call(self, item: Item) -> Generator[None]: - with self.item_capture("call", item): -> return (yield) -E RuntimeError: generator raised StopIteration - -.pixi/envs/default/lib/python3.8/site-packages/_pytest/capture.py:880: RuntimeErrordef test_generator_exit_direct(): - # Directly raise GeneratorExit exception -> raise GeneratorExit() -E GeneratorExit - -tests/test_math_utils.py:107: GeneratorExitdef test_recursion_limit(): - # Lower recursion limit to force RecursionError on deep recursion - original_limit = sys.getrecursionlimit() -> sys.setrecursionlimit(50) -E RecursionError: cannot set the recursion limit to 50 at the recursion depth 37: the limit is too low - -tests/test_math_utils.py:112: RecursionErrordef test_malformed_code(): - # SyntaxError when executing malformed Python code -> exec("def bad(:\n pass") -E File "<string>", line 1 -E def bad(: -E ^ -E SyntaxError: invalid syntax - -tests/test_math_utils.py:122: SyntaxErrordef test_sys_exit(): - # Simulate SystemExit via sys.exit -> sys.exit(1) -E SystemExit: 1 - -tests/test_math_utils.py:126: SystemExitdef test_broken_function(): - # Simulate broken function raising TypeError - def broken_func(*args, **kwargs): - raise TypeError("Broken function") -> broken_func() - -tests/test_math_utils.py:132: -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ - -args = (), kwargs = {} - - def broken_func(*args, **kwargs): -> raise TypeError("Broken function") -E TypeError: Broken function - -tests/test_math_utils.py:131: TypeErrordef test_import_error_patch(): - # Patch import to simulate ImportError on specific module - original_import = __import__ - def fake_import(name, *args, **kwargs): - if name == "fake_module": - raise ImportError("Simulated ImportError") - return original_import(name, *args, **kwargs) - import builtins - builtins.__import__, old_import = fake_import, builtins.__import__ - try: -> __import__("fake_module") - -tests/test_math_utils.py:144: -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ - -name = 'fake_module', args = (), kwargs = {} - - def fake_import(name, *args, **kwargs): - if name == "fake_module": -> raise ImportError("Simulated ImportError") -E ImportError: Simulated ImportError - -tests/test_math_utils.py:139: ImportErrordef test_module_not_found_error(): - # Raises ModuleNotFoundError (subclass of ImportError) for missing module -> importlib.import_module("non_existent_module_xyz") - -tests/test_math_utils.py:150: -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -.pixi/envs/default/lib/python3.8/importlib/__init__.py:127: in import_module - return _bootstrap._gcd_import(name[level:], package, level) -<frozen importlib._bootstrap>:1014: in _gcd_import - ??? -<frozen importlib._bootstrap>:991: in _find_and_load - ??? -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ - -name = 'non_existent_module_xyz' -import_ = <function _gcd_import at 0x7f651bfa74c0> - -> ??? -E ModuleNotFoundError: No module named 'non_existent_module_xyz' - -<frozen importlib._bootstrap>:973: ModuleNotFoundErrordef test_uppercase_type_error(): - # TypeError when input is None (invalid input) -> uppercase(None) - -tests/test_string_utils.py:14: -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ - -s = None - - def uppercase(s): - if s is None: -> raise TypeError("Input cannot be None") -E TypeError: Input cannot be None - -functions/string_utils.py:3: TypeErrordef test_unicode_decode_error(): - # UnicodeDecodeError when decoding invalid byte sequence -> b'\xff'.decode('utf-8') -E UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 0: invalid start byte - -tests/test_string_utils.py:26: UnicodeDecodeErrordef test_unicode_decode_surrogateescape(): - # UnicodeDecodeError with strict error handler on invalid byte -> b"\x80".decode("utf-8", errors="strict") -E UnicodeDecodeError: 'utf-8' codec can't decode byte 0x80 in position 0: invalid start byte - -tests/test_string_utils.py:30: UnicodeDecodeError \ No newline at end of file