File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ a query language for APIs created by Facebook.
1313[ ![ Code Style] ( https://img.shields.io/badge/code%20style-black-000000.svg )] ( https://github.com/ambv/black )
1414
1515The current version 1.0.5 of GraphQL-core-next is up-to-date with GraphQL.js version
16- 14.3.1. All parts of the API are covered by an extensive test suite of currently 1877
16+ 14.3.1. All parts of the API are covered by an extensive test suite of currently 1879
1717unit tests.
1818
1919
Original file line number Diff line number Diff line change 66
77
88def describe_print_error ():
9+ def prints_an_error_without_location ():
10+ error = GraphQLError ("Error without location" )
11+ assert print_error (error ) == "Error without location"
12+
13+ def prints_an_error_using_node_without_location ():
14+ error = GraphQLError (
15+ "Error attached to node without location" ,
16+ parse ("{ foo }" , no_location = True ),
17+ )
18+ assert print_error (error ) == "Error attached to node without location"
919
1020 # noinspection PyArgumentEqualDefault
1121 def prints_line_numbers_with_correct_padding ():
You can’t perform that action at this time.
0 commit comments