Skip to content

Commit d04cd9a

Browse files
committed
update schema parser tests
1 parent f26ab60 commit d04cd9a

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

graphql/language/tests/test_schema_parser.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
from graphql.error import GraphQLSyntaxError
55
from graphql.language import ast
66
from graphql.language.parser import Loc
7+
from graphql.utils.undefined import UndefinedDefaultValue
78

89

910
def create_loc_fn(body):
@@ -364,7 +365,7 @@ def test_parses_simple_field_with_arg():
364365
),
365366
loc=loc(28, 35)
366367
),
367-
default_value=None,
368+
default_value=UndefinedDefaultValue,
368369
directives=[],
369370
loc=loc(22, 35)
370371
)
@@ -490,7 +491,7 @@ def test_parses_simple_field_with_list_arg():
490491
),
491492
loc=loc(30, 38)
492493
),
493-
default_value=None,
494+
default_value=UndefinedDefaultValue,
494495
directives=[],
495496
loc=loc(22, 38)
496497
)
@@ -549,7 +550,7 @@ def test_parses_simple_field_with_two_args():
549550
),
550551
loc=loc(30, 37)
551552
),
552-
default_value=None,
553+
default_value=UndefinedDefaultValue,
553554
directives=[],
554555
loc=loc(22, 37)
555556
),
@@ -565,7 +566,7 @@ def test_parses_simple_field_with_two_args():
565566
),
566567
loc=loc(47, 50)
567568
),
568-
default_value=None,
569+
default_value=UndefinedDefaultValue,
569570
directives=[],
570571
loc=loc(39, 50)
571572
)
@@ -702,7 +703,7 @@ def test_parses_simple_input_object():
702703
),
703704
loc=loc(24, 30)
704705
),
705-
default_value=None,
706+
default_value=UndefinedDefaultValue,
706707
directives=[],
707708
loc=loc(17, 30)
708709
)

0 commit comments

Comments
 (0)