From d4efe9159363838931f7ddbd0e0ca5f3853ed192 Mon Sep 17 00:00:00 2001 From: Balakrishnan Balasubramanian Date: Fri, 24 May 2024 22:09:31 -0400 Subject: [PATCH] add devnotes --- DEVNOTES.md | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/DEVNOTES.md b/DEVNOTES.md index 56099dd..a44ee63 100644 --- a/DEVNOTES.md +++ b/DEVNOTES.md @@ -4,6 +4,7 @@ Notes for developers ``` python -m unittest tests.test_pop.TestPop3.test_CAPA +python -m unittest tests.test_smtp.TestSMTP ``` ## Patch for enable logging in test @@ -14,7 +15,11 @@ Patch generated using below git diff --patch -U1 tests >> ./DEVNOTES.md ``` -Apply with below +Apply with below. Disables smtp test mail dir cleanup. +``` +ls -ltd /tmp/m41* +git checkout tests +``` ```bash git apply - < None: + global MAILS_PATH +- logging.basicConfig(level=logging.CRITICAL) ++ logging.basicConfig(level=logging.DEBUG) + td = tempfile.TemporaryDirectory(prefix="m41.smtp.") +- unittest.addModuleCleanup(td.cleanup) ++ # unittest.addModuleCleanup(td.cleanup) + MAILS_PATH = Path(td.name) PATCH ```