]> git.ipfire.org Git - thirdparty/patchwork.git/commitdiff
tests: Rename inaccurately named test_patchwork_from_header
authorAndrew Donnellan <ajd@linux.ibm.com>
Fri, 18 Oct 2019 03:41:16 +0000 (14:41 +1100)
committerDaniel Axtens <dja@axtens.net>
Fri, 18 Oct 2019 05:38:41 +0000 (16:38 +1100)
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 <ajd@linux.ibm.com>
[dja: fix commit message]
Signed-off-by: Daniel Axtens <dja@axtens.net>
patchwork/tests/test_mboxviews.py

index 8f67778dbacb3eb3f937a11aa26a0f9337b40c4c..1e7bfb010dbb060dd5ad3bf3c61438dad83b513f 100644 (file)
@@ -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