from flask import Flask, request, send_from_directory, send_file
app = Flask(__name__)

@app.route("/save-uploaded-file")  # $routeSetup="/save-uploaded-file"
def test_taint():  # $requestHandler
    request.files['key'].save("path") # $ getAPathArgument="path"


@app.route("/path-injection")  # $routeSetup="/path-injection"
def test_path():  # $requestHandler

    flask.send_from_directory("filepath","file")  # $ getAPathArgument="filepath" getAPathArgument="file"
    flask.send_file("file")  # $ getAPathArgument="file"
    
    flask.send_from_directory(directory="filepath","file") # $ getAPathArgument="filepath" getAPathArgument="file"
    flask.send_from_directory(filename="filepath","file") # $ getAPathArgument="filepath" getAPathArgument="file"
    flask.send_file(filename_or_fp="file")  # $ getAPathArgument="file"
@@ -357,30 +357,24 @@
 andler%0A%0A    
-flask.
 send_from_di
@@ -453,38 +453,32 @@
 ment=%22file%22%0A    
-flask.
 send_file(%22file%22
@@ -512,23 +512,13 @@
 le%22%0A
-    
 %0A    
-flask.
 send
@@ -618,30 +618,24 @@
 =%22file%22%0A    
-flask.
 send_from_di
@@ -734,14 +734,8 @@
     
-flask.
 send
@@ -771,28 +771,29 @@
  # $ getAPathArgument=%22file%22
+%0A

Fix tests