While some tests will be specific to each children (for their custom
code), after inspection when reviewing
[https://github.com/django/django/pull/16929/ PR] for #34034, there seems
to be some tests that were added to `Select` but not added to their
counterpart `RadioSelect`, for example `test_deepcopy`.
My hope with this ticket is to either:
* evaluate the creation of specific tests for `ChoiceWidget` and have
tests for `Select` and `RadioSelect` reusing those, and then having
custom tests for their custom functionality
* extend the tests for `RadioSelect` using those for `Select` as a guide
and have some sort of comment suggesting to grow both test suites when
making changes to their parent class.
--
Ticket URL: <https://code.djangoproject.com/ticket/34655>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* stage: Unreviewed => Accepted
Comment:
For the future, extra test coverage is always welcome, no ticket required.
--
Ticket URL: <https://code.djangoproject.com/ticket/34655#comment:1>
* owner: nobody => Jacob1507
* status: new => assigned
Comment:
Hello, I would like to attempt working on this ticket
--
Ticket URL: <https://code.djangoproject.com/ticket/34655#comment:2>
* needs_better_patch: 0 => 1
* has_patch: 0 => 1
--
Ticket URL: <https://code.djangoproject.com/ticket/34655#comment:3>
* owner: Jacob1507 => Faishal manzar
--
Ticket URL: <https://code.djangoproject.com/ticket/34655#comment:4>
* owner: Faishal manzar => Jacob1507
* needs_better_patch: 1 => 0
Comment:
As far as I'm aware, it's waiting for another review by Natalia.
--
Ticket URL: <https://code.djangoproject.com/ticket/34655#comment:5>
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"f9c5958b8fe452983122b6a13c8f806e4e4e1eef" f9c5958]:
{{{
#!CommitTicketReference repository=""
revision="f9c5958b8fe452983122b6a13c8f806e4e4e1eef"
Fixed #34655 -- Increased radioselect's test coverage.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/34655#comment:6>
* stage: Accepted => Ready for checkin
--
Ticket URL: <https://code.djangoproject.com/ticket/34655#comment:7>
Comment (by GitHub <noreply@…>):
In [changeset:"1ad7761ee616341295f36c80f78b86ff79d5b513" 1ad7761]:
{{{
#!CommitTicketReference repository=""
revision="1ad7761ee616341295f36c80f78b86ff79d5b513"
Refs #34655 -- Made cosmetic edits to RadioSelect tests.
Follow up to f9c5958b8fe452983122b6a13c8f806e4e4e1eef.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/34655#comment:8>