--
Ticket URL: <https://code.djangoproject.com/ticket/21286>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* cc: bmispelon@… (added)
Comment:
While looking into this, I believe I found the reason why some of the
tests are commented:
https://github.com/django/django/blob/8d6953d55c3aba04bbaf0f268499d6e405c653ff/tests/serializers_regress/models.py#L168-L170
The comment is not completely correct however because a few of the
commented out models trigger and error immediately, regardless of the
backend (`TypeError: 'primary_key' is not a valid argument for ...`).
* `FilePKData`, `ImagePKData` and `NullBooleanPKData` can be deleted
because of this.
* `DatePKData`, `DateTimePKData`, `TimePKData` and `TextPKData` might be
database-dependent (they all work under sqlite).
* Test case 51 (`FileData`) might be worth looking into a bit deeper. It
fails when uncommented and I believe it might be caused by the weird
`FileField.__eq__` implementation.
--
Ticket URL: <https://code.djangoproject.com/ticket/21286#comment:1>
Comment (by claudep):
FileField and NULL value issue is tracked in #10244.
--
Ticket URL: <https://code.djangoproject.com/ticket/21286#comment:2>
Comment (by Claude Paroz <claude@…>):
In [changeset:"d02fc8dfd3622efd996c0e300e11f6c219b549b4" d02fc8d]:
{{{
#!CommitTicketReference repository=""
revision="d02fc8dfd3622efd996c0e300e11f6c219b549b4"
Refs #21286 -- Enabled serializer tests with date/datetime pk model
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/21286#comment:3>
Comment (by Claude Paroz <claude@…>):
In [changeset:"01c6a3e227b645e8dea97e9befecd23d1d3b8581" 01c6a3e]:
{{{
#!CommitTicketReference repository=""
revision="01c6a3e227b645e8dea97e9befecd23d1d3b8581"
Refs #21286 -- Enabled serializer tests with time pk model
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/21286#comment:4>
Old description:
> `tests/serializers_regress/tests.py` contains some commented out items in
> the `test_data` list. I think it may be because not all serializers
> support those items. If this is the case, we should make appropriate
> modifications so the tests are run where they are supported and skipped
> where not.
New description:
`tests/serializers/test_data.py` contains some commented out items in the
`test_data` list. I think it may be because not all serializers support
those items. If this is the case, we should make appropriate modifications
so the tests are run where they are supported and skipped where not.
--
--
Ticket URL: <https://code.djangoproject.com/ticket/21286#comment:5>
Comment (by Florian Apolloner):
@claude Your latest commit caused quite a few failures, did you forget to
commit some code?
--
Ticket URL: <https://code.djangoproject.com/ticket/21286#comment:6>
Comment (by Claude Paroz):
Argh, sorry! I was fooled by the fact the missing YAML lib in my test
virtualenv wasn't showing by a skipped ('s') test. I will revert ASAP and
try to work on that skip issue.
--
Ticket URL: <https://code.djangoproject.com/ticket/21286#comment:7>
Comment (by Claude Paroz <claude@…>):
In [changeset:"256182c43d2ff029a4c55c74e43041c79d819cf6" 256182c4]:
{{{
#!CommitTicketReference repository=""
revision="256182c43d2ff029a4c55c74e43041c79d819cf6"
Revert "Refs #21286 -- Enabled serializer tests with time pk model"
This reverts commit 01c6a3e227b645e8dea97e9befecd23d1d3b8581.
Unfortunately, the YAML serializer is not yet able to cope with time
values.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/21286#comment:8>
Comment (by Claude Paroz):
Missing skip issue in #28610.
--
Ticket URL: <https://code.djangoproject.com/ticket/21286#comment:9>