added time field test

This commit is contained in:
Paul Bailey 2016-11-23 12:07:40 -05:00
parent 91365ff670
commit 509645d3bd

View File

@ -5,7 +5,7 @@ from py.test import raises
import graphene
from graphene.relay import ConnectionField, Node
from graphene.types.datetime import DateTime
from graphene.types.datetime import DateTime, Time
from graphene.types.json import JSONString
from ..compat import (ArrayField, HStoreField, JSONField, MissingType,
@ -44,6 +44,10 @@ def test_should_date_convert_string():
assert_conversion(models.DateField, DateTime)
def test_should_time_convert_string():
assert_conversion(models.TimeField, Time)
def test_should_char_convert_string():
assert_conversion(models.CharField, graphene.String)