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