summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorMike Edmunds <medmunds@gmail.com>2026-05-02 13:01:48 -0700
committernessita <124304+nessita@users.noreply.github.com>2026-05-06 22:39:16 -0300
commitc8fefebecaa58fe4258d573addefb3629bde3e4d (patch)
treea6bf85fd860c621a928e9063506389e1cb6a8bbd /scripts
parent22ce7cf4d53cbe3d1613270088ff938907248ac2 (diff)
Refs #35514 -- Simplified mail tests.
* Removed unnecessary empty username/password args and unnecessary test email content. * Replaced monkeypatching with mock.patch. Minimized scope of patches. * Added missing assertions in some tests. * Cleaned up uses of assertTrue() and assertFalse(). * Removed implicit assumption in LocmemBackendTests that mail is always sent by the locmem backend during tests. * Made FileBackendTests tmp_dir cleanup more robust, and added helpers to simplify test cases. * Split FileBackendTests.test_sessions() into three distinct cases (and removed unrelated, duplicative verification of message content). * Used mock to simplify and improve accuracy of SMTP AUTH test. * Replaced `get_connection("mail.custombackend.EmailBackend")` with direct `custombackend.EmailBackend()` construction to avoid soon-to- be-deprecated usage of `get_connection(backend_path)` in cases that aren't trying to test creating a connection from an import path.
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions