Skip to content

Commit 16bad00

Browse files
committed
Python: Add test for routed params with unknown url pattern
1 parent f03a8a8 commit 16bad00

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

python/ql/test/experimental/library-tests/frameworks/flask/routing_test.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,10 @@ def later_set(): # $f-:routeHandler
2323
app.view_functions['later_set'] = later_set
2424

2525

26+
@app.route(UNKNOWN_ROUTE) # $routeSetup
27+
def unkown_route(foo, bar): # $routeHandler
28+
return make_response("unkown_route")
29+
30+
2631
if __name__ == "__main__":
2732
app.run(debug=True)

0 commit comments

Comments
 (0)