mirror of
https://github.com/graphql-python/graphene-django.git
synced 2025-01-27 01:34:09 +03:00
added time field test
This commit is contained in:
parent
91365ff670
commit
509645d3bd
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user