CI: update test report and coverage files
This commit is contained in:
+302
-302
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
@@ -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: allure-pytest-2.13.5, cov-5.0.0, html-4.1.1, metadata-3.1.1, json-report-1.5.0, md-report-0.6.2
|
||||
plugins: metadata-3.1.1, html-4.1.1, cov-5.0.0, allure-pytest-2.13.5, md-report-0.6.2, json-report-1.5.0
|
||||
collected 50 items / 2 errors
|
||||
|
||||
tests/test_io_utils.py ..FFFFFF.F
|
||||
@@ -76,7 +76,7 @@ E FileNotFoundError: [Errno 2] No such file or directory: 'nonexistent.fil
|
||||
functions/io_utils.py:2: FileNotFoundError
|
||||
____________________________ test_permission_error _____________________________
|
||||
|
||||
monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f03013c15b0>
|
||||
monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f31dc781160>
|
||||
|
||||
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 0x7f03013ca8b0>
|
||||
monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f31dc4972b0>
|
||||
|
||||
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='139650882381136'>
|
||||
self = <MagicMock name='open' spec='builtin_function_or_method' id='139852170091008'>
|
||||
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 0x7f02fea9ec70>
|
||||
monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f31dc72a730>
|
||||
|
||||
def test_os_error(monkeypatch):
|
||||
# Patch os.remove to raise OSError simulating filesystem error
|
||||
@@ -194,14 +194,14 @@ ______________________________ test_addition_fail ______________________________
|
||||
E assert 4 == 5
|
||||
E + where 4 = addition(2, 2)
|
||||
|
||||
tests/test_math_utils.py:50: AssertionError
|
||||
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:54:
|
||||
tests/test_math_utils.py:55:
|
||||
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
|
||||
|
||||
a = 1, b = 0
|
||||
@@ -218,7 +218,7 @@ ______________________________ test_runtime_error ______________________________
|
||||
> raise RuntimeError("Forced runtime error")
|
||||
E RuntimeError: Forced runtime error
|
||||
|
||||
tests/test_math_utils.py:63: RuntimeError
|
||||
tests/test_math_utils.py:64: RuntimeError
|
||||
______________________________ test_memory_error _______________________________
|
||||
|
||||
def test_memory_error():
|
||||
@@ -226,7 +226,7 @@ ______________________________ test_memory_error _______________________________
|
||||
> raise MemoryError("Simulated memory error")
|
||||
E MemoryError: Simulated memory error
|
||||
|
||||
tests/test_math_utils.py:67: MemoryError
|
||||
tests/test_math_utils.py:68: MemoryError
|
||||
______________________________ test_timeout_error ______________________________
|
||||
|
||||
def test_timeout_error():
|
||||
@@ -234,7 +234,7 @@ ______________________________ test_timeout_error ______________________________
|
||||
> raise TimeoutError("Simulated timeout error")
|
||||
E TimeoutError: Simulated timeout error
|
||||
|
||||
tests/test_math_utils.py:71: TimeoutError
|
||||
tests/test_math_utils.py:72: TimeoutError
|
||||
_____________________________ test_recursion_error _____________________________
|
||||
|
||||
def test_recursion_error():
|
||||
@@ -243,11 +243,11 @@ _____________________________ test_recursion_error _____________________________
|
||||
return recursive()
|
||||
> recursive()
|
||||
|
||||
tests/test_math_utils.py:77:
|
||||
tests/test_math_utils.py:78:
|
||||
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
|
||||
tests/test_math_utils.py:76: in recursive
|
||||
tests/test_math_utils.py:77: in recursive
|
||||
return recursive()
|
||||
tests/test_math_utils.py:76: in recursive
|
||||
tests/test_math_utils.py:77: in recursive
|
||||
return recursive()
|
||||
E RecursionError: maximum recursion depth exceeded
|
||||
!!! Recursion detected (same locals & position)
|
||||
@@ -258,7 +258,7 @@ __________________________ test_floating_point_error ___________________________
|
||||
> raise FloatingPointError("Simulated floating point error")
|
||||
E FloatingPointError: Simulated floating point error
|
||||
|
||||
tests/test_math_utils.py:81: FloatingPointError
|
||||
tests/test_math_utils.py:82: FloatingPointError
|
||||
_________________________ test_floating_point_overflow _________________________
|
||||
|
||||
def test_floating_point_overflow():
|
||||
@@ -266,7 +266,7 @@ _________________________ test_floating_point_overflow _________________________
|
||||
> math.exp(1000)
|
||||
E OverflowError: math range error
|
||||
|
||||
tests/test_math_utils.py:85: OverflowError
|
||||
tests/test_math_utils.py:86: OverflowError
|
||||
_______________________________ test_value_error _______________________________
|
||||
|
||||
def test_value_error():
|
||||
@@ -274,7 +274,7 @@ _______________________________ test_value_error _______________________________
|
||||
> int("invalid")
|
||||
E ValueError: invalid literal for int() with base 10: 'invalid'
|
||||
|
||||
tests/test_math_utils.py:89: ValueError
|
||||
tests/test_math_utils.py:90: ValueError
|
||||
_______________________________ test_type_error ________________________________
|
||||
|
||||
def test_type_error():
|
||||
@@ -282,7 +282,7 @@ _______________________________ test_type_error ________________________________
|
||||
> sum(5)
|
||||
E TypeError: 'int' object is not iterable
|
||||
|
||||
tests/test_math_utils.py:93: TypeError
|
||||
tests/test_math_utils.py:94: TypeError
|
||||
___________________________ test_unhandled_exception ___________________________
|
||||
|
||||
def test_unhandled_exception():
|
||||
@@ -290,7 +290,7 @@ ___________________________ test_unhandled_exception ___________________________
|
||||
> raise Exception("Generic unhandled exception")
|
||||
E Exception: Generic unhandled exception
|
||||
|
||||
tests/test_math_utils.py:97: Exception
|
||||
tests/test_math_utils.py:98: Exception
|
||||
______________________________ test_custom_error _______________________________
|
||||
|
||||
def test_custom_error():
|
||||
@@ -298,7 +298,7 @@ ______________________________ test_custom_error _______________________________
|
||||
> raise CustomError("Custom error simulation")
|
||||
E test_math_utils.CustomError: Custom error simulation
|
||||
|
||||
tests/test_math_utils.py:101: CustomError
|
||||
tests/test_math_utils.py:102: CustomError
|
||||
__________________________ test_stop_iteration_direct __________________________
|
||||
|
||||
def test_stop_iteration_direct():
|
||||
@@ -306,12 +306,12 @@ __________________________ test_stop_iteration_direct __________________________
|
||||
> raise StopIteration()
|
||||
E StopIteration
|
||||
|
||||
tests/test_math_utils.py:105: StopIteration
|
||||
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 0x7f030096d9d0>
|
||||
func = <function call_and_report.<locals>.<lambda> at 0x7f31dee5e550>
|
||||
when = 'call'
|
||||
reraise = (<class '_pytest.outcomes.Exit'>, <class 'KeyboardInterrupt'>)
|
||||
|
||||
@@ -378,7 +378,7 @@ __________________________ test_generator_exit_direct __________________________
|
||||
> raise GeneratorExit()
|
||||
E GeneratorExit
|
||||
|
||||
tests/test_math_utils.py:109: GeneratorExit
|
||||
tests/test_math_utils.py:110: GeneratorExit
|
||||
_____________________________ test_recursion_limit _____________________________
|
||||
|
||||
def test_recursion_limit():
|
||||
@@ -387,7 +387,7 @@ _____________________________ test_recursion_limit _____________________________
|
||||
> 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:114: RecursionError
|
||||
tests/test_math_utils.py:115: RecursionError
|
||||
_____________________________ test_malformed_code ______________________________
|
||||
|
||||
def test_malformed_code():
|
||||
@@ -398,7 +398,7 @@ E def bad(:
|
||||
E ^
|
||||
E SyntaxError: invalid syntax
|
||||
|
||||
tests/test_math_utils.py:124: SyntaxError
|
||||
tests/test_math_utils.py:125: SyntaxError
|
||||
________________________________ test_sys_exit _________________________________
|
||||
|
||||
def test_sys_exit():
|
||||
@@ -406,7 +406,7 @@ ________________________________ test_sys_exit _________________________________
|
||||
> sys.exit(1)
|
||||
E SystemExit: 1
|
||||
|
||||
tests/test_math_utils.py:128: SystemExit
|
||||
tests/test_math_utils.py:129: SystemExit
|
||||
_____________________________ test_broken_function _____________________________
|
||||
|
||||
def test_broken_function():
|
||||
@@ -415,7 +415,7 @@ _____________________________ test_broken_function _____________________________
|
||||
raise TypeError("Broken function")
|
||||
> broken_func()
|
||||
|
||||
tests/test_math_utils.py:134:
|
||||
tests/test_math_utils.py:135:
|
||||
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
|
||||
|
||||
args = (), kwargs = {}
|
||||
@@ -424,7 +424,7 @@ args = (), kwargs = {}
|
||||
> raise TypeError("Broken function")
|
||||
E TypeError: Broken function
|
||||
|
||||
tests/test_math_utils.py:133: TypeError
|
||||
tests/test_math_utils.py:134: TypeError
|
||||
___________________________ test_import_error_patch ____________________________
|
||||
|
||||
def test_import_error_patch():
|
||||
@@ -439,7 +439,7 @@ ___________________________ test_import_error_patch ____________________________
|
||||
try:
|
||||
> __import__("fake_module")
|
||||
|
||||
tests/test_math_utils.py:146:
|
||||
tests/test_math_utils.py:147:
|
||||
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
|
||||
|
||||
name = 'fake_module', args = (), kwargs = {}
|
||||
@@ -449,14 +449,14 @@ name = 'fake_module', args = (), kwargs = {}
|
||||
> raise ImportError("Simulated ImportError")
|
||||
E ImportError: Simulated ImportError
|
||||
|
||||
tests/test_math_utils.py:141: ImportError
|
||||
tests/test_math_utils.py:142: 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:152:
|
||||
tests/test_math_utils.py:153:
|
||||
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
|
||||
.pixi/envs/default/lib/python3.8/importlib/__init__.py:127: in import_module
|
||||
return _bootstrap._gcd_import(name[level:], package, level)
|
||||
@@ -467,7 +467,7 @@ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
|
||||
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
|
||||
|
||||
name = 'non_existent_module_xyz'
|
||||
import_ = <function _gcd_import at 0x7f0302ff34c0>
|
||||
import_ = <function _gcd_import at 0x7f31e10404c0>
|
||||
|
||||
> ???
|
||||
E ModuleNotFoundError: No module named 'non_existent_module_xyz'
|
||||
@@ -561,4 +561,4 @@ ERROR tests/test_collector_error.py
|
||||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! KeyboardInterrupt !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
||||
/workspace/tligui_y/slic/tests/test_string_utils.py:43: KeyboardInterrupt
|
||||
(to show a full traceback on KeyboardInterrupt use --full-trace)
|
||||
======== 32 failed, 15 passed, 2 xfailed, 1 warning, 2 errors in 0.75s =========
|
||||
======== 32 failed, 15 passed, 2 xfailed, 1 warning, 2 errors in 0.74s =========
|
||||
|
||||
Reference in New Issue
Block a user