Merge lp:~abentley/launchpad/find-merge-directive into lp:launchpad
Status: | Merged | ||||||||
---|---|---|---|---|---|---|---|---|---|
Merged at revision: | not available | ||||||||
Proposed branch: | lp:~abentley/launchpad/find-merge-directive | ||||||||
Merge into: | lp:launchpad | ||||||||
Diff against target: |
53 lines (+31/-1) 2 files modified
lib/lp/code/mail/codehandler.py (+2/-1) lib/lp/code/mail/tests/test_codehandler.py (+29/-0) |
||||||||
To merge this branch: | bzr merge lp:~abentley/launchpad/find-merge-directive | ||||||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Gavin Panella (community) | code | Approve | |
Review via email: mp+20705@code.launchpad.net |
Commit message
Fix content-type bugs
Description of the change
= Summary =
Fix bug #506835: findMergeDirect
Fix bug #530455: content type fail parsing merge directive
== Proposed fix ==
Do case-insensitive comparison of content-type, and if there is no
Content-Type, pretend it was text/plain.
== Pre-implementation notes ==
None
== Implementation details ==
None
== Tests ==
bin/test -t findMergeDirective codehandler
== Demo and Q/A ==
Send a merge directive email with no content-type to <email address hidden>.
Send a merge directive email with a mixed-case content-type to
<email address hidden>.
= Launchpad lint =
Checking for conflicts. and issues in doctests and templates.
Running jslint, xmllint, pyflakes, and pylint.
Using normal rules.
Linting changed files:
lib/lp/
lib/lp/
== Pylint notices ==
lib/lp/
37: [F0401] Unable to import 'lazr.uri' (No module named uri)
Looks good. Two questions:
* The test docstrings look like they've been copy-n-pasted.
* Is it necessary to commit at the end of each test? If so, could you add a short comment explaining why?