[PATCH 1/4] tests: pass all arguments using kwargs

Philippe Pepiot phil at philpep.org
Sun May 28 04:17:53 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 57a3f0d..14f9f72 100644
--- a/patchwork/tests/test_parser.py
+++ b/patchwork/tests/test_parser.py
@@ -77,10 +77,10 @@ def _create_email(msg, msgid=None, sender=None, listid=None):
     return msg
 
 
-def create_email(content, msgid=None, sender=None, listid=None):
+def create_email(content, **kwargs):
     msg = MIMEText(content, _charset='us-ascii')
 
-    return _create_email(msg, msgid, sender, listid)
+    return _create_email(msg, **kwargs)
 
 
 def parse_mail(*args, **kwargs):
-- 
2.1.4



More information about the Patchwork mailing list