summaryrefslogtreecommitdiff
path: root/patchwork
diff options
context:
space:
mode:
authorAndrew Donnellan <ajd@linux.ibm.com>2019-10-18 14:41:16 +1100
committerDaniel Axtens <dja@axtens.net>2019-10-18 16:38:41 +1100
commit19512edf788af058775c43d5727713441a038f64 (patch)
treed8ccee249b44a09c0fc02d6fcc8bea532e6fdf8e /patchwork
parent8279a84238c10acbcadd075e4e998dffdc39f2e9 (diff)
downloadpatchwork-19512edf788af058775c43d5727713441a038f64.tar
patchwork-19512edf788af058775c43d5727713441a038f64.tar.gz
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 <ajd@linux.ibm.com> [dja: fix commit message] Signed-off-by: Daniel Axtens <dja@axtens.net>
Diffstat (limited to 'patchwork')
-rw-r--r--patchwork/tests/test_mboxviews.py4
1 files 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