imap-migration-tools/test
Javier Callico ac3307bf1d
Align names for scripts and commands (#40)
* Add comprehensive tests for IMAP email restoration functionality

- Implement tests for loading labels manifest, including both old and new formats.
- Add tests for extracting flags from the manifest.
- Create tests for parsing .eml files, including edge cases.
- Develop tests for retrieving .eml files from a directory.
- Validate configuration settings and handle missing credentials.
- Integrate tests for restoring emails from a backup, including Gmail mode and deletion of orphaned emails.
- Test progress caching and backup folder discovery.
- Ensure robust handling of email labels and flags during restoration.
- Verify that the restore process correctly interacts with a mock IMAP server.

* Add comprehensive tests for IMAP utilities and compression support

- Introduced tests for `imap_common.py` covering environment variable verification, IMAP connection handling, folder name normalization, MIME header decoding, message details extraction, duplicate detection, filename sanitization, and trash folder detection.
- Added tests for `imap_compress.py` to validate the functionality of the `_CompressedSocket` wrapper, ensuring data compression and decompression works as expected.
- Implemented integration tests to verify that compression is enabled during IMAP connection setup.
2026-02-15 08:39:37 -05:00
..
auth Align names for scripts and commands (#40) 2026-02-15 08:39:37 -05:00
core Align names for scripts and commands (#40) 2026-02-15 08:39:37 -05:00
providers Align names for scripts and commands (#40) 2026-02-15 08:39:37 -05:00
utils Align names for scripts and commands (#40) 2026-02-15 08:39:37 -05:00
conftest.py Add connection proxy wrapper for IMAP retry functionality (#34) 2026-02-10 11:06:18 -05:00
test_imap_backup.py Align names for scripts and commands (#40) 2026-02-15 08:39:37 -05:00
test_imap_compare.py Align names for scripts and commands (#40) 2026-02-15 08:39:37 -05:00
test_imap_count.py Align names for scripts and commands (#40) 2026-02-15 08:39:37 -05:00
test_imap_migrate.py Align names for scripts and commands (#40) 2026-02-15 08:39:37 -05:00
test_imap_restore.py Align names for scripts and commands (#40) 2026-02-15 08:39:37 -05:00
test_imap_retry.py Align names for scripts and commands (#40) 2026-02-15 08:39:37 -05:00
test_migrate_resume.py Align names for scripts and commands (#40) 2026-02-15 08:39:37 -05:00
test_migrate_with_cache.py Align names for scripts and commands (#40) 2026-02-15 08:39:37 -05:00