@@ -6,17 +6,7 @@ from typing import IO, Any, Iterable, Mapping, Optional, Text, TypeVar, Union
6
6
7
7
from click import BaseCommand
8
8
from click .testing import CliRunner , Result
9
- from werkzeug .test import Client
10
-
11
- def make_test_environ_builder (
12
- app : Any ,
13
- path : str = ...,
14
- base_url : Optional [Any ] = ...,
15
- subdomain : Optional [Any ] = ...,
16
- url_scheme : Optional [Any ] = ...,
17
- * args : Any ,
18
- ** kwargs : Any ,
19
- ): ...
9
+ from werkzeug .test import Client , EnvironBuilder as WerkzeugEnvironBuilder
20
10
21
11
# Response type for the client below.
22
12
# By default _R is Tuple[Iterable[Any], Union[Text, int], werkzeug.datastructures.Headers], however
@@ -44,3 +34,27 @@ class FlaskCliRunner(CliRunner):
44
34
color : bool = ...,
45
35
** extra : Any ,
46
36
) -> Result : ...
37
+
38
+ class EnvironBuilder (WerkzeugEnvironBuilder ):
39
+ app : Any
40
+ def __init__ (
41
+ self ,
42
+ app : Any ,
43
+ path : str = ...,
44
+ base_url : Optional [Any ] = ...,
45
+ subdomain : Optional [Any ] = ...,
46
+ url_scheme : Optional [Any ] = ...,
47
+ * args : Any ,
48
+ ** kwargs : Any ,
49
+ ) -> None : ...
50
+ def json_dumps (self , obj : Any , ** kwargs : Any ) -> str : ...
51
+
52
+ def make_test_environ_builder (
53
+ app : Any ,
54
+ path : str = ...,
55
+ base_url : Optional [Any ] = ...,
56
+ subdomain : Optional [Any ] = ...,
57
+ url_scheme : Optional [Any ] = ...,
58
+ * args : Any ,
59
+ ** kwargs : Any ,
60
+ ): ...
0 commit comments