From 19512edf788af058775c43d5727713441a038f64 Mon Sep 17 00:00:00 2001 From: Andrew Donnellan Date: Fri, 18 Oct 2019 14:41:16 +1100 Subject: tests: Rename inaccurately named test_patchwork_from_header The test_patchwork_from_header test claims to test for the presence of the X-Patchwork-From header, when we actually call it X-Patchwork-Submitter. Fix it. Signed-off-by: Andrew Donnellan [dja: fix commit message] Signed-off-by: Daniel Axtens --- patchwork/tests/test_mboxviews.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/patchwork/tests/test_mboxviews.py b/patchwork/tests/test_mboxviews.py index 8f67778..1e7bfb0 100644 --- a/patchwork/tests/test_mboxviews.py +++ b/patchwork/tests/test_mboxviews.py @@ -153,8 +153,8 @@ class MboxHeaderTest(TestCase): patch.url_msgid])) self.assertContains(response, 'X-Patchwork-Delegate: %s' % user.email) - def test_patchwork_from_header(self): - """Validate inclusion of generated 'X-Patchwork-From' header.""" + def test_patchwork_submitter_header(self): + """Validate inclusion of generated 'X-Patchwork-Submitter' header.""" email = 'jon@doe.com' from_header = 'From: Jon Doe <%s>\n' % email -- cgit v1.2.3