We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8e3b9b4 commit a158f4eCopy full SHA for a158f4e
graphene/core/types/custom_scalars.py
@@ -1,4 +1,3 @@
1
-import datetime
2
import json
3
import iso8601
4
graphene/core/types/tests/test_custom_scalars.py
@@ -4,9 +4,11 @@
5
from ..custom_scalars import DateTime
6
7
+
8
def test_date_time():
9
test_iso_string = "2016-04-29T18:34:12.502Z"
10
11
12
def check_datetime(test_dt):
13
assert test_dt.tzinfo == iso8601.UTC
14
assert test_dt.year == 2016
@@ -24,4 +26,3 @@ def check_datetime(test_dt):
24
26
node = StringValue(test_iso_string)
25
27
test_dt = DateTime.parse_literal(node)
28
check_datetime(test_dt)
-
0 commit comments