File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ def test_dev() -> None:
27
27
"port" : 8000 ,
28
28
"reload" : True ,
29
29
"root_path" : "" ,
30
+ "proxy_headers" : True ,
30
31
}
31
32
assert "Using import string single_file_app:app" in result .output
32
33
assert (
@@ -55,6 +56,7 @@ def test_dev_args() -> None:
55
56
"/api" ,
56
57
"--app" ,
57
58
"api" ,
59
+ "--no-proxy-headers" ,
58
60
],
59
61
)
60
62
assert result .exit_code == 0 , result .output
@@ -66,6 +68,7 @@ def test_dev_args() -> None:
66
68
"port" : 8080 ,
67
69
"reload" : False ,
68
70
"root_path" : "/api" ,
71
+ "proxy_headers" : False ,
69
72
}
70
73
assert "Using import string single_file_app:api" in result .output
71
74
assert (
@@ -90,6 +93,7 @@ def test_run() -> None:
90
93
"port" : 8000 ,
91
94
"reload" : False ,
92
95
"root_path" : "" ,
96
+ "proxy_headers" : True ,
93
97
}
94
98
assert "Using import string single_file_app:app" in result .output
95
99
assert (
@@ -118,6 +122,7 @@ def test_run_args() -> None:
118
122
"/api" ,
119
123
"--app" ,
120
124
"api" ,
125
+ "--no-proxy-headers" ,
121
126
],
122
127
)
123
128
assert result .exit_code == 0 , result .output
@@ -129,6 +134,7 @@ def test_run_args() -> None:
129
134
"port" : 8080 ,
130
135
"reload" : False ,
131
136
"root_path" : "/api" ,
137
+ "proxy_headers" : False ,
132
138
}
133
139
assert "Using import string single_file_app:api" in result .output
134
140
assert (
You can’t perform that action at this time.
0 commit comments