#32139 closed Cleanup/optimization (worksforme)
Add check, that raise TemplateException, when argument 'only' provided more then once in tag 'include' — at Version 4
Reported by: | Mikhail Fesenko | Owned by: | nobody |
---|---|---|---|
Component: | Template system | Version: | dev |
Severity: | Normal | Keywords: | |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description (last modified by )
V
Change History (4)
comment:1 by , 4 years ago
Has patch: | set |
---|
comment:2 by , 4 years ago
Description: | modified (diff) |
---|---|
Type: | Uncategorized → Cleanup/optimization |
comment:3 by , 4 years ago
Resolution: | → worksforme |
---|---|
Status: | new → closed |
comment:4 by , 4 years ago
Description: | modified (diff) |
---|
Wow, I made a mistake =(
Idk why, when I did this patch, I thought that if option in options: was only for 'with' param, idk why
Note:
See TracTickets
for help on using tickets.
Hi Mikhail, thanks for this contribution, but the test you submitted passes without your patch. Further, I don't see how your patch would execute since
if option in options
raises an exception a few lines above. Finally, and for the same reason, I don't think the test you provided meaningfully increases coverage since there are test methodstest_variable_twice()
andtest_syntax_error_duplicate_option()
that already test this.