Skip to content

Commit 509645d

Browse files
committed
added time field test
1 parent 91365ff commit 509645d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

graphene_django/tests/test_converter.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
import graphene
77
from graphene.relay import ConnectionField, Node
8-
from graphene.types.datetime import DateTime
8+
from graphene.types.datetime import DateTime, Time
99
from graphene.types.json import JSONString
1010

1111
from ..compat import (ArrayField, HStoreField, JSONField, MissingType,
@@ -44,6 +44,10 @@ def test_should_date_convert_string():
4444
assert_conversion(models.DateField, DateTime)
4545

4646

47+
def test_should_time_convert_string():
48+
assert_conversion(models.TimeField, Time)
49+
50+
4751
def test_should_char_convert_string():
4852
assert_conversion(models.CharField, graphene.String)
4953

0 commit comments

Comments
 (0)