liniting fixes

This commit is contained in:
Jon Dugan 2016-04-29 14:10:28 -05:00
parent 8e3b9b430e
commit a158f4e002
2 changed files with 2 additions and 2 deletions

View File

@ -1,4 +1,3 @@
import datetime
import json
import iso8601

View File

@ -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)