_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@example.com>'
patch_author_person = Person(name = 'Patch Author',
def create_maintainer(project):
user = create_user()
- profile = user.get_profile()
+ profile = user.profile
profile.maintainer_projects.add(project)
profile.save()
return user
msg['Subject'] = subject
msg['From'] = sender
- msg['List-Id'] = project.linkname
+ msg['List-Id'] = project.listid
return msg