From: Damien Lespiau Date: Tue, 15 Sep 2015 20:12:07 +0000 (+0100) Subject: tests: Save the test project X-Git-Tag: v1.1.0~111 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7b7d7483e4beff7b127c4c8c9250ffc51fff4b9d;p=thirdparty%2Fpatchwork.git tests: Save the test project create_email() can use the default project for its mail. If that is the case, chances are we are going to use that email later in a test where we'll want that project to exist. Signed-off-by: Damien Lespiau Acked-by: Stephen Finucane --- diff --git a/patchwork/tests/utils.py b/patchwork/tests/utils.py index 4f4906b5..931462b6 100644 --- a/patchwork/tests/utils.py +++ b/patchwork/tests/utils.py @@ -118,6 +118,7 @@ def create_email(content, subject = None, sender = None, multipart = False, sender = defaults.sender if project is None: project = defaults.project + project.save() if content_encoding is None: content_encoding = 'us-ascii'