From 4298b70f1c4929da8e2429f9bbba3a822a3a976d Mon Sep 17 00:00:00 2001 From: yoff Date: Tue, 19 May 2026 17:55:17 +0200 Subject: [PATCH] Python: add test for sub class --- .../frameworks/flask/flask_subclass.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 python/ql/test/library-tests/frameworks/flask/flask_subclass.py diff --git a/python/ql/test/library-tests/frameworks/flask/flask_subclass.py b/python/ql/test/library-tests/frameworks/flask/flask_subclass.py new file mode 100644 index 00000000000..03199077989 --- /dev/null +++ b/python/ql/test/library-tests/frameworks/flask/flask_subclass.py @@ -0,0 +1,14 @@ +from flask import Flask + + +class Sub(Flask): + def __init__(self, *args, **kwargs): + Flask.__init__(self, *args, **kwargs) + + +app = Sub(__name__) # $ MISSING: instance + + +@app.route("/") +def hello(): + return "world" \ No newline at end of file