@@ -18,7 +18,7 @@ def homepage(request: Inject[Request]):
1818 }
1919 )
2020 app = tm .create_application ()
21- app .router .append (http_route (methods = ["GET" ])(homepage ))
21+ app .router .add_route (http_route (methods = ["GET" ])(homepage ))
2222 client = tm .get_test_client ()
2323
2424 # Test pre-flight response
@@ -73,7 +73,7 @@ def homepage(request: Inject[Request]):
7373 }
7474 )
7575 app = tm .create_application ()
76- app .router .append (http_route (methods = ["GET" ])(homepage ))
76+ app .router .add_route (http_route (methods = ["GET" ])(homepage ))
7777
7878 client = tm .get_test_client ()
7979
@@ -119,7 +119,7 @@ def homepage(request: Inject[Request]):
119119 }
120120 )
121121 app = tm .create_application ()
122- app .router .append (http_route (methods = ["GET" ])(homepage ))
122+ app .router .add_route (http_route (methods = ["GET" ])(homepage ))
123123
124124 client = tm .get_test_client ()
125125
@@ -165,7 +165,7 @@ def homepage(request: Inject[Request]):
165165 )
166166 app = tm .create_application ()
167167
168- app .router .append (http_route (methods = ["GET" ])(homepage ))
168+ app .router .add_route (http_route (methods = ["GET" ])(homepage ))
169169 client = tm .get_test_client ()
170170
171171 # Test pre-flight response
@@ -202,7 +202,7 @@ def homepage(request: Inject[Request]):
202202 }
203203 )
204204 app = tm .create_application ()
205- app .router .append (http_route (methods = ["GET" ])(homepage ))
205+ app .router .add_route (http_route (methods = ["GET" ])(homepage ))
206206
207207 client = tm .get_test_client ()
208208
@@ -231,7 +231,7 @@ def homepage(request: Inject[Request]):
231231 )
232232 app = tm .create_application ()
233233
234- app .router .append (http_route (methods = ["GET" ])(homepage ))
234+ app .router .add_route (http_route (methods = ["GET" ])(homepage ))
235235 client = tm .get_test_client ()
236236
237237 headers = {
@@ -254,7 +254,7 @@ def homepage(request: Inject[Request]):
254254 config_module = {"CORS_ALLOW_ORIGINS" : ["*" ], "CORS_ALLOW_METHODS" : ["*" ]}
255255 )
256256 app = tm .create_application ()
257- app .router .append (http_route (methods = methods )(homepage ))
257+ app .router .add_route (http_route (methods = methods )(homepage ))
258258 client = tm .get_test_client ()
259259
260260 headers = {"Origin" : "https://example.org" }
@@ -279,7 +279,7 @@ def homepage(request: Inject[Request]):
279279 }
280280 )
281281 app = tm .create_application ()
282- app .router .append (http_route (methods = ["GET" ])(homepage ))
282+ app .router .add_route (http_route (methods = ["GET" ])(homepage ))
283283
284284 client = tm .get_test_client ()
285285
@@ -346,7 +346,7 @@ def homepage(request: Inject[Request]):
346346 }
347347 )
348348 app = tm .create_application ()
349- app .router .append (http_route (methods = ["GET" ])(homepage ))
349+ app .router .add_route (http_route (methods = ["GET" ])(homepage ))
350350
351351 client = tm .get_test_client ()
352352
@@ -375,7 +375,7 @@ def homepage(request: Inject[Request]):
375375
376376 tm = Test .create_test_module (config_module = {"CORS_ALLOW_ORIGINS" : ["*" ]})
377377 app = tm .create_application ()
378- app .router .append (http_route (methods = ["GET" ])(homepage ))
378+ app .router .add_route (http_route (methods = ["GET" ])(homepage ))
379379 client = tm .get_test_client ()
380380
381381 # Test credentialed request
@@ -395,7 +395,7 @@ def homepage(request: Inject[Request]):
395395 config_module = {"CORS_ALLOW_ORIGINS" : ["https://example.org" ]}
396396 )
397397 app = tm .create_application ()
398- app .router .append (http_route (methods = ["GET" ])(homepage ))
398+ app .router .add_route (http_route (methods = ["GET" ])(homepage ))
399399
400400 client = tm .get_test_client ()
401401
@@ -414,7 +414,7 @@ def homepage(request: Inject[Request]):
414414
415415 tm = Test .create_test_module (config_module = {"CORS_ALLOW_ORIGINS" : ["*" ]})
416416 app = tm .create_application ()
417- app .router .append (http_route (methods = ["GET" ])(homepage ))
417+ app .router .add_route (http_route (methods = ["GET" ])(homepage ))
418418
419419 client = tm .get_test_client ()
420420
@@ -431,7 +431,7 @@ def homepage(request: Inject[Request]):
431431
432432 tm = Test .create_test_module (config_module = {"CORS_ALLOW_ORIGINS" : ["*" ]})
433433 app = tm .create_application ()
434- app .router .append (http_route (methods = ["GET" ])(homepage ))
434+ app .router .add_route (http_route (methods = ["GET" ])(homepage ))
435435 client = tm .get_test_client ()
436436
437437 response = client .get (
@@ -451,7 +451,7 @@ def homepage(request: Inject[Request]):
451451 config_module = {"CORS_ALLOW_ORIGINS" : ["https://example.org" ]}
452452 )
453453 app = tm .create_application ()
454- app .router .append (http_route (methods = ["GET" ])(homepage ))
454+ app .router .add_route (http_route (methods = ["GET" ])(homepage ))
455455
456456 client = tm .get_test_client ()
457457
@@ -472,7 +472,7 @@ def homepage(request: Inject[Request]):
472472 }
473473 )
474474 app = tm .create_application ()
475- app .router .append (http_route (methods = ["GET" ])(homepage ))
475+ app .router .add_route (http_route (methods = ["GET" ])(homepage ))
476476 client = tm .get_test_client ()
477477
478478 response = client .get ("/" , headers = {"Origin" : "https://someplace.org" })
0 commit comments