hosts/tests
phg 1c8396f020 Add comprehensive tests for filtering and import/export functionality
- Created `test_filters.py` to test the EntryFilter and FilterOptions classes, covering default values, custom values, filtering by status, DNS type, resolution status, and search functionality.
- Implemented tests for combined filters and edge cases in filtering.
- Added `test_import_export.py` to test the ImportExportService class, including exporting to hosts, JSON, and CSV formats, as well as importing from these formats.
- Included tests for handling invalid formats, missing required columns, and warnings during import.
- Updated `uv.lock` to include `pytest-asyncio` as a dependency for asynchronous testing.
2025-08-18 10:32:52 +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_add_entry_modal.py Add comprehensive tests for filtering and import/export functionality 2025-08-18 10:32:52 +02:00
test_commands.py Implement command pattern for undo/redo functionality in HostsManager 2025-08-17 21:30:01 +02:00
test_config.py Refactor tests for PermissionManager, HostsManager, HostEntry, HostsFile, and HostsParser 2025-08-14 17:32:02 +02:00
test_config_modal.py Refactor tests for PermissionManager, HostsManager, HostEntry, HostsFile, and HostsParser 2025-08-14 17:32:02 +02:00
test_dns.py Add comprehensive tests for filtering and import/export functionality 2025-08-18 10:32:52 +02:00
test_filters.py Add comprehensive tests for filtering and import/export functionality 2025-08-18 10:32:52 +02:00
test_import_export.py Add comprehensive tests for filtering and import/export functionality 2025-08-18 10:32:52 +02:00
test_main.py Refactor tests for HostsManagerApp: update status verification to use footer instead of subtitle for improved accuracy and clarity. 2025-08-17 21:37:06 +02:00
test_manager.py Enhance entry addition process: implement immediate file save after adding an entry and handle save failure by removing the entry for improved reliability. 2025-08-17 19:26:30 +02:00
test_models.py Refactor tests for PermissionManager, HostsManager, HostEntry, HostsFile, and HostsParser 2025-08-14 17:32:02 +02:00
test_parser.py Refactor tests for PermissionManager, HostsManager, HostEntry, HostsFile, and HostsParser 2025-08-14 17:32:02 +02:00
test_save_confirmation_modal.py Refactor tests for PermissionManager, HostsManager, HostEntry, HostsFile, and HostsParser 2025-08-14 17:32:02 +02:00