]> git.ipfire.org Git - thirdparty/patchwork.git/commitdiff
tests: Start setting Project.listemail
authorStephen Finucane <stephen@that.guru>
Mon, 3 Dec 2018 14:28:14 +0000 (14:28 +0000)
committerStephen Finucane <stephen@that.guru>
Sat, 22 Dec 2018 17:19:06 +0000 (17:19 +0000)
I'm not actually sure why this wasn't raising an error. Perhaps it's
because null validation for char fields happens in forms rather than at
the database level. In any case, this won't happen normally since we
only allow creation via the admin API so simply start setting this.

Signed-off-by: Stephen Finucane <stephen@that.guru>
patchwork/tests/utils.py

index aad8a2e9b9d9f60b064da17736216b8c0b7bd01e..5ebc933b86738e264c632b61ebb39535c1a6f0a3 100644 (file)
@@ -57,6 +57,7 @@ def create_project(**kwargs):
         'linkname': 'test-project-%d' % num,
         'name': 'Test Project %d' % num,
         'listid': 'test%d.example.com' % num,
+        'listemail': 'test%d@example.com' % num,
         'subject_match': '',
     }
     values.update(kwargs)