diff --git a/ci-reports/markdown/TEST-REPORT.md b/ci-reports/markdown/TEST-REPORT.md index 464a279c..88ef7df8 100644 --- a/ci-reports/markdown/TEST-REPORT.md +++ b/ci-reports/markdown/TEST-REPORT.md @@ -1,12 +1,2694 @@ # ๐Ÿงช Test Report -*Generated on 2025-07-14 10:06:49* +*Generated on 2025-07-14 10:49:27* ## ๐Ÿ“‹ Summary -- **Total**: `0` +- **Failed**: `15` +- **Passed**: `13` +- **Xfailed**: `1` +- **Total**: `29` - **Collected**: `44` -- **Total Duration**: `0.268`s +- **Total Duration**: `0.541`s ## ๐Ÿ”Ž Tests +
+โŒ Failed (15) + +
+๐Ÿ“ test_io_utils.py + +
+๐Ÿ”ง Function: `test_read_file` + +
+โŒ #1 + +- **Status:** โŒ `failed` +- **Duration:** `0.000438` s +- **Severity:** `normal` + +### ๐Ÿ”ง Setup Phase + +
+๐Ÿ“Œ Duration + +``` +0.0037692569894716144 +``` +
+ +
+๐Ÿ“Œ Outcome + +``` +passed +``` +
+ + +### ๐Ÿ”ง Call Phase + +
+๐Ÿ“Œ Duration + +``` +0.0004380750469863415 +``` +
+ +
+๐Ÿ“Œ Outcome + +``` +failed +``` +
+ +
+๐Ÿ“Œ Crash + +``` +path: /workspace/tligui_y/slic/tests/test_io_utils.py +lineno: 14 +message: NameError: name 'io_utils' is not defined +``` +
+ +
+๐Ÿ“Œ Traceback + +``` +path: tests/test_io_utils.py +lineno: 14 +message: NameError +``` +
+ +
+๐Ÿ“Œ Longrepr + +``` +tmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/test_read_file0') + + def test_read_file(tmp_path): + # Write and read file, normal operation + file = tmp_path / "test.txt" + file.write_text("hello") +> content = io_utils.read_file(str(file)) +E NameError: name 'io_utils' is not defined + +tests/test_io_utils.py:14: NameError +``` +
+ + +### ๐Ÿ”ง Teardown Phase + +
+๐Ÿ“Œ Duration + +``` +0.0012364560971036553 +``` +
+ +
+๐Ÿ“Œ Outcome + +``` +passed +``` +
+ +
+ +
+ +
+๐Ÿ”ง Function: `test_write_file` + +
+โŒ #2 + +- **Status:** โŒ `failed` +- **Duration:** `0.000257` s +- **Severity:** `normal` + +### ๐Ÿ”ง Setup Phase + +
+๐Ÿ“Œ Duration + +``` +0.0006496669957414269 +``` +
+ +
+๐Ÿ“Œ Outcome + +``` +passed +``` +
+ + +### ๐Ÿ”ง Call Phase + +
+๐Ÿ“Œ Duration + +``` +0.0002567790215834975 +``` +
+ +
+๐Ÿ“Œ Outcome + +``` +failed +``` +
+ +
+๐Ÿ“Œ Crash + +``` +path: /workspace/tligui_y/slic/tests/test_io_utils.py +lineno: 20 +message: NameError: name 'io_utils' is not defined +``` +
+ +
+๐Ÿ“Œ Traceback + +``` +path: tests/test_io_utils.py +lineno: 20 +message: NameError +``` +
+ +
+๐Ÿ“Œ Longrepr + +``` +tmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/test_write_file0') + + def test_write_file(tmp_path): + # Write content to file and verify write success + file = tmp_path / "test_write.txt" +> io_utils.write_file(str(file), "data") +E NameError: name 'io_utils' is not defined + +tests/test_io_utils.py:20: NameError +``` +
+ + +### ๐Ÿ”ง Teardown Phase + +
+๐Ÿ“Œ Duration + +``` +0.0006955859716981649 +``` +
+ +
+๐Ÿ“Œ Outcome + +``` +passed +``` +
+ +
+ +
+ +
+๐Ÿ”ง Function: `test_cause_io_error` + +
+โŒ #3 + +- **Status:** โŒ `failed` +- **Duration:** `0.000305` s +- **Severity:** `normal` + +### ๐Ÿ”ง Setup Phase + +
+๐Ÿ“Œ Duration + +``` +0.0001864719670265913 +``` +
+ +
+๐Ÿ“Œ Outcome + +``` +passed +``` +
+ + +### ๐Ÿ”ง Call Phase + +
+๐Ÿ“Œ Duration + +``` +0.0003045720513910055 +``` +
+ +
+๐Ÿ“Œ Outcome + +``` +failed +``` +
+ +
+๐Ÿ“Œ Crash + +``` +path: /workspace/tligui_y/slic/tests/test_io_utils.py +lineno: 26 +message: NameError: name 'io_utils' is not defined +``` +
+ +
+๐Ÿ“Œ Traceback + +``` +path: tests/test_io_utils.py +lineno: 26 +message: NameError +``` +
+ +
+๐Ÿ“Œ Longrepr + +``` +def test_cause_io_error(): + # Raises manual IOError to simulate IO failure + with pytest.raises(IOError): +> io_utils.cause_io_error() +E NameError: name 'io_utils' is not defined + +tests/test_io_utils.py:26: NameError +``` +
+ + +### ๐Ÿ”ง Teardown Phase + +
+๐Ÿ“Œ Duration + +``` +0.0002345299581065774 +``` +
+ +
+๐Ÿ“Œ Outcome + +``` +passed +``` +
+ +
+ +
+ +
+๐Ÿ”ง Function: `test_file_not_found` + +
+โŒ #4 + +- **Status:** โŒ `failed` +- **Duration:** `0.000186` s +- **Severity:** `normal` + +### ๐Ÿ”ง Setup Phase + +
+๐Ÿ“Œ Duration + +``` +0.00018098996952176094 +``` +
+ +
+๐Ÿ“Œ Outcome + +``` +passed +``` +
+ + +### ๐Ÿ”ง Call Phase + +
+๐Ÿ“Œ Duration + +``` +0.00018639990594238043 +``` +
+ +
+๐Ÿ“Œ Outcome + +``` +failed +``` +
+ +
+๐Ÿ“Œ Crash + +``` +path: /workspace/tligui_y/slic/tests/test_io_utils.py +lineno: 31 +message: NameError: name 'io_utils' is not defined +``` +
+ +
+๐Ÿ“Œ Traceback + +``` +path: tests/test_io_utils.py +lineno: 31 +message: NameError +``` +
+ +
+๐Ÿ“Œ Longrepr + +``` +def test_file_not_found(): + # Reading non-existing file raises FileNotFoundError + with pytest.raises(FileNotFoundError): +> io_utils.read_file("nonexistent.file") +E NameError: name 'io_utils' is not defined + +tests/test_io_utils.py:31: NameError +``` +
+ + +### ๐Ÿ”ง Teardown Phase + +
+๐Ÿ“Œ Duration + +``` +0.00023322494234889746 +``` +
+ +
+๐Ÿ“Œ Outcome + +``` +passed +``` +
+ +
+ +
+ +
+๐Ÿ”ง Function: `test_permission_error` + +
+โŒ #5 + +- **Status:** โŒ `failed` +- **Duration:** `0.000226` s +- **Severity:** `normal` + +### ๐Ÿ”ง Setup Phase + +
+๐Ÿ“Œ Duration + +``` +0.0003613000735640526 +``` +
+ +
+๐Ÿ“Œ Outcome + +``` +passed +``` +
+ + +### ๐Ÿ”ง Call Phase + +
+๐Ÿ“Œ Duration + +``` +0.00022635399363934994 +``` +
+ +
+๐Ÿ“Œ Outcome + +``` +failed +``` +
+ +
+๐Ÿ“Œ Crash + +``` +path: /workspace/tligui_y/slic/tests/test_io_utils.py +lineno: 39 +message: NameError: name 'io_utils' is not defined +``` +
+ +
+๐Ÿ“Œ Traceback + +``` +path: tests/test_io_utils.py +lineno: 39 +message: NameError +``` +
+ +
+๐Ÿ“Œ Longrepr + +``` +monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f0275a5b7c0> + + 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) + with pytest.raises(PermissionError): +> io_utils.read_file("anyfile.txt") +E NameError: name 'io_utils' is not defined + +tests/test_io_utils.py:39: NameError +``` +
+ + +### ๐Ÿ”ง Teardown Phase + +
+๐Ÿ“Œ Duration + +``` +0.00066454301122576 +``` +
+ +
+๐Ÿ“Œ Outcome + +``` +passed +``` +
+ +
+ +
+ +
+๐Ÿ”ง Function: `test_write_file_readonly` + +
+โŒ #9 + +- **Status:** โŒ `failed` +- **Duration:** `0.000994` s +- **Severity:** `normal` + +### ๐Ÿ”ง Setup Phase + +
+๐Ÿ“Œ Duration + +``` +0.0006689870497211814 +``` +
+ +
+๐Ÿ“Œ Outcome + +``` +passed +``` +
+ + +### ๐Ÿ”ง Call Phase + +
+๐Ÿ“Œ Duration + +``` +0.0009943170007318258 +``` +
+ +
+๐Ÿ“Œ Outcome + +``` +failed +``` +
+ +
+๐Ÿ“Œ Crash + +``` +path: /workspace/tligui_y/slic/tests/test_io_utils.py +lineno: 72 +message: Failed: DID NOT RAISE +``` +
+ +
+๐Ÿ“Œ Traceback + +``` +path: tests/test_io_utils.py +lineno: 72 +message: Failed +``` +
+ +
+๐Ÿ“Œ Longrepr + +``` +tmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/test_write_file_readonly0') + + def test_write_file_readonly(tmp_path): + # Writing to read-only file raises PermissionError + file = tmp_path / "readonly.txt" + file.write_text("data") + os.chmod(file, 0o444) + with pytest.raises(PermissionError): + with open(file, "w") as f: +> f.write("new content") +E Failed: DID NOT RAISE + +tests/test_io_utils.py:72: Failed +``` +
+ + +### ๐Ÿ”ง Teardown Phase + +
+๐Ÿ“Œ Duration + +``` +0.0006725600687786937 +``` +
+ +
+๐Ÿ“Œ Outcome + +``` +passed +``` +
+ +
+ +
+ +
+ +
+๐Ÿ“ test_math_utils.py + +
+๐Ÿ”ง Function: `test_broken` + +
+โŒ #11 + +- **Status:** โŒ `failed` +- **Duration:** `0.000182` s +- **Severity:** `normal` + +### ๐Ÿ”ง Setup Phase + +
+๐Ÿ“Œ Duration + +``` +0.00017980404663830996 +``` +
+ +
+๐Ÿ“Œ Outcome + +``` +passed +``` +
+ + +### ๐Ÿ”ง Call Phase + +
+๐Ÿ“Œ Duration + +``` +0.00018199696205556393 +``` +
+ +
+๐Ÿ“Œ Outcome + +``` +failed +``` +
+ +
+๐Ÿ“Œ Crash + +``` +path: /workspace/tligui_y/slic/tests/test_math_utils.py +lineno: 15 +message: NameError: name 'want_the_test_to_fail' is not defined +``` +
+ +
+๐Ÿ“Œ Traceback + +``` +path: tests/test_math_utils.py +lineno: 15 +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:15: NameError +``` +
+ + +### ๐Ÿ”ง Teardown Phase + +
+๐Ÿ“Œ Duration + +``` +0.00023101200349628925 +``` +
+ +
+๐Ÿ“Œ Outcome + +``` +passed +``` +
+ +
+ +
+ +
+๐Ÿ”ง Function: `test_call_missing_function` + +
+โŒ #12 + +- **Status:** โŒ `failed` +- **Duration:** `0.000188` s +- **Severity:** `normal` + +### ๐Ÿ”ง Setup Phase + +
+๐Ÿ“Œ Duration + +``` +0.00018848199397325516 +``` +
+ +
+๐Ÿ“Œ Outcome + +``` +passed +``` +
+ + +### ๐Ÿ”ง Call Phase + +
+๐Ÿ“Œ Duration + +``` +0.00018768804147839546 +``` +
+ +
+๐Ÿ“Œ Outcome + +``` +failed +``` +
+ +
+๐Ÿ“Œ Crash + +``` +path: /workspace/tligui_y/slic/tests/test_math_utils.py +lineno: 20 +message: NameError: name 'math_utils' is not defined +``` +
+ +
+๐Ÿ“Œ Traceback + +``` +path: tests/test_math_utils.py +lineno: 20 +message: NameError +``` +
+ +
+๐Ÿ“Œ Longrepr + +``` +def test_call_missing_function(): + # Accessing a missing function attribute raises AttributeError + with pytest.raises(AttributeError): +> getattr(math_utils, "non_existent_function")() +E NameError: name 'math_utils' is not defined + +tests/test_math_utils.py:20: NameError +``` +
+ + +### ๐Ÿ”ง Teardown Phase + +
+๐Ÿ“Œ Duration + +``` +0.00024636799935251474 +``` +
+ +
+๐Ÿ“Œ Outcome + +``` +passed +``` +
+ +
+ +
+ +
+๐Ÿ”ง Function: `test_addition_pass` + +
+โŒ #13 + +- **Status:** โŒ `failed` +- **Duration:** `0.000175` s +- **Severity:** `normal` + +### ๐Ÿ”ง Setup Phase + +
+๐Ÿ“Œ Duration + +``` +0.00019525096286088228 +``` +
+ +
+๐Ÿ“Œ Outcome + +``` +passed +``` +
+ + +### ๐Ÿ”ง Call Phase + +
+๐Ÿ“Œ Duration + +``` +0.0001748900394886732 +``` +
+ +
+๐Ÿ“Œ Outcome + +``` +failed +``` +
+ +
+๐Ÿ“Œ Crash + +``` +path: /workspace/tligui_y/slic/tests/test_math_utils.py +lineno: 24 +message: NameError: name 'math_utils' is not defined +``` +
+ +
+๐Ÿ“Œ Traceback + +``` +path: tests/test_math_utils.py +lineno: 24 +message: NameError +``` +
+ +
+๐Ÿ“Œ Longrepr + +``` +def test_addition_pass(): + # Test passes: correct addition +> assert math_utils.addition(2, 2) == 4 +E NameError: name 'math_utils' is not defined + +tests/test_math_utils.py:24: NameError +``` +
+ + +### ๐Ÿ”ง Teardown Phase + +
+๐Ÿ“Œ Duration + +``` +0.0002345649991184473 +``` +
+ +
+๐Ÿ“Œ Outcome + +``` +passed +``` +
+ +
+ +
+ +
+๐Ÿ”ง Function: `test_addition_fail` + +
+โŒ #14 + +- **Status:** โŒ `failed` +- **Duration:** `0.000176` s +- **Severity:** `normal` + +### ๐Ÿ”ง Setup Phase + +
+๐Ÿ“Œ Duration + +``` +0.00018273107707500458 +``` +
+ +
+๐Ÿ“Œ Outcome + +``` +passed +``` +
+ + +### ๐Ÿ”ง Call Phase + +
+๐Ÿ“Œ Duration + +``` +0.00017590797506272793 +``` +
+ +
+๐Ÿ“Œ Outcome + +``` +failed +``` +
+ +
+๐Ÿ“Œ Crash + +``` +path: /workspace/tligui_y/slic/tests/test_math_utils.py +lineno: 28 +message: NameError: name 'math_utils' is not defined +``` +
+ +
+๐Ÿ“Œ Traceback + +``` +path: tests/test_math_utils.py +lineno: 28 +message: NameError +``` +
+ +
+๐Ÿ“Œ Longrepr + +``` +def test_addition_fail(): + # Assertion failure: expected incorrect result +> assert math_utils.addition(2, 2) == 5 +E NameError: name 'math_utils' is not defined + +tests/test_math_utils.py:28: NameError +``` +
+ + +### ๐Ÿ”ง Teardown Phase + +
+๐Ÿ“Œ Duration + +``` +0.00024787394795566797 +``` +
+ +
+๐Ÿ“Œ Outcome + +``` +passed +``` +
+ +
+ +
+ +
+๐Ÿ”ง Function: `test_division_zero` + +
+โŒ #15 + +- **Status:** โŒ `failed` +- **Duration:** `0.000198` s +- **Severity:** `normal` + +### ๐Ÿ”ง Setup Phase + +
+๐Ÿ“Œ Duration + +``` +0.0001847789390012622 +``` +
+ +
+๐Ÿ“Œ Outcome + +``` +passed +``` +
+ + +### ๐Ÿ”ง Call Phase + +
+๐Ÿ“Œ Duration + +``` +0.00019829499069601297 +``` +
+ +
+๐Ÿ“Œ Outcome + +``` +failed +``` +
+ +
+๐Ÿ“Œ Crash + +``` +path: /workspace/tligui_y/slic/tests/test_math_utils.py +lineno: 33 +message: NameError: name 'math_utils' is not defined +``` +
+ +
+๐Ÿ“Œ Traceback + +``` +path: tests/test_math_utils.py +lineno: 33 +message: NameError +``` +
+ +
+๐Ÿ“Œ Longrepr + +``` +def test_division_zero(): + # Expect ZeroDivisionError when dividing by zero + with pytest.raises(ZeroDivisionError): +> math_utils.division(1, 0) +E NameError: name 'math_utils' is not defined + +tests/test_math_utils.py:33: NameError +``` +
+ + +### ๐Ÿ”ง Teardown Phase + +
+๐Ÿ“Œ Duration + +``` +0.0002353360177949071 +``` +
+ +
+๐Ÿ“Œ Outcome + +``` +passed +``` +
+ +
+ +
+ +
+๐Ÿ”ง Function: `test_runtime_error` + +
+โŒ #17 + +- **Status:** โŒ `failed` +- **Duration:** `0.000174` s +- **Severity:** `normal` + +### ๐Ÿ”ง Setup Phase + +
+๐Ÿ“Œ Duration + +``` +0.00018365599680691957 +``` +
+ +
+๐Ÿ“Œ Outcome + +``` +passed +``` +
+ + +### ๐Ÿ”ง Call Phase + +
+๐Ÿ“Œ Duration + +``` +0.00017368607223033905 +``` +
+ +
+๐Ÿ“Œ Outcome + +``` +failed +``` +
+ +
+๐Ÿ“Œ Crash + +``` +path: /workspace/tligui_y/slic/tests/test_math_utils.py +lineno: 42 +message: RuntimeError: Forced runtime error +``` +
+ +
+๐Ÿ“Œ Traceback + +``` +path: tests/test_math_utils.py +lineno: 42 +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:42: RuntimeError +``` +
+ + +### ๐Ÿ”ง Teardown Phase + +
+๐Ÿ“Œ Duration + +``` +0.00023267301730811596 +``` +
+ +
+๐Ÿ“Œ Outcome + +``` +passed +``` +
+ +
+ +
+ +
+๐Ÿ”ง Function: `test_unhandled_exception` + +
+โŒ #25 + +- **Status:** โŒ `failed` +- **Duration:** `0.000170` s +- **Severity:** `normal` + +### ๐Ÿ”ง Setup Phase + +
+๐Ÿ“Œ Duration + +``` +0.00019228796008974314 +``` +
+ +
+๐Ÿ“Œ Outcome + +``` +passed +``` +
+ + +### ๐Ÿ”ง Call Phase + +
+๐Ÿ“Œ Duration + +``` +0.00017015100456774235 +``` +
+ +
+๐Ÿ“Œ Outcome + +``` +failed +``` +
+ +
+๐Ÿ“Œ Crash + +``` +path: /workspace/tligui_y/slic/tests/test_math_utils.py +lineno: 83 +message: Exception: Generic unhandled exception +``` +
+ +
+๐Ÿ“Œ Traceback + +``` +path: tests/test_math_utils.py +lineno: 83 +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:83: Exception +``` +
+ + +### ๐Ÿ”ง Teardown Phase + +
+๐Ÿ“Œ Duration + +``` +0.00023224996402859688 +``` +
+ +
+๐Ÿ“Œ Outcome + +``` +passed +``` +
+ +
+ +
+ +
+๐Ÿ”ง Function: `test_stop_iteration_direct` + +
+โŒ #27 + +- **Status:** โŒ `failed` +- **Duration:** `0.000166` s +- **Severity:** `normal` + +### ๐Ÿ”ง Setup Phase + +
+๐Ÿ“Œ Duration + +``` +0.0001820940524339676 +``` +
+ +
+๐Ÿ“Œ Outcome + +``` +passed +``` +
+ + +### ๐Ÿ”ง Call Phase + +
+๐Ÿ“Œ Duration + +``` +0.00016615900676697493 +``` +
+ +
+๐Ÿ“Œ 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(): + # Directly raise StopIteration exception +> raise StopIteration() +E StopIteration + +tests/test_math_utils.py:92: StopIteration + +The above exception was the direct cause of the following exception: + +cls = +func = . at 0x7f02788cd940> +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.0004075230099260807 +``` +
+ +
+๐Ÿ“Œ Outcome + +``` +passed +``` +
+ +
+ +
+ +
+๐Ÿ”ง Function: `test_generator_exit_direct` + +
+โŒ #28 + +- **Status:** โŒ `failed` +- **Duration:** `0.000201` s +- **Severity:** `normal` + +### ๐Ÿ”ง Setup Phase + +
+๐Ÿ“Œ Duration + +``` +0.0002737219911068678 +``` +
+ +
+๐Ÿ“Œ Outcome + +``` +passed +``` +
+ + +### ๐Ÿ”ง Call Phase + +
+๐Ÿ“Œ Duration + +``` +0.00020075100474059582 +``` +
+ +
+๐Ÿ“Œ Outcome + +``` +failed +``` +
+ +
+๐Ÿ“Œ Crash + +``` +path: /workspace/tligui_y/slic/tests/test_math_utils.py +lineno: 96 +message: GeneratorExit +``` +
+ +
+๐Ÿ“Œ Traceback + +``` +path: tests/test_math_utils.py +lineno: 96 +message: GeneratorExit +``` +
+ +
+๐Ÿ“Œ Longrepr + +``` +def test_generator_exit_direct(): + # Directly raise GeneratorExit exception +> raise GeneratorExit() +E GeneratorExit + +tests/test_math_utils.py:96: GeneratorExit +``` +
+ + +### ๐Ÿ”ง Teardown Phase + +
+๐Ÿ“Œ Duration + +``` +0.0002665530191734433 +``` +
+ +
+๐Ÿ“Œ Outcome + +``` +passed +``` +
+ +
+ +
+ +
+ +
+ +
+โœ… Passed (13) + +
+๐Ÿ“ test_io_utils.py + +
+๐Ÿ”ง Function: `test_mock_open_error` + +
+โœ… #6 + +- **Status:** โœ… `passed` +- **Duration:** `0.003411` s +- **Severity:** `normal` + +### ๐Ÿ”ง Setup Phase + +
+๐Ÿ“Œ Duration + +``` +0.0003313859924674034 +``` +
+ +
+๐Ÿ“Œ Outcome + +``` +passed +``` +
+ + +### ๐Ÿ”ง Call Phase + +
+๐Ÿ“Œ Duration + +``` +0.0034108759136870503 +``` +
+ +
+๐Ÿ“Œ Outcome + +``` +passed +``` +
+ + +### ๐Ÿ”ง Teardown Phase + +
+๐Ÿ“Œ Duration + +``` +0.0008911369368433952 +``` +
+ +
+๐Ÿ“Œ Outcome + +``` +passed +``` +
+ +
+ +
+ +
+๐Ÿ”ง Function: `test_file_handle_closed_error` + +
+โœ… #7 + +- **Status:** โœ… `passed` +- **Duration:** `0.000181` s +- **Severity:** `normal` + +### ๐Ÿ”ง Setup Phase + +
+๐Ÿ“Œ Duration + +``` +0.00018344598356634378 +``` +
+ +
+๐Ÿ“Œ Outcome + +``` +passed +``` +
+ + +### ๐Ÿ”ง Call Phase + +
+๐Ÿ“Œ Duration + +``` +0.0001807810040190816 +``` +
+ +
+๐Ÿ“Œ Outcome + +``` +passed +``` +
+ + +### ๐Ÿ”ง Teardown Phase + +
+๐Ÿ“Œ Duration + +``` +0.0002148449420928955 +``` +
+ +
+๐Ÿ“Œ Outcome + +``` +passed +``` +
+ +
+ +
+ +
+๐Ÿ”ง Function: `test_os_error` + +
+โœ… #8 + +- **Status:** โœ… `passed` +- **Duration:** `0.000196` s +- **Severity:** `normal` + +### ๐Ÿ”ง Setup Phase + +
+๐Ÿ“Œ Duration + +``` +0.00034412997774779797 +``` +
+ +
+๐Ÿ“Œ Outcome + +``` +passed +``` +
+ + +### ๐Ÿ”ง Call Phase + +
+๐Ÿ“Œ Duration + +``` +0.00019602198153734207 +``` +
+ +
+๐Ÿ“Œ Outcome + +``` +passed +``` +
+ + +### ๐Ÿ”ง Teardown Phase + +
+๐Ÿ“Œ Duration + +``` +0.0006234110333025455 +``` +
+ +
+๐Ÿ“Œ Outcome + +``` +passed +``` +
+ +
+ +
+ +
+๐Ÿ”ง Function: `test_file_not_found_error` + +
+โœ… #10 + +- **Status:** โœ… `passed` +- **Duration:** `0.000200` s +- **Severity:** `normal` + +### ๐Ÿ”ง Setup Phase + +
+๐Ÿ“Œ Duration + +``` +0.00019359705038368702 +``` +
+ +
+๐Ÿ“Œ Outcome + +``` +passed +``` +
+ + +### ๐Ÿ”ง Call Phase + +
+๐Ÿ“Œ Duration + +``` +0.0002003390109166503 +``` +
+ +
+๐Ÿ“Œ Outcome + +``` +passed +``` +
+ + +### ๐Ÿ”ง Teardown Phase + +
+๐Ÿ“Œ Duration + +``` +0.00021172501146793365 +``` +
+ +
+๐Ÿ“Œ Outcome + +``` +passed +``` +
+ +
+ +
+ +
+ +
+๐Ÿ“ test_math_utils.py + +
+๐Ÿ”ง Function: `test_memory_error` + +
+โœ… #18 + +- **Status:** โœ… `passed` +- **Duration:** `0.000191` s +- **Severity:** `normal` + +### ๐Ÿ”ง Setup Phase + +
+๐Ÿ“Œ Duration + +``` +0.00018795696087181568 +``` +
+ +
+๐Ÿ“Œ Outcome + +``` +passed +``` +
+ + +### ๐Ÿ”ง Call Phase + +
+๐Ÿ“Œ Duration + +``` +0.00019109901040792465 +``` +
+ +
+๐Ÿ“Œ Outcome + +``` +passed +``` +
+ + +### ๐Ÿ”ง Teardown Phase + +
+๐Ÿ“Œ Duration + +``` +0.00019160902593284845 +``` +
+ +
+๐Ÿ“Œ Outcome + +``` +passed +``` +
+ +
+ +
+ +
+๐Ÿ”ง Function: `test_timeout_error` + +
+โœ… #19 + +- **Status:** โœ… `passed` +- **Duration:** `0.000180` s +- **Severity:** `normal` + +### ๐Ÿ”ง Setup Phase + +
+๐Ÿ“Œ Duration + +``` +0.00018414400983601809 +``` +
+ +
+๐Ÿ“Œ Outcome + +``` +passed +``` +
+ + +### ๐Ÿ”ง Call Phase + +
+๐Ÿ“Œ Duration + +``` +0.000180334085598588 +``` +
+ +
+๐Ÿ“Œ Outcome + +``` +passed +``` +
+ + +### ๐Ÿ”ง Teardown Phase + +
+๐Ÿ“Œ Duration + +``` +0.00021499092690646648 +``` +
+ +
+๐Ÿ“Œ Outcome + +``` +passed +``` +
+ +
+ +
+ +
+๐Ÿ”ง Function: `test_recursion_error` + +
+โœ… #20 + +- **Status:** โœ… `passed` +- **Duration:** `0.000894` s +- **Severity:** `normal` + +### ๐Ÿ”ง Setup Phase + +
+๐Ÿ“Œ Duration + +``` +0.000179423950612545 +``` +
+ +
+๐Ÿ“Œ Outcome + +``` +passed +``` +
+ + +### ๐Ÿ”ง Call Phase + +
+๐Ÿ“Œ Duration + +``` +0.0008943530265241861 +``` +
+ +
+๐Ÿ“Œ Outcome + +``` +passed +``` +
+ + +### ๐Ÿ”ง Teardown Phase + +
+๐Ÿ“Œ Duration + +``` +0.00020220689475536346 +``` +
+ +
+๐Ÿ“Œ Outcome + +``` +passed +``` +
+ +
+ +
+ +
+๐Ÿ”ง Function: `test_floating_point_error` + +
+โœ… #21 + +- **Status:** โœ… `passed` +- **Duration:** `0.000175` s +- **Severity:** `normal` + +### ๐Ÿ”ง Setup Phase + +
+๐Ÿ“Œ Duration + +``` +0.00019603699911385775 +``` +
+ +
+๐Ÿ“Œ Outcome + +``` +passed +``` +
+ + +### ๐Ÿ”ง Call Phase + +
+๐Ÿ“Œ Duration + +``` +0.00017490005120635033 +``` +
+ +
+๐Ÿ“Œ Outcome + +``` +passed +``` +
+ + +### ๐Ÿ”ง Teardown Phase + +
+๐Ÿ“Œ Duration + +``` +0.00019033695571124554 +``` +
+ +
+๐Ÿ“Œ Outcome + +``` +passed +``` +
+ +
+ +
+ +
+๐Ÿ”ง Function: `test_floating_point_overflow` + +
+โœ… #22 + +- **Status:** โœ… `passed` +- **Duration:** `0.000180` s +- **Severity:** `normal` + +### ๐Ÿ”ง Setup Phase + +
+๐Ÿ“Œ Duration + +``` +0.00018187204841524363 +``` +
+ +
+๐Ÿ“Œ Outcome + +``` +passed +``` +
+ + +### ๐Ÿ”ง Call Phase + +
+๐Ÿ“Œ Duration + +``` +0.0001800700556486845 +``` +
+ +
+๐Ÿ“Œ Outcome + +``` +passed +``` +
+ + +### ๐Ÿ”ง Teardown Phase + +
+๐Ÿ“Œ Duration + +``` +0.0001927969278767705 +``` +
+ +
+๐Ÿ“Œ Outcome + +``` +passed +``` +
+ +
+ +
+ +
+๐Ÿ”ง Function: `test_value_error` + +
+โœ… #23 + +- **Status:** โœ… `passed` +- **Duration:** `0.000176` s +- **Severity:** `normal` + +### ๐Ÿ”ง Setup Phase + +
+๐Ÿ“Œ Duration + +``` +0.00018067099153995514 +``` +
+ +
+๐Ÿ“Œ Outcome + +``` +passed +``` +
+ + +### ๐Ÿ”ง Call Phase + +
+๐Ÿ“Œ Duration + +``` +0.0001755179837346077 +``` +
+ +
+๐Ÿ“Œ Outcome + +``` +passed +``` +
+ + +### ๐Ÿ”ง Teardown Phase + +
+๐Ÿ“Œ Duration + +``` +0.00019247503951191902 +``` +
+ +
+๐Ÿ“Œ Outcome + +``` +passed +``` +
+ +
+ +
+ +
+๐Ÿ”ง Function: `test_type_error` + +
+โœ… #24 + +- **Status:** โœ… `passed` +- **Duration:** `0.000168` s +- **Severity:** `normal` + +### ๐Ÿ”ง Setup Phase + +
+๐Ÿ“Œ Duration + +``` +0.00016994704492390156 +``` +
+ +
+๐Ÿ“Œ Outcome + +``` +passed +``` +
+ + +### ๐Ÿ”ง Call Phase + +
+๐Ÿ“Œ Duration + +``` +0.00016761594451963902 +``` +
+ +
+๐Ÿ“Œ Outcome + +``` +passed +``` +
+ + +### ๐Ÿ”ง Teardown Phase + +
+๐Ÿ“Œ Duration + +``` +0.000188126927241683 +``` +
+ +
+๐Ÿ“Œ Outcome + +``` +passed +``` +
+ +
+ +
+ +
+๐Ÿ”ง Function: `test_custom_error` + +
+โœ… #26 + +- **Status:** โœ… `passed` +- **Duration:** `0.000186` s +- **Severity:** `normal` + +### ๐Ÿ”ง Setup Phase + +
+๐Ÿ“Œ Duration + +``` +0.0001844220096245408 +``` +
+ +
+๐Ÿ“Œ Outcome + +``` +passed +``` +
+ + +### ๐Ÿ”ง Call Phase + +
+๐Ÿ“Œ Duration + +``` +0.00018601398915052414 +``` +
+ +
+๐Ÿ“Œ Outcome + +``` +passed +``` +
+ + +### ๐Ÿ”ง Teardown Phase + +
+๐Ÿ“Œ Duration + +``` +0.00019491289276629686 +``` +
+ +
+๐Ÿ“Œ Outcome + +``` +passed +``` +
+ +
+ +
+ +
+๐Ÿ”ง Function: `test_keyboard_interrupt_direct` + +
+โœ… #29 + +- **Status:** โœ… `passed` +- **Duration:** `None` +- **Severity:** `normal` + +### ๐Ÿ”ง Setup Phase + +
+๐Ÿ“Œ Duration + +``` +0.0001925829565152526 +``` +
+ +
+๐Ÿ“Œ Outcome + +``` +passed +``` +
+ +
+ +
+ +
+ +
+ +
+โŒ Xfailed (1) + +
+๐Ÿ“ test_math_utils.py + +
+๐Ÿ”ง Function: `test_multiply_xfail` + +
+โŒ #16 + +- **Status:** โŒ `xfailed` +- **Duration:** `0.000168` s +- **Severity:** `normal` + +### ๐Ÿ”ง Setup Phase + +
+๐Ÿ“Œ Duration + +``` +0.000201432965695858 +``` +
+ +
+๐Ÿ“Œ Outcome + +``` +passed +``` +
+ + +### ๐Ÿ”ง Call Phase + +
+๐Ÿ“Œ Duration + +``` +0.00016780500300228596 +``` +
+ +
+๐Ÿ“Œ Outcome + +``` +skipped +``` +
+ +
+๐Ÿ“Œ Crash + +``` +path: /workspace/tligui_y/slic/tests/test_math_utils.py +lineno: 38 +message: NameError: name 'math_utils' is not defined +``` +
+ +
+๐Ÿ“Œ Traceback + +``` +path: tests/test_math_utils.py +lineno: 38 +message: NameError +``` +
+ +
+๐Ÿ“Œ Longrepr + +``` +@pytest.mark.xfail(reason="Expected failure") + def test_multiply_xfail(): + # Expected fail test (xfail): incorrect expected multiply result +> assert math_utils.multiply(2, 2) == 5 +E NameError: name 'math_utils' is not defined + +tests/test_math_utils.py:38: NameError +``` +
+ + +### ๐Ÿ”ง Teardown Phase + +
+๐Ÿ“Œ Duration + +``` +0.0002581499284133315 +``` +
+ +
+๐Ÿ“Œ Outcome + +``` +passed +``` +
+ +
+ +
+ +
+ +
+ ## ๐Ÿ“š Collected files
โœ… (1 tests)