Commit Graph
4 Commits
Author SHA1 Message Date
xixu-me 654d9f1666 Improve cleanup and exception handling in tests
Enhanced cleanup logic in `temp_dir` fixture to handle Windows-specific file locking issues. Updated tests to ensure suppressed exceptions during context manager exit and added manual cleanup for mocked objects to prevent resource leaks.
2025-06-02 20:23:09 +08:00
xixu-me 94b7a5b31a Add error handling and extractall method in TzstArchive
Enhanced the TzstArchive class with improved error handling for cleanup and file addition operations. Introduced a new extractall method with filtering options for secure extraction. Updated tests to reflect changes in extraction behavior and error handling.
2025-06-02 19:43:50 +08:00
xixu-me 1d98650d3b Refactor test cases for clarity and consistency
Updated test cases in `test_cli_missing_lines.py`, `test_core_missing_lines.py`, and `test_core_missing_lines_fixed.py` to improve readability and consistency. Changes include replacing redundant comments, simplifying code structure, and ensuring proper function usage (e.g., `_validate_files` instead of `validate_files`).
2025-06-02 17:09:03 +08:00
xixu-me 1cad021539 Add comprehensive test cases for CLI and core
Introduced new test files to improve coverage for CLI and core functionalities. Added edge case tests for CLI commands, conftest fixtures, and core archive handling, including error handling, streaming mode, and verbose listing.
2025-06-02 16:39:04 +08:00