Skip to content

Commit 7d240a2

Browse files
Minor cleanup in test.
1 parent c7e2bad commit 7d240a2

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tests/test_fields.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1143,10 +1143,9 @@ class TestDateTimeField(FieldValues):
11431143
valid_inputs = {
11441144
'2001-01-01 13:00': datetime.datetime(2001, 1, 1, 13, 00, tzinfo=utc),
11451145
'2001-01-01T13:00': datetime.datetime(2001, 1, 1, 13, 00, tzinfo=utc),
1146+
'2001-01-01T13:00Z': datetime.datetime(2001, 1, 1, 13, 00, tzinfo=utc)
11461147
datetime.datetime(2001, 1, 1, 13, 00): datetime.datetime(2001, 1, 1, 13, 00, tzinfo=utc),
11471148
datetime.datetime(2001, 1, 1, 13, 00, tzinfo=utc): datetime.datetime(2001, 1, 1, 13, 00, tzinfo=utc),
1148-
# Django 1.4 does not support timezone string parsing.
1149-
'2001-01-01T13:00Z': datetime.datetime(2001, 1, 1, 13, 00, tzinfo=utc)
11501149
}
11511150
invalid_inputs = {
11521151
'abc': ['Datetime has wrong format. Use one of these formats instead: YYYY-MM-DDThh:mm[:ss[.uuuuuu]][+HH:MM|-HH:MM|Z].'],

0 commit comments

Comments
 (0)