mirror of
https://github.com/django/django.git
synced 2025-08-03 18:38:50 +00:00
Fixed #24566 -- Added support for serializing timedelta
Thanks to knbk for the report.
This commit is contained in:
parent
0f941f57ba
commit
30a3c2f74c
3 changed files with 9 additions and 1 deletions
|
@ -351,6 +351,10 @@ class WriterTests(TestCase):
|
|||
self.assertSerializedEqual(frozenset())
|
||||
self.assertSerializedEqual(frozenset("let it go"))
|
||||
|
||||
def test_serialize_timedelta(self):
|
||||
self.assertSerializedEqual(datetime.timedelta())
|
||||
self.assertSerializedEqual(datetime.timedelta(minutes=42))
|
||||
|
||||
def test_simple_migration(self):
|
||||
"""
|
||||
Tests serializing a simple migration.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue