File tree 3 files changed +4
-4
lines changed
3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -340,12 +340,12 @@ def format_execution_result(
340
340
def _check_jinja (jinja_env : Any ) -> None :
341
341
try :
342
342
from jinja2 import Environment
343
- except ImportError :
343
+ except ImportError : # pragma: no cover
344
344
raise RuntimeError (
345
345
"Attempt to set 'jinja_env' to a value other than None while Jinja2 is not installed.\n "
346
346
"Please install Jinja2 to render GraphiQL with Jinja2.\n "
347
347
"Otherwise set 'jinja_env' to None to use the simple regex renderer."
348
348
)
349
349
350
- if not isinstance (jinja_env , Environment ):
350
+ if not isinstance (jinja_env , Environment ): # pragma: no cover
351
351
raise TypeError ("'jinja_env' has to be of type jinja2.Environment." )
Original file line number Diff line number Diff line change 8
8
# and only relevant if rendering GraphiQL with Jinja
9
9
try :
10
10
from jinja2 import Environment
11
- except ImportError :
11
+ except ImportError : # pragma: no cover
12
12
pass
13
13
14
14
from typing_extensions import TypedDict
Original file line number Diff line number Diff line change 3
3
4
4
if sys .version_info >= (3 , 10 ):
5
5
from typing import ParamSpec
6
- else :
6
+ else : # pragma: no cover
7
7
from typing_extensions import ParamSpec
8
8
9
9
You can’t perform that action at this time.
0 commit comments