From 960188d55f8b613c8e7eb5038a9b0ebcc3300eb5 Mon Sep 17 00:00:00 2001 From: Stephen Chisholm Date: Mon, 30 Oct 2017 11:23:44 -0300 Subject: [PATCH] Add out of range datetime test --- tests/test_fields.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/test_fields.py b/tests/test_fields.py index c1b99818a..b827557f1 100644 --- a/tests/test_fields.py +++ b/tests/test_fields.py @@ -1171,6 +1171,7 @@ class TestDateTimeField(FieldValues): '2001-99-99T99:00': ['Datetime has wrong format. Use one of these formats instead: YYYY-MM-DDThh:mm[:ss[.uuuuuu]][+HH:MM|-HH:MM|Z].'], '2018-08-16 22:00-24:00': ['Datetime has wrong format. Use one of these formats instead: YYYY-MM-DDThh:mm[:ss[.uuuuuu]][+HH:MM|-HH:MM|Z].'], datetime.date(2001, 1, 1): ['Expected a datetime but got a date.'], + '9999-12-31T21:59:59.99990-03:00': [''], } outputs = { datetime.datetime(2001, 1, 1, 13, 00): '2001-01-01T13:00:00Z',