Skip to content

Commit

Permalink
Refs #21286 -- Enabled serializer tests with time pk model
Browse files Browse the repository at this point in the history
  • Loading branch information
claudep committed Sep 17, 2017
1 parent dc37e88 commit 01c6a3e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions tests/serializers/models/data.py
Expand Up @@ -249,8 +249,9 @@ class SmallPKData(models.Model):
# class TextPKData(models.Model):
# data = models.TextField(primary_key=True)

# class TimePKData(models.Model):
# data = models.TimeField(primary_key=True)

class TimePKData(models.Model):
data = models.TimeField(primary_key=True)


class UUIDData(models.Model):
Expand Down
4 changes: 2 additions & 2 deletions tests/serializers/test_data.py
Expand Up @@ -26,7 +26,7 @@
ModifyingSaveData, NullBooleanData, O2OData, PositiveIntegerData,
PositiveIntegerPKData, PositiveSmallIntegerData,
PositiveSmallIntegerPKData, SlugData, SlugPKData, SmallData, SmallPKData,
Tag, TextData, TimeData, UniqueAnchor, UUIDData,
Tag, TextData, TimeData, TimePKData, UniqueAnchor, UUIDData,
)
from .tests import register_tests

Expand Down Expand Up @@ -346,7 +346,7 @@ def inherited_compare(testcase, pk, klass, data):
# It contains line breaks.
# Several of them.
# The end."""),
# (pk_obj, 770, TimePKData, datetime.time(10, 42, 37)),
(pk_obj, 770, TimePKData, datetime.time(10, 42, 37)),
# (pk_obj, 790, XMLPKData, "<foo></foo>"),
(pk_obj, 791, UUIDData, uuid_obj),
(fk_obj, 792, FKToUUID, uuid_obj),
Expand Down

0 comments on commit 01c6a3e

Please sign in to comment.