diff options
author | Andy Doan <andy.doan@linaro.org> | 2017-01-09 12:51:53 -0600 |
---|---|---|
committer | Andy Doan <andy.doan@linaro.org> | 2017-01-11 11:24:09 -0600 |
commit | a81adc95519008c552740575011edecd67d0c9aa (patch) | |
tree | 510a33f0a4d504b314f4b84e13e36ee8cd45261a /tests | |
parent | b96f0d415e728dae45e551907e09d2047bbac42a (diff) |
update to latest version of patchwork code
this includes the "series" support we've been waiting for
Change-Id: I15a2d9ba9d4dc7fd8d4ef6a65077df66c70be699
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_import_emails.py | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/test_import_emails.py b/tests/test_import_emails.py index a7dc734..003c09e 100644 --- a/tests/test_import_emails.py +++ b/tests/test_import_emails.py @@ -94,7 +94,7 @@ class TestImportEmail(TestCase): '''Test that monkey patching rejects non-linaro patches''' crowd().user_valid.return_value = False Project.objects.all().delete() - with import_emails.get_monkey_patcher()(import_emails.parsemail): + with import_emails.get_monkey_patcher()(import_emails.parser): self._import_patch('non_linaro.mbox') self.assertEqual(0, Patch.objects.all().count()) @@ -104,7 +104,7 @@ class TestImportEmail(TestCase): author is linaro but doesn't exist locally''' Project.objects.all().delete() crowd().get_user_no_cache.return_value = {'display-name': 'User Name'} - with import_emails.get_monkey_patcher()(import_emails.parsemail): + with import_emails.get_monkey_patcher()(import_emails.parser): self._import_patch('author_submitter_differ.mbox') self.assertEqual(1, Patch.objects.all().count()) tcs = TeamCredit.objects.all() @@ -123,7 +123,7 @@ class TestImportEmail(TestCase): SHOULD NOT contribute these to "team credits"''' Project.objects.all().delete() crowd().get_user_no_cache.return_value = {'display-name': 'User Name'} - with import_emails.get_monkey_patcher()(import_emails.parsemail): + with import_emails.get_monkey_patcher()(import_emails.parser): self._import_patch('author_not_linaro.mbox') self.assertEqual(1, Patch.objects.all().count()) tcs = TeamCredit.objects.all() @@ -145,7 +145,7 @@ class TestImportEmail(TestCase): return {'display-name': 'User Name'} crowd().get_user_no_cache = get_user_no_cache - with import_emails.get_monkey_patcher()(import_emails.parsemail): + with import_emails.get_monkey_patcher()(import_emails.parser): self._import_patch(patch) self.assertEqual(1, Patch.objects.all().count()) self.assertEqual(author, self.auth_found) @@ -169,7 +169,7 @@ class TestImportEmail(TestCase): with mock.patch('linaro_metrics.parsemail.Crowd') as crowd: crowd().user_valid.return_value = False - with import_emails.get_monkey_patcher()(import_emails.parsemail): + with import_emails.get_monkey_patcher()(import_emails.parser): self._import_patch('cp8859_comment.mbox') self.assertEqual(1, Comment.objects.all().count()) @@ -193,7 +193,7 @@ class TestImportEmail(TestCase): TeamMembership.objects.create(team=t, user=person.user) Person.objects.create(email='robh@kernel.org', user=person.user) - with import_emails.get_monkey_patcher()(import_emails.parsemail): + with import_emails.get_monkey_patcher()(import_emails.parser): self._import_patch('user_linaro_not_person.mbox') self.assertEqual(1, Patch.objects.all().count()) tcs = [x.team for x in TeamCredit.objects.all()] @@ -208,7 +208,7 @@ class TestImportEmail(TestCase): crowd().get_user_no_cache.return_value = {'display-name': 'User Name'} - with import_emails.get_monkey_patcher()(import_emails.parsemail): + with import_emails.get_monkey_patcher()(import_emails.parser): self._import_patch('no-list-id.mbox') self.assertEqual(1, Patch.objects.all().count()) self.assertEqual(qemu, Patch.objects.all()[0].project) |