I propose the following:
1) Move the tag-related tests from `i18n` into `template_tests`
2) Split `template_tests.syntax_tests.test_i18n` into separate files for
each tag (test_trans.py, test_blocktrans.py, etc.)
I think change 1 makes sense because `template_tests` is also where we
have tests for things like staticfiles, cache, etc. The timezone tags are
the only outlier here.
Change 2 is a pattern we adopted when converting the filter tests to unit
tests. I think it would be good for template tag tests to follow the same
pattern.
Does this seem like the right grouping?
--
Ticket URL: <https://code.djangoproject.com/ticket/24423>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* needs_better_patch: => 0
* stage: Unreviewed => Accepted
* needs_tests: => 0
* needs_docs: => 0
Comment:
Sounds good to me.
--
Ticket URL: <https://code.djangoproject.com/ticket/24423#comment:1>
* easy: 0 => 1
--
Ticket URL: <https://code.djangoproject.com/ticket/24423#comment:2>
* owner: nobody => Aleksandr Sobolev
* status: new => assigned
--
Ticket URL: <https://code.djangoproject.com/ticket/24423#comment:3>
* stage: Accepted => Ready for checkin
Comment:
Create pull request with three commits:
https://github.com/django/django/pull/7363
--
Ticket URL: <https://code.djangoproject.com/ticket/24423#comment:4>
* has_patch: 0 => 1
* stage: Ready for checkin => Accepted
Comment:
Thanks for the patch. The correct
[https://docs.djangoproject.com/en/dev/internals/contributing/triaging-
tickets/ triage action] is to check "Has patch"' when adding a pull
request. "Ready for checkin" is set by the person who reviews the patch.
--
Ticket URL: <https://code.djangoproject.com/ticket/24423#comment:5>
Comment (by Aleksandr Sobolev):
Sorry, my fault. Next time I'll avoid such mistakes.
--
Ticket URL: <https://code.djangoproject.com/ticket/24423#comment:6>
* needs_better_patch: 0 => 1
--
Ticket URL: <https://code.djangoproject.com/ticket/24423#comment:7>
* status: assigned => new
* owner: Aleksandr Sobolev => (none)
--
Ticket URL: <https://code.djangoproject.com/ticket/24423#comment:8>
* owner: (none) => Andy Craze
* status: new => assigned
Comment:
Added a PR with all the i18n template tags reorganized into
syntax_tests/i18n:
https://github.com/django/django/pull/7724
--
Ticket URL: <https://code.djangoproject.com/ticket/24423#comment:9>
Comment (by Tim Graham):
Please uncheck "Patch needs improvement" on the ticket after updating the
PR for the comments.
--
Ticket URL: <https://code.djangoproject.com/ticket/24423#comment:10>
* needs_better_patch: 1 => 0
--
Ticket URL: <https://code.djangoproject.com/ticket/24423#comment:11>
* needs_better_patch: 0 => 1
Comment:
The patch looks good to me, but IIUC you need to squash it into a single
commit with a message following the correct commit message format.
--
Ticket URL: <https://code.djangoproject.com/ticket/24423#comment:12>
* needs_better_patch: 1 => 0
* stage: Accepted => Ready for checkin
--
Ticket URL: <https://code.djangoproject.com/ticket/24423#comment:13>
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"97c1931c4f610e80053430d0297d51e1bed1e7ae" 97c1931c]:
{{{
#!CommitTicketReference repository=""
revision="97c1931c4f610e80053430d0297d51e1bed1e7ae"
Fixed #24423 -- Reorganized i18n tag tests.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/24423#comment:14>
Comment (by Tim Graham <timograham@…>):
In [changeset:"a6b5321ce997b899e540bb427cca98cb2b93a106" a6b5321]:
{{{
#!CommitTicketReference repository=""
revision="a6b5321ce997b899e540bb427cca98cb2b93a106"
Refs #24423 -- Readded inadvertently deleted i18n tests.
Mistake in 97c1931c4f610e80053430d0297d51e1bed1e7ae.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/24423#comment:15>
Comment (by Tim Graham <timograham@…>):
In [changeset:"49de4f15413a4f281e835e383a7b1aa202a3dd7e" 49de4f15]:
{{{
#!CommitTicketReference repository=""
revision="49de4f15413a4f281e835e383a7b1aa202a3dd7e"
[1.11.x] Refs #24423 -- Readded inadvertently deleted i18n tests.
Mistake in 97c1931c4f610e80053430d0297d51e1bed1e7ae.
Backport of 357a6428980961b2c5311eb75d16229c7fc0d982 from master
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/24423#comment:16>