X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;f=apps%2Fpatchwork%2Ftests%2Futils.py;h=782ed369cca0254a80d20abd5a90b7a70c3f614d;hb=a48f76a2d3a98c21d4b37f19cf84073e77db55c8;hp=3f57bafd2aad44dafbbcf1ee4af8edd69c4acb3a;hpb=b8c32a2f022890d0ada32b5750b9427607c4c7e1;p=patchwork diff --git a/apps/patchwork/tests/utils.py b/apps/patchwork/tests/utils.py index 3f57baf..782ed36 100644 --- a/apps/patchwork/tests/utils.py +++ b/apps/patchwork/tests/utils.py @@ -37,7 +37,8 @@ _test_mail_dir = os.path.join(os.path.dirname(__file__), 'mail') _test_patch_dir = os.path.join(os.path.dirname(__file__), 'patches') class defaults(object): - project = Project(linkname = 'test-project', name = 'Test Project') + project = Project(linkname = 'test-project', name = 'Test Project', + listid = 'test.example.com') patch_author = 'Patch Author ' patch_author_person = Person(name = 'Patch Author', @@ -78,7 +79,7 @@ def create_user(): def create_maintainer(project): user = create_user() - profile = user.get_profile() + profile = user.profile profile.maintainer_projects.add(project) profile.save() return user @@ -131,7 +132,7 @@ def create_email(content, subject = None, sender = None, multipart = False, msg['Subject'] = subject msg['From'] = sender - msg['List-Id'] = project.linkname + msg['List-Id'] = project.listid return msg