[Django] #24993: Add unittests for Custom Model field

1 view
Skip to first unread message

Django

unread,
Jun 17, 2015, 6:19:44 AM6/17/15
to django-...@googlegroups.com
#24993: Add unittests for Custom Model field
----------------------------------------------+----------------------------
Reporter: jedie | Owner: nobody
Type: Uncategorized | Status: new
Component: Database layer (models, ORM) | Version: 1.7
Severity: Normal | Keywords: subfieldbase,
| metaclass
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 0 | UI/UX: 0
----------------------------------------------+----------------------------
I seems that there are no tests for "Custom Model field" described here:

https://docs.djangoproject.com/en/1.7/howto/custom-model-fields/#the-
subfieldbase-metaclass

I create one and will send it as a pull request.

See also https://groups.google.com/forum/#!topic/django-
developers/nYhZYyLcV1g

--
Ticket URL: <https://code.djangoproject.com/ticket/24993>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Jun 17, 2015, 6:46:44 AM6/17/15
to django-...@googlegroups.com
#24993: Add unittests for Custom Model field
-------------------------------------+-------------------------------------

Reporter: jedie | Owner: nobody
Type: Uncategorized | Status: new
Component: Database layer | Version: 1.7
(models, ORM) |
Severity: Normal | Resolution:
Keywords: subfieldbase, | Triage Stage:
metaclass | Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by timgraham):

* needs_better_patch: => 0
* needs_tests: => 0
* needs_docs: => 0


Comment:

Did you see `field_subclassing/fields.py`? As `SubfieldBase` is deprecated
in Django 1.8, I don't think there's much value in adding new tests at
this point.

--
Ticket URL: <https://code.djangoproject.com/ticket/24993#comment:1>

Django

unread,
Jun 17, 2015, 8:53:26 AM6/17/15
to django-...@googlegroups.com
#24993: Add unittests for Custom Model field
-------------------------------------+-------------------------------------
Reporter: jedie | Owner: nobody
Type: Uncategorized | Status: closed

Component: Database layer | Version: 1.7
(models, ORM) |
Severity: Normal | Resolution: wontfix

Keywords: subfieldbase, | Triage Stage:
metaclass | Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by timgraham):

* status: new => closed
* resolution: => wontfix


--
Ticket URL: <https://code.djangoproject.com/ticket/24993#comment:2>

Reply all
Reply to author
Forward
0 new messages