From eb2218b6fcff381416407ce1dc6ac982a5afa698 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 31 Dec 2025 21:00:38 +0000 Subject: [PATCH] Improve test to explicitly demonstrate case-insensitive handling of folder names like 'Inbox' Co-authored-by: seanthegeek <44679+seanthegeek@users.noreply.github.com> --- tests.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests.py b/tests.py index 279248a..408b302 100755 --- a/tests.py +++ b/tests.py @@ -166,12 +166,16 @@ class Test(unittest.TestCase): assert WELL_KNOWN_FOLDER_MAP.get("deleted items") == "deleteditems" assert WELL_KNOWN_FOLDER_MAP.get("archive") == "archive" - # Test case insensitivity (the map uses lowercase keys) + # Test case insensitivity - simulating how the code actually uses it + # This is what happens when user config has "reports_folder = Inbox" assert WELL_KNOWN_FOLDER_MAP.get("inbox") == "inbox" + assert WELL_KNOWN_FOLDER_MAP.get("Inbox".lower()) == "inbox" # User's exact config assert WELL_KNOWN_FOLDER_MAP.get("INBOX".lower()) == "inbox" + assert WELL_KNOWN_FOLDER_MAP.get("Archive".lower()) == "archive" # Test German folder names assert WELL_KNOWN_FOLDER_MAP.get("posteingang") == "inbox" + assert WELL_KNOWN_FOLDER_MAP.get("Posteingang".lower()) == "inbox" # Capitalized assert WELL_KNOWN_FOLDER_MAP.get("archiv") == "archive" # Test that custom folders don't match