CI: update test report and coverage files

This commit is contained in:
ci-bot
2025-07-15 14:08:32 +00:00
parent b3de9ffeee
commit 705e5515e4
3 changed files with 240 additions and 294 deletions
File diff suppressed because it is too large Load Diff
File diff suppressed because one or more lines are too long
+15 -33
View File
@@ -1,7 +1,7 @@
============================= test session starts ==============================
platform linux -- Python 3.8.20, pytest-8.3.4, pluggy-1.5.0
rootdir: /workspace/tligui_y/slic
plugins: metadata-3.1.1, allure-pytest-2.13.5, cov-5.0.0, html-4.1.1, json-report-1.5.0, md-report-0.6.2
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
@@ -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 0x7fd64692daf0>
monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fca802a9f10>
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 0x7fd64691c760>
monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fca80336160>
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 = <MagicMock name='open' spec='builtin_function_or_method' id='140558283687632'>
self = <MagicMock name='open' spec='builtin_function_or_method' id='140507716286352'>
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 0x7fd642ca8640>
monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fca802a9f10>
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 = <class '_pytest.runner.CallInfo'>
func = <function call_and_report.<locals>.<lambda> at 0x7fd642c8c9d0>
func = <function call_and_report.<locals>.<lambda> at 0x7fca807fe9d0>
when = 'call'
reraise = (<class '_pytest.outcomes.Exit'>, <class 'KeyboardInterrupt'>)
@@ -416,38 +416,20 @@ args = (), kwargs = {}
E TypeError: Broken function
tests/test_math_utils.py:123: TypeError
___________________________ test_import_error_patch ____________________________
______________________________ test_import_error _______________________________
def test_import_error_patch():
# Patch import to simulate ImportError on specific module
original_import = __import__
def fake_import(name, *args, **kwargs):
if name == "fake_module":
raise ImportError("Simulated ImportError")
return original_import(name, *args, **kwargs)
import builtins
builtins.__import__, old_import = fake_import, builtins.__import__
try:
> __import__("fake_module")
def test_import_error():
> raise ImportError("Simulated ImportError")
E ImportError: Simulated ImportError
tests/test_math_utils.py:136:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
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:131: 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:142:
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)
@@ -458,7 +440,7 @@ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
name = 'non_existent_module_xyz'
import_ = <function _gcd_import at 0x7fd6475754c0>
import_ = <function _gcd_import at 0x7fca84f1e4c0>
> ???
E ModuleNotFoundError: No module named 'non_existent_module_xyz'
@@ -541,7 +523,7 @@ FAILED tests/test_math_utils.py::test_malformed_code - File "<string>", line 1
SyntaxError: invalid syntax
FAILED tests/test_math_utils.py::test_sys_exit - SystemExit: 1
FAILED tests/test_math_utils.py::test_broken_function - TypeError: Broken function
FAILED tests/test_math_utils.py::test_import_error_patch - ImportError: Simulated ImportError
FAILED tests/test_math_utils.py::test_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
@@ -551,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.74s =========
======== 31 failed, 15 passed, 2 xfailed, 1 warning, 2 errors in 0.71s =========