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.
13
13
[ ![ Code Style] ( https://img.shields.io/badge/code%20style-black-000000.svg )] ( https://github.com/ambv/black )
14
14
15
15
The 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
17
17
unit tests.
18
18
19
19
Original file line number Diff line number Diff line change 6
6
7
7
8
8
def 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"
9
19
10
20
# noinspection PyArgumentEqualDefault
11
21
def prints_line_numbers_with_correct_padding ():
You can’t perform that action at this time.
0 commit comments