[PATCH 2/4] tests: allow to pass a subject to create_mail

Philippe Pepiot phil at philpep.org
Sun May 28 04:17:54 AEST 2017


Signed-off-by: Philippe Pepiot <phil at philpep.org>
---
 patchwork/tests/test_parser.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/patchwork/tests/test_parser.py b/patchwork/tests/test_parser.py
index 14f9f72..63231fa 100644
--- a/patchwork/tests/test_parser.py
+++ b/patchwork/tests/test_parser.py
@@ -68,9 +68,9 @@ def read_mail(filename, project=None):
     return mail
 
 
-def _create_email(msg, msgid=None, sender=None, listid=None):
+def _create_email(msg, msgid=None, sender=None, listid=None, subject=None):
     msg['Message-Id'] = msgid or make_msgid()
-    msg['Subject'] = 'Test subject'
+    msg['Subject'] = subject or 'Test subject'
     msg['From'] = sender or 'Test Author <test-author at example.com>'
     msg['List-Id'] = listid or 'test.example.com'
 
-- 
2.1.4



More information about the Patchwork mailing list