hosts/tests
phg 1b57be2cbf Implement HostsManager for managing hosts file edits with permission handling
- Added PermissionManager class for managing sudo permissions.
- Introduced HostsManager class for high-level operations on hosts file.
- Implemented methods for entering/exiting edit mode, toggling entries, moving entries, updating entries, saving the hosts file, and restoring backups.
- Integrated permission validation and backup creation during edit operations.
- Enhanced main application to support edit mode and associated actions.
- Added tests for PermissionManager and HostsManager to ensure functionality and error handling.
2025-07-29 22:43:01 +02:00
..
__init__.py Add unit tests for HostEntry and HostsFile models, and implement HostsParser tests 2025-07-29 14:52:31 +02:00
test_config.py Add comprehensive tests for configuration management and main TUI components 2025-07-29 21:14:29 +02:00
test_config_modal.py Add comprehensive tests for configuration management and main TUI components 2025-07-29 21:14:29 +02:00
test_main.py Implement HostsManager for managing hosts file edits with permission handling 2025-07-29 22:43:01 +02:00
test_manager.py Implement HostsManager for managing hosts file edits with permission handling 2025-07-29 22:43:01 +02:00
test_models.py Add unit tests for HostEntry and HostsFile models, and implement HostsParser tests 2025-07-29 14:52:31 +02:00
test_parser.py Add unit tests for HostEntry and HostsFile models, and implement HostsParser tests 2025-07-29 14:52:31 +02:00