mirror of
https://github.com/graphql-python/graphene.git
synced 2024-11-27 03:53:56 +03:00
liniting fixes
This commit is contained in:
parent
8e3b9b430e
commit
a158f4e002
|
@ -1,4 +1,3 @@
|
|||
import datetime
|
||||
import json
|
||||
import iso8601
|
||||
|
||||
|
|
|
@ -4,9 +4,11 @@ from graphql.core.language.ast import StringValue
|
|||
|
||||
from ..custom_scalars import DateTime
|
||||
|
||||
|
||||
def test_date_time():
|
||||
test_iso_string = "2016-04-29T18:34:12.502Z"
|
||||
|
||||
|
||||
def check_datetime(test_dt):
|
||||
assert test_dt.tzinfo == iso8601.UTC
|
||||
assert test_dt.year == 2016
|
||||
|
@ -24,4 +26,3 @@ def test_date_time():
|
|||
node = StringValue(test_iso_string)
|
||||
test_dt = DateTime.parse_literal(node)
|
||||
check_datetime(test_dt)
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user