File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1253,7 +1253,7 @@ def advance_lexer(self) -> None:
1253
1253
raise GraphQLSyntaxError (
1254
1254
self ._lexer .source ,
1255
1255
token .start ,
1256
- f"Document contains more that { max_tokens } tokens."
1256
+ f"Document contains more than { max_tokens } tokens."
1257
1257
" Parsing aborted." ,
1258
1258
)
1259
1259
Original file line number Diff line number Diff line change @@ -113,19 +113,19 @@ def parse_provides_useful_error_when_using_source():
113
113
"""
114
114
)
115
115
116
- def limits_maximum_number_of_tokens ():
116
+ def limits_by_a_maximum_number_of_tokens ():
117
117
parse ("{ foo }" , max_tokens = 3 )
118
118
with pytest .raises (
119
119
GraphQLSyntaxError ,
120
120
match = "Syntax Error:"
121
- r" Document contains more that 2 tokens\. Parsing aborted\." ,
121
+ r" Document contains more than 2 tokens\. Parsing aborted\." ,
122
122
):
123
123
parse ("{ foo }" , max_tokens = 2 )
124
124
parse ('{ foo(bar: "baz") }' , max_tokens = 8 )
125
125
with pytest .raises (
126
126
GraphQLSyntaxError ,
127
127
match = "Syntax Error:"
128
- r" Document contains more that 7 tokens\. Parsing aborted\." ,
128
+ r" Document contains more than 7 tokens\. Parsing aborted\." ,
129
129
):
130
130
parse ('{ foo(bar: "baz") }' , max_tokens = 7 )
131
131
You can’t perform that action at this time.
0 commit comments